Class: XRC2Ruby::ObjectTypes::StdDialogButtonSizer

Inherits:
Sizer
  • Object
show all
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

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.



57
58
59
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 57

def cols
  @cols
end

#hgapObject

Returns the value of attribute hgap.



57
58
59
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 57

def hgap
  @hgap
end

#rowsObject

Returns the value of attribute rows.



57
58
59
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 57

def rows
  @rows
end

#vgapObject

Returns the value of attribute vgap.



57
58
59
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 57

def vgap
  @vgap
end

Instance Method Details

#outputObject



58
59
60
61
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 58

def output
  "#{var_name} = Wx::StaticBoxSizer.new(#{orient.gsub(/^wx/, "Wx::")}," +
    " Wx::ID_ANY, '#{label}')"
end