Class: XRC2Ruby::ObjectTypes::FlexGridSizer

Inherits:
Sizer
  • Object
show all
Defined in:
lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb

Constant Summary

Constants inherited from Sizer

Sizer::BASE_NAME

Instance Attribute Summary collapse

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

#colsObject

Returns the value of attribute cols.



49
50
51
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 49

def cols
  @cols
end

#hgapObject

Returns the value of attribute hgap.



49
50
51
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 49

def hgap
  @hgap
end

#rowsObject

Returns the value of attribute rows.



49
50
51
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 49

def rows
  @rows
end

#vgapObject

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

#outputObject



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