Class: XRC2Ruby::ObjectTypes::FlexGridSizer
- Defined in:
- lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb
Constant Summary
Constants inherited from Sizer
Instance Attribute Summary collapse
-
#cols ⇒ Object
Returns the value of attribute cols.
-
#hgap ⇒ Object
Returns the value of attribute hgap.
-
#rows ⇒ Object
Returns the value of attribute rows.
-
#vgap ⇒ Object
Returns the value of attribute vgap.
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
#cols ⇒ Object
Returns the value of attribute cols.
49 50 51 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 49 def cols @cols end |
#hgap ⇒ Object
Returns the value of attribute hgap.
49 50 51 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 49 def hgap @hgap end |
#rows ⇒ Object
Returns the value of attribute rows.
49 50 51 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 49 def rows @rows end |
#vgap ⇒ Object
Returns the value of attribute vgap.
49 50 51 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 49 def vgap @vgap end |
Instance Method Details
#output ⇒ Object
50 51 52 53 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 50 def output "#{var_name} = Wx::StaticBoxSizer.new(#{orient.gsub(/^wx/, "Wx::")}," + " Wx::ID_ANY, '#{label}')" end |