|
|
|
|
|
| Description |
| Basic types and classes concerning widget configuration. |
|
| Synopsis |
|
| class (GUIObject w) => HasColour w where | | | | background :: (ColourDesignator c, HasColour w) => c -> Config w | | | getBackground :: (HasColour w) => w -> IO Colour | | | foreground :: (ColourDesignator c, HasColour w) => c -> Config w | | | getForeground :: (HasColour w) => w -> IO Colour | | | activeBackground :: (ColourDesignator c, HasColour w) => c -> Config w | | | getActiveBackground :: (HasColour w) => w -> IO Colour | | | activeForeground :: (ColourDesignator c, HasColour w) => c -> Config w | | | getActiveForeground :: (HasColour w) => w -> IO Colour | | | disabledForeground :: (ColourDesignator c, HasColour w) => c -> Config w | | | getDisabledForeground :: (HasColour w) => w -> IO Colour | | | fg :: (ColourDesignator c, HasColour w) => c -> Config w | | | bg :: (ColourDesignator c, HasColour w) => c -> Config w | | | hasBackGroundColour :: (HasColour w) => w -> ConfigID -> Bool | | | hasForeGroundColour :: (HasColour w) => w -> ConfigID -> Bool | | | class (GUIObject w) => HasSize w where | | | | class (GUIObject w) => HasPosition w where | | | | class (HasSize w, HasPosition w) => HasGeometry w where | | | | class (GUIObject w) => HasCanvAnchor w where | | | | class (GUIObject w) => HasBorder w where | | | | class (GUIObject w, GUIValue v) => HasValue w v where | | | | class (GUIObject w, GUIValue v) => HasText w v where | | | | class (GUIObject w) => HasFont w where | | | | class (GUIObject w) => HasUnderline w where | | | | class (GUIObject w) => HasJustify w where | | | | class (GUIObject w) => HasGrid w where | | | | class (GUIObject w) => HasOrientation w where | | | | class (GUIObject w) => HasFile w where | | | | class (GUIObject w) => HasAlign w where | | | | class HasIncrement w a where | | | | class (GUIObject w) => HasEnable w where | | | | class (GUIObject w) => HasAnchor w where | | | | class (GUIObject w) => HasBBox w i where | |
|
|
| Documentation |
|
| class (GUIObject w) => HasColour w where |
| Coloured objects instantiate the class HasColour. | | | Methods | | | | Instances | |
|
|
| background :: (ColourDesignator c, HasColour w) => c -> Config w |
| Sets the background colour. |
|
| getBackground :: (HasColour w) => w -> IO Colour |
| Gets the background colour. |
|
| foreground :: (ColourDesignator c, HasColour w) => c -> Config w |
| Sets the foreground colour. |
|
| getForeground :: (HasColour w) => w -> IO Colour |
| Gets the foreground colour. |
|
| activeBackground :: (ColourDesignator c, HasColour w) => c -> Config w |
| Sets the active background colour. |
|
| getActiveBackground :: (HasColour w) => w -> IO Colour |
| Gets the active background colour. |
|
| activeForeground :: (ColourDesignator c, HasColour w) => c -> Config w |
| Sets the active foreground colour. |
|
| getActiveForeground :: (HasColour w) => w -> IO Colour |
| Gets the active foreground colour. |
|
| disabledForeground :: (ColourDesignator c, HasColour w) => c -> Config w |
| Sets the disabled foreground colour. |
|
| getDisabledForeground :: (HasColour w) => w -> IO Colour |
| Gets the disabled foreground colour. |
|
| fg :: (ColourDesignator c, HasColour w) => c -> Config w |
| Sets the foreground colour. |
|
| bg :: (ColourDesignator c, HasColour w) => c -> Config w |
| Sets the background colour. |
|
| hasBackGroundColour :: (HasColour w) => w -> ConfigID -> Bool |
| Internal. |
|
| hasForeGroundColour :: (HasColour w) => w -> ConfigID -> Bool |
| Internal. |
|
| class (GUIObject w) => HasSize w where |
| Objects with a configureable size instantiate the
class HasSize. | | | Methods | | width :: Distance -> Config w | | Sets the object's width. | | | getWidth :: w -> IO Distance | | Gets the object's width. | | | height :: Distance -> Config w | | Sets the object's height. | | | getHeight :: w -> IO Distance | | Gets the object's height. | | | size :: Size -> Config w | | Sets the object's width and height. | | | getSize :: w -> IO Size | | Gets the object's width and height. |
| | | Instances | |
|
|
| class (GUIObject w) => HasPosition w where |
| Objects with a configureable positon (e.g. canvas items) instantiate
the class HasPosition. | | | Methods | | position :: Position -> Config w | | Gets the object's position. | | | getPosition :: w -> IO Position | | Sets the object's position. |
| | | Instances | |
|
|
| class (HasSize w, HasPosition w) => HasGeometry w where |
| Objects with a configureable size and position instantiate the
class HasGeometry. | | | Methods | | geometry :: Geometry -> Config w | | Sets the object's geometry. | | | getGeometry :: w -> IO Geometry | | Gets the object's geometry. |
| | | Instances | |
|
|
| class (GUIObject w) => HasCanvAnchor w where |
| Canvasitems with an anchor position on the canvas instantiate the
class HasCanvAnchor. | | | Methods | | canvAnchor :: Anchor -> Config w | | Sets the anchor position on the canvas. | | | getCanvAnchor :: w -> IO Anchor | | Gets the anchor position on the canvas. |
| | | Instances | |
|
|
| class (GUIObject w) => HasBorder w where |
| Objects with a configureable border instantiate the
class HasBorder. | | | Methods | | borderwidth :: Distance -> Config w | | Sets the width of the object's border. | | | getBorderwidth :: w -> IO Distance | | Gets the width of the object's border. | | | relief :: Relief -> Config w | | Sets the object's relief. | | | getRelief :: w -> IO Relief | | Gets the object's relief. |
| | | Instances | |
|
|
| class (GUIObject w, GUIValue v) => HasValue w v where |
| Objects that have a value instantiate the
class HasValue. | | | Methods | | value :: v -> Config w | | Sets the object's value. | | | getValue :: w -> IO v | | Gets the object's value. |
| | | Instances | |
|
|
| class (GUIObject w, GUIValue v) => HasText w v where |
| Objects containing text instantiate the class
HasText. | | | Methods | | text :: v -> Config w | | Sets the object's text. | | | getText :: w -> IO v | | Gets the object's text. |
| | | Instances | |
|
|
| class (GUIObject w) => HasFont w where |
| Objects with a configureable font instantiate the
class HasFont. | | | Methods | | | | Instances | |
|
|
| class (GUIObject w) => HasUnderline w where |
| Objects that have a text underline configure option instantiate th
class HasUnderline. | | | Methods | | underline :: Int -> Config w | | Sets the index position of the text character to underline. | | | getUnderline :: w -> IO Int | | Gets the index position of the text character to underline. | | | wraplength :: Int -> Config w | | Sets the maximum line length for text in screen units. | | | getWraplength :: w -> IO Int | | Gets the maximum line length for text in screen units. |
| | | Instances | |
|
|
| class (GUIObject w) => HasJustify w where |
| Objects that have a configureable text justification instantiate the
class HasJustify. | | | Methods | | justify :: Justify -> Config w | | Sets the text justification. | | | getJustify :: w -> IO Justify | | Gets the set text justification. |
| | | Instances | |
|
|
| class (GUIObject w) => HasGrid w where |
| Objects that support geometry gridding instantiate the
class HasGrid. | | | Methods | | setgrid :: Toggle -> Config w | | Enables geometry gridding. | | | getGrid :: w -> IO Toggle | | Gets the current setting. |
| | | Instances | |
|
|
| class (GUIObject w) => HasOrientation w where |
| Oriented objects instantiate the class HasOrientation. | | | Methods | | | | Instances | |
|
|
| class (GUIObject w) => HasFile w where |
| Objects associated with a file instantiate the
class HasFile. | | | Methods | | filename :: String -> Config w | | Sets the name of the associated file. | | | getFileName :: w -> IO String | | Gets the name of the associated file. |
| | | Instances | |
|
|
| class (GUIObject w) => HasAlign w where |
| Objects with a configureable alignment instantiate the
class HasAlign. | | | Methods | |
|
|
| class HasIncrement w a where |
| Incrementable objects (e.g. scale wigdgets) instantiate the
class HasIncrement. | | | Methods | | increment :: a -> Config w | | Increments the object. | | | getIncrement :: w -> IO a | | Gets object's incrementation. |
| | | Instances | |
|
|
| class (GUIObject w) => HasEnable w where |
| Stateful objects that can be enabled or disabled instantiate the
class HasEnable. | | | Methods | | state :: State -> Config w | | Sets the objects state. | | | getState :: w -> IO State | | Gets the objects state. | | | disable :: Config w | | Disables the object. | | | enable :: Config w | | Enables the object. | | | isEnabled :: w -> IO Bool | | True if the object is enabled. |
| | | Instances | |
|
|
| class (GUIObject w) => HasAnchor w where |
| Objects that have an anchor position instantiate the
class HasAnchor. | | | Methods | | anchor :: Anchor -> Config w | | Sets the anchor position. | | | getAnchor :: w -> IO Anchor | | Gets the anchor position. |
| | | Instances | |
|
|
| class (GUIObject w) => HasBBox w i where |
| Objects or sets of objects with a bounding box (e.g. canvas tags)
instantiate the class HasBBox. | | | Methods | | | | Instances | |
|
|
| Produced by Haddock version 0.3 |