Class: XRC2Ruby::ObjectTypes::StatusBar

Inherits:
Container show all
Defined in:
lib/wx_sugar/xrc/xrc2ruby_types/containers.rb

Constant Summary

Constants inherited from Window

Window::BASE_NAME

Instance Attribute Summary collapse

Attributes included from Parent

#children, #main_sizer, #sizer_items

Attributes inherited from Window

#bg, #enabled, #exstyle, #fg, #help, #hidden, #tooltip

Attributes inherited from Object

#centered, #name, #parent, #sub_class, #win_class

Instance Method Summary collapse

Methods included from Parent

#add_child, #child_output, #named_windows, #output, #size_child

Methods inherited from Window

#args, #output

Methods included from InitArgs

#inherited, #init_arg, #init_args, #translatable_string_init_arg

Methods inherited from Object

#initialize, #inspect, next_id, #output, #var_name

Constructor Details

This class inherits a constructor from XRC2Ruby::ObjectTypes::Object

Instance Attribute Details

#fieldsObject

Returns the value of attribute fields.



95
96
97
# File 'lib/wx_sugar/xrc/xrc2ruby_types/containers.rb', line 95

def fields
  @fields
end

#widthsObject

Returns the value of attribute widths.



95
96
97
# File 'lib/wx_sugar/xrc/xrc2ruby_types/containers.rb', line 95

def widths
  @widths
end

Instance Method Details

#setupObject



96
97
98
99
100
101
102
103
# File 'lib/wx_sugar/xrc/xrc2ruby_types/containers.rb', line 96

def setup
  setup = "#{var_name}.fields_count = #{fields}"
  if widths
    setup << "\n#{var_name}.status_widths = [ #{widths} ]"
  end
  setup << "\n#{parent.var_name}.status_bar = #{var_name}"
  setup
end