Class: Tetris::View::TetrisMenuBar

Inherits:
Object
  • Object
show all
Includes:
Glimmer::UI::CustomWidget
Defined in:
lib/glimmer-dsl-opal/samples/elaborate/tetris/view/tetris_menu_bar.rb

Constant Summary collapse

COMMAND_KEY =
OS.mac? ? :command : :ctrl

Instance Attribute Summary

Attributes included from Glimmer::UI::CustomWidget

#body_root, #options, #parent, #swt_style

Instance Method Summary collapse

Methods included from Glimmer::UI::CustomWidget

add_custom_widget_namespaces_for, #add_observer, #async_exec, #attribute_setter, #can_add_observer?, #can_handle_observation_request?, #content, custom_widget_namespaces, for, #get_attribute, #handle_observation_request, #has_attribute?, #has_instance_method?, #has_style?, included, #initialize, #local_respond_to?, #method_missing, namespaces_for_class, #post_initialize_child, reset_custom_widget_namespaces, #respond_to?, #set_attribute, #sync_exec

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Glimmer::UI::CustomWidget

Instance Method Details

#parent_custom_shellObject



129
130
131
132
133
# File 'lib/glimmer-dsl-opal/samples/elaborate/tetris/view/tetris_menu_bar.rb', line 129

def parent_custom_shell
  # grab custom shell widget wrapping parent widget proxy (i.e. Tetris) and invoke method on it
  the_parent_custom_shell = parent_proxy&.get_data('custom_shell')
  the_parent_custom_shell if the_parent_custom_shell&.visible?
end