Class: Pdfrb::Model::Type::Button

Inherits:
Field show all
Defined in:
lib/pdfrb/model/type/button.rb

Instance Attribute Summary

Attributes inherited from Object

#document, #gen, #oid

Instance Method Summary collapse

Methods inherited from Field

#additional_actions, #alternate_field_name, #appearance_characteristics, #button?, #choice?, #default_value, #field_name, #field_type, #field_value, #flags, #fully_qualified_name, #has_kids?, #kids, #mapping_field_name, #no_export?, #parent, #read_only?, #required?, #resolved_parent, #root_field, #signature?, #terminal_field?, #text?

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, 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

#no_toggle_to_off?Boolean

Returns:

  • (Boolean)


12
# File 'lib/pdfrb/model/type/button.rb', line 12

def no_toggle_to_off?; flags & 0x4000 != 0; end

#optObject



8
# File 'lib/pdfrb/model/type/button.rb', line 8

def opt; self[:Opt]; end

#push_button?Boolean

Returns:

  • (Boolean)


10
# File 'lib/pdfrb/model/type/button.rb', line 10

def push_button?; flags & 0x10000 != 0; end

#radio?Boolean

Returns:

  • (Boolean)


11
# File 'lib/pdfrb/model/type/button.rb', line 11

def radio?; flags & 0x8000 != 0; end

#radios_in_unison?Boolean

Returns:

  • (Boolean)


13
# File 'lib/pdfrb/model/type/button.rb', line 13

def radios_in_unison?; flags & 0x2000000 != 0; end

#valueObject



7
# File 'lib/pdfrb/model/type/button.rb', line 7

def value; self[:V]; end