Class: Nuklear::UI::MenuBar
- Includes:
- Container
- Defined in:
- lib/nuklear/ui/menu_bar.rb
Instance Method Summary collapse
-
#initialize(enabled: true) ⇒ MenuBar
constructor
A new instance of MenuBar.
- #result(visible, context) ⇒ Object
- #to_command ⇒ Object
Methods included from Container
#<<, #commands, #find, #layout_row_dynamic, #method_missing, #run_command, #run_commands, #traverse, #ui_checkbox, #ui_color_picker, #ui_combo, #ui_edit_focus, #ui_edit_string, #ui_layout_row_begin, #ui_layout_row_dynamic, #ui_layout_row_push, #ui_layout_row_static, #ui_layout_row_template_begin, #ui_layout_row_template_dynamic, #ui_layout_row_template_end, #ui_layout_row_template_static, #ui_layout_row_template_variable, #ui_layout_space_begin, #ui_layout_space_end, #ui_layout_space_push, #ui_layout_widget_bounds, #ui_menu_item, #ui_option, #ui_selectable, #ui_window_close
Methods inherited from Base
Methods included from Enableable
#disable, #disabled=, #disabled?, #enable, #enabled=, #enabled?
Methods included from Events
#event_listeners_for, #on, #trigger
Constructor Details
#initialize(enabled: true) ⇒ MenuBar
Returns a new instance of MenuBar.
6 7 8 |
# File 'lib/nuklear/ui/menu_bar.rb', line 6 def initialize(enabled: true) super enabled: enabled end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Nuklear::UI::Container
Instance Method Details
#result(visible, context) ⇒ Object
14 15 16 |
# File 'lib/nuklear/ui/menu_bar.rb', line 14 def result(visible, context) run_commands(context) if visible end |
#to_command ⇒ Object
10 11 12 |
# File 'lib/nuklear/ui/menu_bar.rb', line 10 def to_command [:ui_menubar] end |