Class: MittensUi::Label
Instance Attribute Summary
Attributes inherited from Core
Instance Method Summary collapse
-
#initialize(text, options) ⇒ Label
constructor
A new instance of Label.
- #render ⇒ Object
Methods inherited from Core
#hidden?, #hide, #remove, #show
Methods included from Helpers
#icon_map, #list_system_icons, #set_margin_from_opts_for
Constructor Details
#initialize(text, options) ⇒ Label
Returns a new instance of Label.
5 6 7 8 9 10 11 12 |
# File 'lib/mittens_ui/label.rb', line 5 def initialize(text, ) if text.nil? || text == "" || text == " " text = "Label" end @label = Gtk::Label.new(text) super(@label, ) end |
Instance Method Details
#render ⇒ Object
14 15 16 17 |
# File 'lib/mittens_ui/label.rb', line 14 def render $vertical_box.pack_start(@label) return self end |