This modules defines attributes common to many widgets and organizes them into Haskell classes. Look at the instance definitions to see what kind of widgets support the attributes.
Sometimes it is
hard to find what attributes a certain widget supports since the instance
definitions might be on some class higher in the hierarchy. For example,
many instances are defined for
a -- this means that all
those attributes are applicable to any kind of
Window, i.e. frames,
buttons, panels etc. However, these attributes will not be explicitly
listed at the type definitions of those classes.
- data Border
- class Textual w where
- class Literate w where
- class Dimensions w where
- class Colored w where
- class Visible w where
- class Bordered w where
- class Child w where
- class Parent w where
- class Closeable w where
- class Selection w where
- class Selections w where
- class Items w a | w -> a where
- class Able w where
- class Help w where
- class Tipped w where
- class Identity w where
- class Styled w where
- class Framed w where
- class Checkable w where
- class Dockable w where
- class Pictured w where
- class Valued w where
- class Sized w where
- class HasDefault w where
Displays a thin border around the window.
Displays a double border. Windows only.
Displays a sunken border.
Displays a raised border.
Displays a border suitable for a static control. Windows only
Widgets with a label or text field.
The text of a widget. It is interpreted differently for for different widgets, for example, the title of a frame or the content of a static text control.
Widgets with a font.
The font of the widget.
The font size.
The font weight.
The font family.
The font style.
The font face: determines a platform dependent font.
Is the font underlined?
Text background color
Widgets that have a size.
The outer size of a widget (in pixels).
The (relative) position of a widget.
The occupied area.
The preferred size of a widget.
The area available for client use (i.e. without the border etc).
The virtual size of a widget (ie. the total scrolling area)
The background color.
The (foreground) color
Is the widget visible?
Refresh the widget explicitly.
Widgets with a border.
Widgets that are part of a hierarchical order.
Get the child widgets of a window.
Reduce flicker by not redrawing the background under child controls.
This attribute has to be set at creation time. (
True by default)
Widgets that can be closed.
Widgets with a single selection (radio group or listbox)
The current selection as a zero-based index. Certain widgets return -1 when no item is selected.
Widget with zero or more selections (multi select list boxes)
Widgets containing certain items (like strings in a listbox)
Number of items.
All the items as a list. This attribute might not be writable for some widgets (like radioboxes)
An item by zero-based index.
Delete an item. Only valid for writeable items.
Delete all items. Only valid for writeable items.
Append an item. Only valid for writeable items.
Widgets that can be enabled or disabled.
Widgets with help text.
Widgets that have a tooltip
The identity determines the wxWindows ID of a widget.
The style is a bitmask that determines various properties of a widget.
Widgets that have a system frame around them.
Make the widget user resizeable? This attribute must be set at creation time.
Can the widget be minimized? This attribute must be set at creation time.
Can the widget be maximized? This attribute must be set at creation time
and is normally used together with
Can the widget be closed by the user? This attribute must be set at creation time.
Is the widget checkable?
Is the widget checked?
Widgets with a picture.
Items with a value.
Sized objects (like bitmaps)
Objects which activate a
Window by default keypress
Define a default item as any type deriving from
Window. Great care
is required when using this option as you will have to cast the item
to/from Window() using
For the common use case where the window in question is a
defaultButton as it is typesafe.