Basic types and classes concerning toplevel window resources.
- class GUIObject w => Window w where
- iconify :: w -> IO ()
- deiconify :: w -> IO ()
- withdraw :: w -> IO ()
- putWinOnTop :: w -> IO ()
- putWinAtBottom :: w -> IO ()
- screen :: Display -> Config w
- getScreen :: w -> IO Display
- getClassName :: w -> IO String
- getWindowState :: w -> IO WindowState
- aspectRatio :: AspectRatio -> Config w
- getAspectRatio :: w -> IO AspectRatio
- positionFrom :: Whom -> Config w
- getPositionFrom :: w -> IO Whom
- sizeFrom :: Whom -> Config w
- getSizeFrom :: w -> IO Whom
- 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
- = Deiconified
- | Iconified
- | Withdrawn
- data AspectRatio
- data Whom
- isWMConfig :: ConfigID -> Bool
Documentation
class GUIObject w => Window w whereSource
Toplevel windows instantiate the class Window
.
putWinOnTop :: w -> IO ()Source
putWinAtBottom :: w -> IO ()Source
screen :: Display -> Config wSource
getScreen :: w -> IO DisplaySource
getClassName :: w -> IO StringSource
getWindowState :: w -> IO WindowStateSource
aspectRatio :: AspectRatio -> Config wSource
getAspectRatio :: w -> IO AspectRatioSource
positionFrom :: Whom -> Config wSource
getPositionFrom :: w -> IO WhomSource
sizeFrom :: Whom -> Config wSource
getSizeFrom :: w -> IO WhomSource
Window Toplevel | A toplevel widget is a window (with various configurations and actions concerning its stacking order, display status, screen, aspect ratio etc.). |
Window HTk | 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) | A |
getMaxSize :: Window w => w -> IO SizeSource
Gets the maximum size of the window.
getMinSize :: Window w => w -> IO SizeSource
Gets the minimum size of the window.
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 | |
Eq WindowState | |
Ord WindowState | |
Read WindowState | Internal. |
Show WindowState | Internal. |
GUIValue WindowState | Internal. |
data AspectRatio Source
The AspectRatio
datatype.
Eq AspectRatio | |
Read AspectRatio | Internal. |
Show AspectRatio | Internal. |
GUIValue AspectRatio | Internal. |
The Whom
datatype.
isWMConfig :: ConfigID -> BoolSource
Internal.