Class: XRC2Ruby::ObjectTypes::BoxSizer

Inherits:
Sizer 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

#orientObject

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

#outputObject



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