Class: Glimmer::Tk::LblProxy

Inherits:
WidgetProxy show all
Defined in:
lib/glimmer/tk/lbl_proxy.rb

Overview

Non-Themable (non-Tile) Tk Label

Constant Summary

Constants inherited from WidgetProxy

WidgetProxy::FONTS_PREDEFINED

Instance Attribute Summary

Attributes inherited from WidgetProxy

#args, #bind_ids, #children, #destroyed, #keyword, #on_drag_motion_block, #parent_proxy, #tk

Instance Method Summary collapse

Methods inherited from WidgetProxy

#add_observer, #ancestor_proxies, #apply_style, #attribute_setter, #content, create, #destroy, #drag_source=, #font=, #get_attribute, #grid, #handle_listener, #has_attribute?, #has_attributes_attribute?, #has_state?, #image_argument, #initialize, #inspect, #make_draggable, #make_non_draggable, #method_missing, #on, #on_drag_start_block=, #on_drop_block=, #post_add_content, #post_initialize_child, #respond_to?, #root_parent_proxy, #set_attribute, #style=, #textvariable_defined?, tk_widget_class_for, #tk_widget_has_attribute_getter_setter?, #tk_widget_has_attribute_setter?, #toplevel_parent_proxy, #unbind_all, #widget_attribute_listener_installers, #widget_custom_attribute_mapping, widget_exists?, widget_proxy_class

Constructor Details

This class inherits a constructor from Glimmer::Tk::WidgetProxy

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Glimmer::Tk::WidgetProxy

Instance Method Details

#build_widgetObject



28
29
30
# File 'lib/glimmer/tk/lbl_proxy.rb', line 28

def build_widget
  @tk = ::TkLabel.new(@parent_proxy.tk, *args).tap {|tk| tk.singleton_class.include(Glimmer::Tk::Widget); tk.proxy = self}
end