Class: XRC2Ruby::ObjectTypes::StaticBoxSizer

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

#labelObject

Returns the value of attribute label.



41
42
43
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 41

def label
  @label
end

#orientObject

Returns the value of attribute orient.



41
42
43
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 41

def orient
  @orient
end

Instance Method Details

#outputObject



42
43
44
45
# File 'lib/wx_sugar/xrc/xrc2ruby_types/sizers.rb', line 42

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