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

Instance Method Details

#addToThisWidget(widget) ⇒ Object

Use this widget as a container for the passed widget



15
16
# File 'lib/Context/Widget.rb', line 15

def addToThisWidget(widget)
end

#removeFromThisWidget(widget) ⇒ Object

Remove the passed widget from this object.



19
20
# File 'lib/Context/Widget.rb', line 19

def removeFromThisWidget(widget)
end

#setupWidgetObject

This method creates any instance variables that you might have.



11
12
# File 'lib/Context/Widget.rb', line 11

def setupWidget
end

#widgetWasAddedTo(widget) ⇒ Object

This method is called after the widget has been successfully added to another widget



24
25
# File 'lib/Context/Widget.rb', line 24

def widgetWasAddedTo(widget)
end

#widgetWasRemovedFrom(widget) ⇒ Object

This method is called after the widget has been successfully removed from another widget



29
30
# File 'lib/Context/Widget.rb', line 29

def widgetWasRemovedFrom(widget)
end