Class: SettingsCell
- Inherits:
-
Gtk::Frame
- Object
- Gtk::Frame
- SettingsCell
- Defined in:
- lib/gswax/settings_manager.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
Instance Method Summary collapse
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label.
11 12 13 |
# File 'lib/gswax/settings_manager.rb', line 11 def label @label end |
Instance Method Details
#hover ⇒ Object
21 22 23 |
# File 'lib/gswax/settings_manager.rb', line 21 def hover @label.state = Gtk::StateType::SELECTED end |
#leave ⇒ Object
25 26 27 |
# File 'lib/gswax/settings_manager.rb', line 25 def leave @label.state = Gtk::StateType::NORMAL end |
#set(label_text, label_pos, width, height) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/gswax/settings_manager.rb', line 13 def set(label_text, label_pos, width, height) @label = Gtk::Label.new(label_text) self. = @label self.set_width_request(width) if width self.set_height_request(height) if height self.label_xalign = label_pos if label_pos end |