Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell98 |
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 -> DisplayManager Source
toDisplayManager :: DisplayManagerClass o => o -> DisplayManager Source
Methods
:: IO DisplayManager | returns the singleton |
Returns the global DisplayManager
singleton; parsePargs
, init
, or
initCheck
must have been called first.
displayManagerListDisplays Source
:: DisplayManagerClass self | |
=> self | |
-> IO [Display] | returns a newly allocated list of |
List all currently open displays.
Attributes
displayManagerDefaultDisplay :: DisplayManagerClass self => Attr self Display Source
The default display.
Signals
displayManagerOpened :: DisplayManagerClass self => Signal self (Display -> IO ()) Source
The displayManagerOpened
signal is emitted when a display is opened.