Class: Pdfrb::Model::Type::AddActionWidgetAnnotation
- Inherits:
-
Cos::Dictionary
- Object
- Object
- Cos::Dictionary
- Pdfrb::Model::Type::AddActionWidgetAnnotation
- Defined in:
- lib/pdfrb/model/type/add_action_widget_annotation.rb
Overview
Additional Actions for widget annotations (s12.6.3.17, PDF 1.2). Mouse, focus, and page events on the widget's region.
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
-
#on_blur(document = nil) ⇒ Object
/Bl — widget loses input focus.
-
#on_cursor_enter(document = nil) ⇒ Object
/E — cursor enters the widget's region.
-
#on_cursor_exit(document = nil) ⇒ Object
/X — cursor exits the widget's region.
-
#on_focus(document = nil) ⇒ Object
/Fo — widget receives input focus.
-
#on_invisible(document = nil) ⇒ Object
/PI — widget becomes invisible.
-
#on_mouse_down(document = nil) ⇒ Object
/D — mouse button pressed inside.
-
#on_mouse_up(document = nil) ⇒ Object
/U — mouse button released inside.
-
#on_page_close(document = nil) ⇒ Object
/PC — page containing the widget is closed.
-
#on_page_open(document = nil) ⇒ Object
/PO — page containing the widget is opened.
-
#on_visible(document = nil) ⇒ Object
/PV — widget becomes visible.
Methods inherited from Cos::Dictionary
#[], #[]=, arlington_available?, arlington_default, arlington_key_to_symbol, arlington_loaded_for?, arlington_mark_loaded, arlington_object, arlington_one_type_to_ruby, arlington_required?, arlington_types_to_ruby, arlington_version, define_field, define_field_from_arlington, #delete, #each, each_field, #each_raw, #empty?, field, #initialize, #key?, #keys, lookup_type, merged_field, own_fields, #pdf_type, register_type, type_map, #validate
Methods inherited from Object
#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, #pdf_type, pdf_type
Constructor Details
This class inherits a constructor from Pdfrb::Model::Cos::Dictionary
Instance Method Details
#on_blur(document = nil) ⇒ Object
/Bl — widget loses input focus.
37 38 39 |
# File 'lib/pdfrb/model/type/add_action_widget_annotation.rb', line 37 def on_blur(document = nil) resolve_action(:Bl, document) end |
#on_cursor_enter(document = nil) ⇒ Object
/E — cursor enters the widget's region.
12 13 14 |
# File 'lib/pdfrb/model/type/add_action_widget_annotation.rb', line 12 def on_cursor_enter(document = nil) resolve_action(:E, document) end |
#on_cursor_exit(document = nil) ⇒ Object
/X — cursor exits the widget's region.
17 18 19 |
# File 'lib/pdfrb/model/type/add_action_widget_annotation.rb', line 17 def on_cursor_exit(document = nil) resolve_action(:X, document) end |
#on_focus(document = nil) ⇒ Object
/Fo — widget receives input focus.
32 33 34 |
# File 'lib/pdfrb/model/type/add_action_widget_annotation.rb', line 32 def on_focus(document = nil) resolve_action(:Fo, document) end |
#on_invisible(document = nil) ⇒ Object
/PI — widget becomes invisible.
57 58 59 |
# File 'lib/pdfrb/model/type/add_action_widget_annotation.rb', line 57 def on_invisible(document = nil) resolve_action(:PI, document) end |
#on_mouse_down(document = nil) ⇒ Object
/D — mouse button pressed inside.
22 23 24 |
# File 'lib/pdfrb/model/type/add_action_widget_annotation.rb', line 22 def on_mouse_down(document = nil) resolve_action(:D, document) end |
#on_mouse_up(document = nil) ⇒ Object
/U — mouse button released inside.
27 28 29 |
# File 'lib/pdfrb/model/type/add_action_widget_annotation.rb', line 27 def on_mouse_up(document = nil) resolve_action(:U, document) end |
#on_page_close(document = nil) ⇒ Object
/PC — page containing the widget is closed.
47 48 49 |
# File 'lib/pdfrb/model/type/add_action_widget_annotation.rb', line 47 def on_page_close(document = nil) resolve_action(:PC, document) end |
#on_page_open(document = nil) ⇒ Object
/PO — page containing the widget is opened.
42 43 44 |
# File 'lib/pdfrb/model/type/add_action_widget_annotation.rb', line 42 def on_page_open(document = nil) resolve_action(:PO, document) end |
#on_visible(document = nil) ⇒ Object
/PV — widget becomes visible.
52 53 54 |
# File 'lib/pdfrb/model/type/add_action_widget_annotation.rb', line 52 def on_visible(document = nil) resolve_action(:PV, document) end |