|
|
|
|
|
| Description |
| Basic types and classes concerning toplevel window resources. |
|
| Synopsis |
|
|
|
| Documentation |
|
| class (GUIObject w) => Window w where |
| Toplevel windows instantiate the class Window. | | | Methods | | iconify :: w -> IO () | | Iconifies the window. | | | deiconify :: w -> IO () | | Deiconifies the window. | | | withdraw :: w -> IO () | | Withdraws the window. | | | putWinOnTop :: w -> IO () | | Puts the window on top. | | | putWinAtBottom :: w -> IO () | | Puts the window at bottom. | | | screen :: Display -> Config w | | Sets the screen for this window. | | | getScreen :: w -> IO Display | | Gets the screen from this window. | | | getClassName :: w -> IO String | | Returns the resource class of the given window. | | | getWindowState :: w -> IO WindowState | | Gets the current window state. | | | aspectRatio :: AspectRatio -> Config w | | Sets the aspect ratio for the given window. | | | getAspectRatio :: w -> IO AspectRatio | | Gets the aspect ratio of the given window. | | | positionFrom :: Whom -> Config w | | Set 'Whom' to be Program or
User. | | | getPositionFrom :: w -> IO Whom | | Gets the current setting. | | | sizeFrom :: Whom -> Config w | | Set 'Whom' to be Program or | | | getSizeFrom :: w -> IO Whom | | Gets the current setting. |
| | | Instances | |
|
|
| type Display = String |
|
| 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) => 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 (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 | |
|
|
| maxSize :: (Window w) => Size -> Config w |
|
| getMaxSize :: (Window w) => w -> IO Size |
| Gets the maximum size of the window. |
|
| minSize :: (Window w) => Size -> Config w |
| Constraints the minimum size of the window. |
|
| getMinSize :: (Window w) => w -> IO Size |
| Gets the minimum size of the window. |
|
| raiseWin |
| :: (Window w1, Window w2) | | | => w1 | the first window. | | -> w2 | the second window. | | -> IO () | None. | | Puts the first given window just above the second given window
in the stacking order. |
|
|
| lowerWin |
| :: (Window w1, Window w2) | | | => w1 | the first window. | | -> w2 | the second window. | | -> IO () | None. | | Puts the first given window just below the second given window
in the stacking order. |
|
|
| data WindowState |
| The WindowState datatype. | | Constructors | | Deiconified | | | Iconified | | | Withdrawn | |
| | Instances | |
|
|
| data AspectRatio |
|
| data Whom |
|
| isWMConfig :: ConfigID -> Bool |
|
| Produced by Haddock version 0.3 |