Class: Glimmer::Tk::LabelProxy
- Inherits:
-
WidgetProxy
- Object
- WidgetProxy
- Glimmer::Tk::LabelProxy
- Includes:
- TextVariableOwner
- Defined in:
- lib/glimmer/tk/label_proxy.rb
Overview
Proxy for Tk::Tile::TLabel
Follows the Proxy Design Pattern
Constant Summary collapse
- FONTS_PREDEFINED =
%w[default text fixed menu heading caption small_caption icon tooltip]
Instance Attribute Summary
Attributes inherited from WidgetProxy
#args, #children, #keyword, #parent_proxy, #tk
Instance Method Summary collapse
Methods included from TextVariableOwner
Methods inherited from WidgetProxy
#add_observer, #apply_style, #attribute_setter, #content, create, #get_attribute, #grid, #handle_listener, #has_attribute?, #has_attributes_attribute?, #has_state?, #image_argument, #initialize, #method_missing, #post_add_content, #post_initialize_child, #respond_to?, #set_attribute, #style=, tk_widget_class_for, #tk_widget_has_attribute_getter_setter?, #tk_widget_has_attribute_setter?, #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
#font=(value) ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/glimmer/tk/label_proxy.rb', line 35 def font=(value) if (value.is_a?(Symbol) || value.is_a?(String)) && FONTS_PREDEFINED.include?(value.to_s.downcase) @tk.font = "tk_#{value}_font".camelcase(:upper) else super end end |