Module: Context::Widget
- Included in:
- Gtk
- Defined in:
- lib/Context/Widget.rb
Overview
This is the Widget mixin for Context. If you wish to be able to add to, add, or remove a widget inside a View using context, this mixin must be included. This is an abstract mixin. The methods do nothing. They should be overriden in the concrete mixins. Please see Context::Gtk::Widget for an example.
Instance Method Summary collapse
-
#addToThisWidget(widget) ⇒ Object
Use this widget as a container for the passed widget.
-
#removeFromThisWidget(widget) ⇒ Object
Remove the passed widget from this object.
-
#setupWidget ⇒ Object
This method creates any instance variables that you might have.
-
#widgetWasAddedTo(widget) ⇒ Object
This method is called after the widget has been successfully added to another widget.
-
#widgetWasRemovedFrom(widget) ⇒ Object
This method is called after the widget has been successfully removed from another widget.
Instance Method Details
#addToThisWidget(widget) ⇒ Object
Use this widget as a container for the passed widget
14 15 |
# File 'lib/Context/Widget.rb', line 14 def addToThisWidget() end |
#removeFromThisWidget(widget) ⇒ Object
Remove the passed widget from this object.
18 19 |
# File 'lib/Context/Widget.rb', line 18 def removeFromThisWidget() end |
#setupWidget ⇒ Object
This method creates any instance variables that you might have.
10 11 |
# File 'lib/Context/Widget.rb', line 10 def setupWidget end |
#widgetWasAddedTo(widget) ⇒ Object
This method is called after the widget has been successfully added to another widget
23 24 |
# File 'lib/Context/Widget.rb', line 23 def () end |
#widgetWasRemovedFrom(widget) ⇒ Object
This method is called after the widget has been successfully removed from another widget
28 29 |
# File 'lib/Context/Widget.rb', line 28 def () end |