Class: XRC2Ruby::ObjectTypes::StatusBar
- Defined in:
- lib/wx_sugar/xrc/xrc2ruby_types/containers.rb
Constant Summary
Constants inherited from Window
Instance Attribute Summary collapse
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#widths ⇒ Object
Returns the value of attribute widths.
Attributes included from Parent
#children, #main_sizer, #sizer_items
Attributes inherited from Window
#bg, #enabled, #exstyle, #fg, #help, #hidden, #tooltip
Attributes inherited from Object
#centered, #name, #parent, #sub_class, #win_class
Instance Method Summary collapse
Methods included from Parent
#add_child, #child_output, #named_windows, #output, #size_child
Methods inherited from Window
Methods included from InitArgs
#inherited, #init_arg, #init_args, #translatable_string_init_arg
Methods inherited from Object
#initialize, #inspect, next_id, #output, #var_name
Constructor Details
This class inherits a constructor from XRC2Ruby::ObjectTypes::Object
Instance Attribute Details
#fields ⇒ Object
Returns the value of attribute fields.
95 96 97 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/containers.rb', line 95 def fields @fields end |
#widths ⇒ Object
Returns the value of attribute widths.
95 96 97 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/containers.rb', line 95 def widths @widths end |
Instance Method Details
#setup ⇒ Object
96 97 98 99 100 101 102 103 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/containers.rb', line 96 def setup setup = "#{var_name}.fields_count = #{fields}" if widths setup << "\n#{var_name}.status_widths = [ #{widths} ]" end setup << "\n#{parent.var_name}.status_bar = #{var_name}" setup end |