Class: XRC2Ruby::ObjectTypes::StaticBoxSizer
- Defined in:
- lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb
Constant Summary
Constants inherited from Sizer
XRC2Ruby::ObjectTypes::Sizer::BASE_NAME
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#orient ⇒ Object
Returns the value of attribute orient.
Attributes inherited from Object
#centered, #name, #parent, #sub_class, #win_class
Instance Method Summary collapse
Methods inherited from Object
#initialize, #inspect, next_id, #var_name
Constructor Details
This class inherits a constructor from XRC2Ruby::ObjectTypes::Object
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label.
41 42 43 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 41 def label @label end |
#orient ⇒ Object
Returns the value of attribute orient.
41 42 43 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 41 def orient @orient end |
Instance Method Details
#output ⇒ Object
42 43 44 45 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 42 def output "#{var_name} = Wx::StaticBoxSizer.new(#{orient.gsub(/^wx/, "Wx::")}," + " #{parent.var_name}, '#{label}')" end |