Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
Safe Haskell | None |
Maintains a list of all open GdkDisplays
- Module available since Gdk version 2.2
- data DisplayManager
- class GObjectClass o => DisplayManagerClass o
- castToDisplayManager :: GObjectClass obj => obj -> DisplayManager
- toDisplayManager :: DisplayManagerClass o => o -> DisplayManager
- displayManagerGet :: IO DisplayManager
- displayManagerListDisplays :: DisplayManagerClass self => self -> IO [Display]
- displayManagerDefaultDisplay :: DisplayManagerClass self => Attr self Display
- displayManagerOpened :: DisplayManagerClass self => Signal self (Display -> IO ())
Detail
The purpose of the DisplayManager
singleton object is to offer
notification when displays appear or disappear or the default display
changes.
Class Hierarchy
| GObject
| +----DisplayManager
Types
data DisplayManager Source
castToDisplayManager :: GObjectClass obj => obj -> DisplayManagerSource
toDisplayManager :: DisplayManagerClass o => o -> DisplayManagerSource
Methods
:: IO DisplayManager | returns the singleton |
Returns the global DisplayManager
singleton; parsePargs
, init
, or
initCheck
must have been called first.
displayManagerListDisplaysSource
:: DisplayManagerClass self | |
=> self | |
-> IO [Display] | returns a newly allocated list of |
List all currently open displays.
Attributes
displayManagerDefaultDisplay :: DisplayManagerClass self => Attr self DisplaySource
The default display.
Signals
displayManagerOpened :: DisplayManagerClass self => Signal self (Display -> IO ())Source
The displayManagerOpened
signal is emitted when a display is opened.