Class: XRC2Ruby::ObjectTypes::MenuBar
- Includes:
- Parent
- Defined in:
- lib/wx_sugar/xrc/xrc2ruby_types/menu.rb
Constant Summary
Constants inherited from Window
Instance Attribute Summary
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, #size_child
Methods inherited from Window
Methods included from InitArgs
#inherited, #init_arg, #init_args, #translatable_string_init_arg
Methods inherited from Object
#initialize, #inspect, next_id, #var_name
Constructor Details
This class inherits a constructor from XRC2Ruby::ObjectTypes::Object
Instance Method Details
#output ⇒ Object
4 5 6 7 8 |
# File 'lib/wx_sugar/xrc/xrc2ruby_types/menu.rb', line 4 def output "#{var_name} = Wx::MenuBar.new\n" + child_output + "#{parent.var_name}.menu_bar = #{var_name}\n" end |