Class: Interphase::Label
- Defined in:
- lib/interphase/widgets/label.rb
Overview
A text label.
Instance Attribute Summary
Attributes inherited from Widget
Instance Method Summary collapse
-
#initialize(text = '', **options, &block) ⇒ Label
constructor
Creates a new label.
-
#text ⇒ Object
Retrieve the label’s text.
-
#text=(value) ⇒ Object
Set the text in this label.
Methods inherited from Widget
#destroy, #method_missing, #on, #respond_to_missing?, #show, #size
Constructor Details
#initialize(text = '', **options, &block) ⇒ Label
Creates a new label.
9 10 11 |
# File 'lib/interphase/widgets/label.rb', line 9 def initialize(text = '', **, &block) super(Gtk::Label.new(text), , &block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Interphase::Widget
Instance Method Details
#text ⇒ Object
Retrieve the label’s text.
19 20 21 |
# File 'lib/interphase/widgets/label.rb', line 19 def text gtk_instance.text end |
#text=(value) ⇒ Object
Set the text in this label.
14 15 16 |
# File 'lib/interphase/widgets/label.rb', line 14 def text=(value) gtk_instance.text = value end |