|
Graphics.UI.WX.Attributes |
|
|
|
|
Description |
|
|
Synopsis |
|
|
|
|
Attributes
|
|
|
Widgets w can have attributes of type a.
|
|
|
|
A property of a widget w is an attribute that
is already associated with a value. .
| Constructors | forall a . (Attr w a) := a | Assign a value to an attribute.
| forall a . (Attr w a) :~ (a -> a) | Apply an update function to an attribute.
| forall a . (Attr w a) ::= (w -> a) | Assign a value to an attribute with the widget as argument.
| forall a . (Attr w a) ::~ (w -> a -> a) | Apply an update function to an attribute with the widget as an argument.
|
|
|
|
|
A read-only attribute. Just for documentation purposes.
|
|
|
A write-only attribute. Just for documentation purposes.
|
|
|
An attribute that should be specified at creation time. Just for documentation purposes.
|
|
|
Get the value of an attribute
t <- get w text
|
|
|
Set a list of properties.
set w [text := "Hi"]
|
|
|
Set the value of an attribute and return the old value.
|
|
|
(mapAttr get set attr) maps an attribute of Attr w a to
Attr w b where (get :: a -> b) is used when the attribute is
requested and (set :: a -> b -> a) is applied to current
value when the attribute is set.
|
|
|
(mapAttrW conv attr) maps an attribute of Attr w a to
Attr v a where (conv :: v -> w) is used to convert a widget
v into a widget of type w.
|
|
Internal
|
|
Attributes
|
|
|
Create a new attribute with a specified name, getter and setter function.
|
|
|
Define a read-only attribute.
|
|
|
Define a write-only attribute.
|
|
|
A dummy attribute.
|
|
|
A constant attribute.
|
|
|
Create a new attribute with a specified name, getter, setter, and updater function.
|
|
Reflection
|
|
|
Retrieve the name of an attribute
|
|
|
Retrieve the name of a property.
|
|
|
Is a certain property in a list of properties?
|
|
Reflective attributes
|
|
|
Create a reflective attribute with a specified name: value can possibly
retrieved using getPropValue. Note: the use of this function is discouraged
as it leads to non-compositional code.
|
|
|
Create a reflective attribute with a specified name: value can possibly
retrieved using getPropValue. Note: the use of this function is discouraged
as it leads to non-compositional code.
|
|
|
Try to find a property value and call the contination function with that value
and the property list witht the searched property removed. If the property is not
found, use the default value and the unchanged property list.
|
|
|
Try to find a property value. Return |Nothing| if not found at all.
|
|
|
Transform the properties based on a style property.
|
|
|
Transform the properties based on a style property. The flag is interpreted negatively, i.e. |True|
removes the bit instead of setting it.
|
|
Filter
|
|
|
Property value: used when retrieving a property from a list.
| Constructors | PropValue a | | PropModify (a -> a) | | PropNone | |
| Instances | |
|
|
|
Retrieve the value of a property and the list with the property removed.
|
|
Cast
|
|
|
Cast attributes.
|
|
|
Cast properties
|
|
|
Cast a list of properties.
|
|
Produced by Haddock version 2.1.0 |