Safe Haskell | None |
---|---|
Language | Haskell98 |
Basic types and classes concerning toplevel window resources.
- class GUIObject w => Window w where
- type Display = String
- maxSize :: Window w => Size -> Config w
- getMaxSize :: Window w => w -> IO Size
- minSize :: Window w => Size -> Config w
- getMinSize :: Window w => w -> IO Size
- raiseWin :: (Window w1, Window w2) => w1 -> w2 -> IO ()
- lowerWin :: (Window w1, Window w2) => w1 -> w2 -> IO ()
- data WindowState
- data AspectRatio
- data Whom
- isWMConfig :: ConfigID -> Bool
Documentation
class GUIObject w => Window w where Source #
Toplevel windows instantiate the class Window
.
iconify :: w -> IO () Source #
deiconify :: w -> IO () Source #
withdraw :: w -> IO () Source #
putWinOnTop :: w -> IO () Source #
putWinAtBottom :: w -> IO () Source #
screen :: Display -> Config w Source #
getScreen :: w -> IO Display Source #
getClassName :: w -> IO String Source #
getWindowState :: w -> IO WindowState Source #
aspectRatio :: AspectRatio -> Config w Source #
getAspectRatio :: w -> IO AspectRatio Source #
positionFrom :: Whom -> Config w Source #
getPositionFrom :: w -> IO Whom Source #
sizeFrom :: Whom -> Config w Source #
getSizeFrom :: w -> IO Whom Source #
Window Toplevel Source # | A toplevel widget is a window (with various configurations and actions concerning its stacking order, display status, screen, aspect ratio etc.). |
Window HTk Source # | The wish instance is associated with the main window (with various configurations and actions concerning its stacking order, display status, screen, aspect ratio etc.). |
CItem c => Window (GenGUI c) Source # | A |
Puts the first given window just above the second given window in the stacking order.
Puts the first given window just below the second given window in the stacking order.
data WindowState Source #
The WindowState
datatype.
Enum WindowState Source # | |
Eq WindowState Source # | |
Ord WindowState Source # | |
Read WindowState Source # | Internal. |
Show WindowState Source # | Internal. |
GUIValue WindowState Source # | Internal. |
data AspectRatio Source #
The AspectRatio
datatype.
Eq AspectRatio Source # | |
Read AspectRatio Source # | Internal. |
Show AspectRatio Source # | Internal. |
GUIValue AspectRatio Source # | Internal. |
The Whom
datatype.
isWMConfig :: ConfigID -> Bool Source #
Internal.
Orphan instances
Window w => HasGeometry w Source # | A window has a configureable size and anchor position (geometry). |
(Window w, GUIObject w) => HasPosition w Source # | A window has a position on the associated screen. |
(Window w, GUIObject w) => HasSize w Source # | A window has a configureable size. |
(Window w, GUIValue v) => HasText w v Source # | A window has a title. |