Class: MittensUi::Core
- Inherits:
-
Object
- Object
- MittensUi::Core
- Includes:
- Helpers
- Defined in:
- lib/mittens_ui/core.rb
Direct Known Subclasses
Button, Checkbox, FileMenu, HeaderBar, Image, Label, ListBox, Loader, Notify, Slider, Switch, TableView, Textbox, WebLink
Instance Attribute Summary collapse
-
#core_widget ⇒ Object
readonly
Returns the value of attribute core_widget.
Instance Method Summary collapse
- #hidden? ⇒ Boolean
- #hide ⇒ Object
-
#initialize(widget, options = {}) ⇒ Core
constructor
All MittenUi::Widgets::* classes should inherit from this base class.
- #remove ⇒ Object
- #show ⇒ Object
Methods included from Helpers
#icon_map, #list_system_icons, #set_margin_from_opts_for
Constructor Details
#initialize(widget, options = {}) ⇒ Core
All MittenUi::Widgets::* classes should inherit from this base class.
11 12 13 14 15 |
# File 'lib/mittens_ui/core.rb', line 11 def initialize(, ={}) # core_widget is the Raw Gtk::Widget* @core_widget = set_margin_from_opts_for(@core_widget, ) end |
Instance Attribute Details
#core_widget ⇒ Object (readonly)
Returns the value of attribute core_widget.
7 8 9 |
# File 'lib/mittens_ui/core.rb', line 7 def @core_widget end |
Instance Method Details
#hidden? ⇒ Boolean
21 22 23 |
# File 'lib/mittens_ui/core.rb', line 21 def hidden? @core_widget.visible? end |
#hide ⇒ Object
25 26 27 28 |
# File 'lib/mittens_ui/core.rb', line 25 def hide return if @core_widget.nil? @core_widget.hide end |
#remove ⇒ Object
30 31 32 |
# File 'lib/mittens_ui/core.rb', line 30 def remove $vertical_box.remove(@core_widget) end |
#show ⇒ Object
17 18 19 |
# File 'lib/mittens_ui/core.rb', line 17 def show @core_widget.show_all end |