Class: Glimmer::LibUI::ControlProxy::ImageProxy
- Inherits:
-
Glimmer::LibUI::ControlProxy
- Object
- Glimmer::LibUI::ControlProxy
- Glimmer::LibUI::ControlProxy::ImageProxy
- Defined in:
- lib/glimmer/libui/control_proxy/image_proxy.rb
Overview
Proxy for LibUI image objects
Follows the Proxy Design Pattern
Constant Summary
Constants inherited from Glimmer::LibUI::ControlProxy
BOOLEAN_PROPERTIES, STRING_PROPERTIES, TransformProxy
Instance Attribute Summary
Attributes inherited from Glimmer::LibUI::ControlProxy
#args, #block, #keyword, #libui, #parent_proxy
Instance Method Summary collapse
-
#initialize(keyword, parent, args, &block) ⇒ ImageProxy
constructor
A new instance of ImageProxy.
- #post_add_content ⇒ Object
- #post_initialize_child(child) ⇒ Object
Methods inherited from Glimmer::LibUI::ControlProxy
#append_properties, #append_property, #can_handle_listener?, constant_symbol, #content, control_proxies, create, #custom_listener_aliases, #custom_listeners, #default_destroy, descendant_keyword_constant_map, #destroy, #destroy_child, #enabled, exists?, #handle_custom_listener, #handle_listener, #has_custom_listener?, image_proxies, keyword, #libui_api_keyword, main_window_proxy, map_descendant_keyword_constants_for, menu_proxies, #method_missing, new_control, reset_descendant_keyword_constant_map, #respond_to?, #respond_to_libui?, #send_to_libui, #visible, widget_proxy_class, #window_proxy
Constructor Details
#initialize(keyword, parent, args, &block) ⇒ ImageProxy
Returns a new instance of ImageProxy.
34 35 36 37 38 39 40 41 42 |
# File 'lib/glimmer/libui/control_proxy/image_proxy.rb', line 34 def initialize(keyword, parent, args, &block) @keyword = keyword @parent_proxy = parent @args = args @block = block @enabled = true @children = [] post_add_content if @block.nil? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Glimmer::LibUI::ControlProxy
Instance Method Details
#post_add_content ⇒ Object
44 45 46 47 |
# File 'lib/glimmer/libui/control_proxy/image_proxy.rb', line 44 def post_add_content build_control super end |
#post_initialize_child(child) ⇒ Object
49 50 51 |
# File 'lib/glimmer/libui/control_proxy/image_proxy.rb', line 49 def post_initialize_child(child) @children << child end |