| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
HTk.Tix.Subwidget
- class Widget w => CanBeSubwidget w where
- 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].
Minimal complete definition
Methods
createAsSubwidget :: GUIOBJECT -> IO w Source #
Instances
| GUIValue a => CanBeSubwidget (ListBox a) Source # | |
| GUIValue a => CanBeSubwidget (Entry a) Source # | An entry widget can be a subwidget, e.g. in a combo box |
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.