Class: XRC2Ruby::ObjectTypes::BoxSizer
- Defined in:
- lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb
Constant Summary
Constants inherited from Sizer
Instance Attribute Summary collapse
-
#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
#orient ⇒ Object
Returns the value of attribute orient.
34 35 36 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 34 def orient @orient end |
Instance Method Details
#output ⇒ Object
35 36 37 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 35 def output "#{var_name} = Wx::BoxSizer.new(#{orient.gsub(/^wx/, "Wx::")})\n" end |