Class: AGTkButton
- Inherits:
-
AGTkBase
- Object
- AG
- AGTk
- AGTkLayoutManaged
- AGTkBase
- AGTkButton
- Defined in:
- lib/tk/al-tk.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from AGTk
#canvas, #l_manager, #x0, #x3, #y0, #y3
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from AGTkLayoutManaged
Methods inherited from AGTk
#activate, #active_move_tab, class_renderer, class_sniffer, #contains_events, #delete, #getFileName, #has_events, #initialize, #new_object, #popup, #popup_items, #update_property
Constructor Details
This class inherits a constructor from AGTk
Class Method Details
.class_wrapped ⇒ Object
2769 2770 2771 |
# File 'lib/tk/al-tk.rb', line 2769 def AGTkButton.class_wrapped TkButton end |
Instance Method Details
#properties ⇒ Object
2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 |
# File 'lib/tk/al-tk.rb', line 2773 def properties super() publish('property',TkProperties::relief(@obj)) publish('property',TkProperties::overrelief(@obj)) publish('property',TkProperties::foreground(@obj)) publish('property',TkProperties::compound(@obj)) publish('property',TkProperties::image(@obj)) publish('property',TkProperties::font(@obj)) publish('property',TkProperties::anchor(@obj)) publish('property',TkProperties::padx(@obj)) publish('property',TkProperties::pady(@obj)) publish('property',TkProperties::activebackground(@obj)) publish('property',TkProperties::text(@obj)) publish('property',TkProperties::activeforeground(@obj)) publish('property',TkProperties::borderwidth(@obj)) publish('property','name'=>'justify', 'get'=> proc{@obj.cget('justify')}, 'set'=> proc{|j| @obj.configure('justify'=>j)}, 'def'=> "", 'type'=> TkType::TkagJustify ) publish('property','name'=>'default', 'get'=> proc{@obj.cget('default')}, 'set'=> proc{|j| @obj.configure('default'=>j)}, 'def'=> "", 'type'=> TkType::TkagState ) end |