Source codeContentsIndex
Screen
Description
The module Screen exports general functionality on the screen's properties.
Synopsis
data Distance
newtype Screen w = Screen w
getScreenHeight :: (Window a) => Screen a -> IO Distance
getScreenWidth :: (Window a) => Screen a -> IO Distance
getScreenManager :: (Window a) => Screen a -> IO String
data VisualClass
= DirectColour
| GrayScale
| PseudoColour
| StaticColour
| StaticGray
| TrueColour
getScreenVisual :: (Window a) => Screen a -> IO VisualClass
Documentation
data Distance
newtype Screen w
The Screen datatype.
Constructors
Screen w
getScreenHeight
:: (Window a)
=> Screen a the concerned screen.
-> IO Distance The screen's height.
Gets the height of the screen.
getScreenWidth
:: (Window a)
=> Screen a the concerned screen.
-> IO Distance The screen's width.
Gets the width of the screen.
getScreenManager
:: (Window a)
=> Screen a the concerned screen.
-> IO String A textual representation of the screen manager.
Gets the screen manager from a screen.
data VisualClass
The VisualClass datatype (see Screen.getScreenVisual).
Constructors
DirectColour
GrayScale
PseudoColour
StaticColour
StaticGray
TrueColour
Instances
GUIValue VisualClass
Read VisualClass
Show VisualClass
getScreenVisual
:: (Window a)
=> Screen a the concerned screen.
-> IO VisualClass The visual properties.
Gets the visual properties of the screen.
Produced by Haddock version 0.3