| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
HTk.Tix.Subwidget
- class Widget w => CanBeSubwidget w where
- createAsSubwidget :: GUIOBJECT -> IO w
- createSubwidget :: ObjectKind -> Methods -> GUIOBJECT -> IO GUIOBJECT
Documentation
class Widget w => CanBeSubwidget w where Source
Tix mega widgets are composed of several subwidgets.
As it is sometimes important to access these subwidgets, there
is a way in Htk of creating widgets as subwidgets by instanciating the
class CanBeSubwidget.
Use createAsSubwidget instead of the normal constructor new[WidgetName].
Methods
createAsSubwidget :: GUIOBJECT -> IO w Source
Instances
| GUIValue a => CanBeSubwidget (Entry a) | An entry widget can be a subwidget, e.g. in a combo box |
| GUIValue a => CanBeSubwidget (ListBox a) |
createSubwidget :: ObjectKind -> Methods -> GUIOBJECT -> IO GUIOBJECT Source
Using the function createSubwidget, instantiating the
class CanBeSubwidget
should be easy, compare as an example instantiation of the Entry widget.