Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- Overloaded methods
- beep
- close
- deviceIsGrabbed
- flush
- getAppLaunchContext
- getClipboard
- getDefault
- getDefaultGroup
- getDefaultSeat
- getEvent
- getKeymap
- getMonitor
- getMonitorAtPoint
- getMonitorAtSurface
- getNMonitors
- getName
- getPrimaryClipboard
- getPrimaryMonitor
- getSetting
- getStartupNotificationId
- hasPending
- isClosed
- isComposited
- isRgba
- listSeats
- notifyStartupComplete
- open
- peekEvent
- putEvent
- supportsInputShapes
- supportsShapes
- sync
- Properties
- Signals
GdkDisplay objects are the GDK representation of a workstation.
Their purpose are two-fold:
- To manage and provide information about input devices (pointers, keyboards, etc)
- To manage and provide information about output devices (monitors, projectors, etc)
Most of the input device handling has been factored out into separate Seat
objects. Every display has a one or more seats, which can be accessed with
displayGetDefaultSeat
and displayListSeats
.
Output devices are represented by Monitor
objects, which can be accessed
with displayGetMonitor
and similar APIs.
Synopsis
- newtype Display = Display (ManagedPtr Display)
- class (GObject o, IsDescendantOf Display o) => IsDisplay o
- toDisplay :: (MonadIO m, IsDisplay o) => o -> m Display
- noDisplay :: Maybe Display
- displayBeep :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m ()
- displayClose :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m ()
- displayDeviceIsGrabbed :: (HasCallStack, MonadIO m, IsDisplay a, IsDevice b) => a -> b -> m Bool
- displayFlush :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m ()
- displayGetAppLaunchContext :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m AppLaunchContext
- displayGetClipboard :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Clipboard
- displayGetDefault :: (HasCallStack, MonadIO m) => m (Maybe Display)
- displayGetDefaultGroup :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Surface
- displayGetDefaultSeat :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Seat
- displayGetEvent :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m (Maybe Event)
- displayGetKeymap :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Keymap
- displayGetMonitor :: (HasCallStack, MonadIO m, IsDisplay a) => a -> Int32 -> m (Maybe Monitor)
- displayGetMonitorAtPoint :: (HasCallStack, MonadIO m, IsDisplay a) => a -> Int32 -> Int32 -> m Monitor
- displayGetMonitorAtSurface :: (HasCallStack, MonadIO m, IsDisplay a, IsSurface b) => a -> b -> m Monitor
- displayGetNMonitors :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Int32
- displayGetName :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Text
- displayGetPrimaryClipboard :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Clipboard
- displayGetPrimaryMonitor :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Monitor
- displayGetSetting :: (HasCallStack, MonadIO m, IsDisplay a) => a -> Text -> GValue -> m Bool
- displayGetStartupNotificationId :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Text
- displayHasPending :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Bool
- displayIsClosed :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Bool
- displayIsComposited :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Bool
- displayIsRgba :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Bool
- displayListSeats :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m [Seat]
- displayNotifyStartupComplete :: (HasCallStack, MonadIO m, IsDisplay a) => a -> Text -> m ()
- displayOpen :: (HasCallStack, MonadIO m) => Text -> m (Maybe Display)
- displayPeekEvent :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m (Maybe Event)
- displayPutEvent :: (HasCallStack, MonadIO m, IsDisplay a, IsEvent b) => a -> b -> m ()
- displaySupportsInputShapes :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Bool
- displaySupportsShapes :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Bool
- displaySync :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m ()
- getDisplayComposited :: (MonadIO m, IsDisplay o) => o -> m Bool
- getDisplayRgba :: (MonadIO m, IsDisplay o) => o -> m Bool
- type C_DisplayClosedCallback = Ptr () -> CInt -> Ptr () -> IO ()
- type DisplayClosedCallback = Bool -> IO ()
- afterDisplayClosed :: (IsDisplay a, MonadIO m) => a -> DisplayClosedCallback -> m SignalHandlerId
- genClosure_DisplayClosed :: MonadIO m => DisplayClosedCallback -> m (GClosure C_DisplayClosedCallback)
- mk_DisplayClosedCallback :: C_DisplayClosedCallback -> IO (FunPtr C_DisplayClosedCallback)
- noDisplayClosedCallback :: Maybe DisplayClosedCallback
- onDisplayClosed :: (IsDisplay a, MonadIO m) => a -> DisplayClosedCallback -> m SignalHandlerId
- wrap_DisplayClosedCallback :: DisplayClosedCallback -> C_DisplayClosedCallback
- type C_DisplayMonitorAddedCallback = Ptr () -> Ptr Monitor -> Ptr () -> IO ()
- type DisplayMonitorAddedCallback = Monitor -> IO ()
- afterDisplayMonitorAdded :: (IsDisplay a, MonadIO m) => a -> DisplayMonitorAddedCallback -> m SignalHandlerId
- genClosure_DisplayMonitorAdded :: MonadIO m => DisplayMonitorAddedCallback -> m (GClosure C_DisplayMonitorAddedCallback)
- mk_DisplayMonitorAddedCallback :: C_DisplayMonitorAddedCallback -> IO (FunPtr C_DisplayMonitorAddedCallback)
- noDisplayMonitorAddedCallback :: Maybe DisplayMonitorAddedCallback
- onDisplayMonitorAdded :: (IsDisplay a, MonadIO m) => a -> DisplayMonitorAddedCallback -> m SignalHandlerId
- wrap_DisplayMonitorAddedCallback :: DisplayMonitorAddedCallback -> C_DisplayMonitorAddedCallback
- type C_DisplayMonitorRemovedCallback = Ptr () -> Ptr Monitor -> Ptr () -> IO ()
- type DisplayMonitorRemovedCallback = Monitor -> IO ()
- afterDisplayMonitorRemoved :: (IsDisplay a, MonadIO m) => a -> DisplayMonitorRemovedCallback -> m SignalHandlerId
- genClosure_DisplayMonitorRemoved :: MonadIO m => DisplayMonitorRemovedCallback -> m (GClosure C_DisplayMonitorRemovedCallback)
- mk_DisplayMonitorRemovedCallback :: C_DisplayMonitorRemovedCallback -> IO (FunPtr C_DisplayMonitorRemovedCallback)
- noDisplayMonitorRemovedCallback :: Maybe DisplayMonitorRemovedCallback
- onDisplayMonitorRemoved :: (IsDisplay a, MonadIO m) => a -> DisplayMonitorRemovedCallback -> m SignalHandlerId
- wrap_DisplayMonitorRemovedCallback :: DisplayMonitorRemovedCallback -> C_DisplayMonitorRemovedCallback
- type C_DisplayOpenedCallback = Ptr () -> Ptr () -> IO ()
- type DisplayOpenedCallback = IO ()
- afterDisplayOpened :: (IsDisplay a, MonadIO m) => a -> DisplayOpenedCallback -> m SignalHandlerId
- genClosure_DisplayOpened :: MonadIO m => DisplayOpenedCallback -> m (GClosure C_DisplayOpenedCallback)
- mk_DisplayOpenedCallback :: C_DisplayOpenedCallback -> IO (FunPtr C_DisplayOpenedCallback)
- noDisplayOpenedCallback :: Maybe DisplayOpenedCallback
- onDisplayOpened :: (IsDisplay a, MonadIO m) => a -> DisplayOpenedCallback -> m SignalHandlerId
- wrap_DisplayOpenedCallback :: DisplayOpenedCallback -> C_DisplayOpenedCallback
- type C_DisplaySeatAddedCallback = Ptr () -> Ptr Seat -> Ptr () -> IO ()
- type DisplaySeatAddedCallback = Seat -> IO ()
- afterDisplaySeatAdded :: (IsDisplay a, MonadIO m) => a -> DisplaySeatAddedCallback -> m SignalHandlerId
- genClosure_DisplaySeatAdded :: MonadIO m => DisplaySeatAddedCallback -> m (GClosure C_DisplaySeatAddedCallback)
- mk_DisplaySeatAddedCallback :: C_DisplaySeatAddedCallback -> IO (FunPtr C_DisplaySeatAddedCallback)
- noDisplaySeatAddedCallback :: Maybe DisplaySeatAddedCallback
- onDisplaySeatAdded :: (IsDisplay a, MonadIO m) => a -> DisplaySeatAddedCallback -> m SignalHandlerId
- wrap_DisplaySeatAddedCallback :: DisplaySeatAddedCallback -> C_DisplaySeatAddedCallback
- type C_DisplaySeatRemovedCallback = Ptr () -> Ptr Seat -> Ptr () -> IO ()
- type DisplaySeatRemovedCallback = Seat -> IO ()
- afterDisplaySeatRemoved :: (IsDisplay a, MonadIO m) => a -> DisplaySeatRemovedCallback -> m SignalHandlerId
- genClosure_DisplaySeatRemoved :: MonadIO m => DisplaySeatRemovedCallback -> m (GClosure C_DisplaySeatRemovedCallback)
- mk_DisplaySeatRemovedCallback :: C_DisplaySeatRemovedCallback -> IO (FunPtr C_DisplaySeatRemovedCallback)
- noDisplaySeatRemovedCallback :: Maybe DisplaySeatRemovedCallback
- onDisplaySeatRemoved :: (IsDisplay a, MonadIO m) => a -> DisplaySeatRemovedCallback -> m SignalHandlerId
- wrap_DisplaySeatRemovedCallback :: DisplaySeatRemovedCallback -> C_DisplaySeatRemovedCallback
- type C_DisplaySettingChangedCallback = Ptr () -> CString -> Ptr () -> IO ()
- type DisplaySettingChangedCallback = Text -> IO ()
- afterDisplaySettingChanged :: (IsDisplay a, MonadIO m) => a -> DisplaySettingChangedCallback -> m SignalHandlerId
- genClosure_DisplaySettingChanged :: MonadIO m => DisplaySettingChangedCallback -> m (GClosure C_DisplaySettingChangedCallback)
- mk_DisplaySettingChangedCallback :: C_DisplaySettingChangedCallback -> IO (FunPtr C_DisplaySettingChangedCallback)
- noDisplaySettingChangedCallback :: Maybe DisplaySettingChangedCallback
- onDisplaySettingChanged :: (IsDisplay a, MonadIO m) => a -> DisplaySettingChangedCallback -> m SignalHandlerId
- wrap_DisplaySettingChangedCallback :: DisplaySettingChangedCallback -> C_DisplaySettingChangedCallback
Exported types
Memory-managed wrapper type.
Instances
Eq Display Source # | |
GObject Display Source # | |
Defined in GI.Gdk.Objects.Display gobjectType :: IO GType # | |
IsGValue Display Source # | Convert |
HasParentTypes Display Source # | |
Defined in GI.Gdk.Objects.Display | |
type ParentTypes Display Source # | |
Defined in GI.Gdk.Objects.Display |
class (GObject o, IsDescendantOf Display o) => IsDisplay o Source #
Instances
(GObject o, IsDescendantOf Display o) => IsDisplay o Source # | |
Defined in GI.Gdk.Objects.Display |
Methods
Overloaded methods
beep
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m () |
Emits a short beep on display
close
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m () |
Closes the connection to the windowing system for the given display, and cleans up associated resources.
deviceIsGrabbed
displayDeviceIsGrabbed Source #
:: (HasCallStack, MonadIO m, IsDisplay a, IsDevice b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: |
Returns True
if there is an ongoing grab on device
for display
.
flush
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m () |
Flushes any requests queued for the windowing system; this happens automatically when the main loop blocks waiting for new events, but if your application is drawing without returning control to the main loop, you may need to call this function explicitly. A common case where this function needs to be called is when an application is executing drawing commands from a thread other than the thread where the main loop is running.
This is most useful for X11. On windowing systems where requests are handled synchronously, this function will do nothing.
getAppLaunchContext
displayGetAppLaunchContext Source #
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m AppLaunchContext | Returns: a new |
Returns a AppLaunchContext
suitable for launching
applications on the given display.
getClipboard
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Clipboard | Returns: the display's clipboard |
Gets the clipboard used for copy/paste operations.
getDefault
:: (HasCallStack, MonadIO m) | |
=> m (Maybe Display) | Returns: a |
Gets the default Display
. This is a convenience
function for:
gdk_display_manager_get_default_display (gdk_display_manager_get ())
.
getDefaultGroup
displayGetDefaultGroup Source #
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Surface | Returns: The default group leader surface
for |
Returns the default group leader surface for all toplevel surfaces
on display
. This surface is implicitly created by GDK.
See gdk_surface_set_group()
.
getDefaultSeat
displayGetDefaultSeat Source #
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Seat | Returns: the default seat. |
Returns the default Seat
for this display.
getEvent
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m (Maybe Event) | Returns: the next |
Gets the next GdkEvent
to be processed for display
, fetching events from the
windowing system if necessary.
getKeymap
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Keymap | Returns: the |
Returns the Keymap
attached to display
.
getMonitor
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> Int32 |
|
-> m (Maybe Monitor) | Returns: the |
Gets a monitor associated with this display.
getMonitorAtPoint
displayGetMonitorAtPoint Source #
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> m Monitor | Returns: the monitor containing the point |
Gets the monitor in which the point (x
, y
) is located,
or a nearby monitor if the point is not in any monitor.
getMonitorAtSurface
displayGetMonitorAtSurface Source #
:: (HasCallStack, MonadIO m, IsDisplay a, IsSurface b) | |
=> a |
|
-> b |
|
-> m Monitor | Returns: the monitor with the largest overlap with |
Gets the monitor in which the largest area of surface
resides, or a monitor close to surface
if it is outside
of all monitors.
getNMonitors
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Int32 | Returns: the number of monitors |
Gets the number of monitors that belong to display
.
The returned number is valid until the next emission of the monitorAdded or monitorRemoved signal.
getName
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Text | Returns: a string representing the display name. This string is owned by GDK and should not be modified or freed. |
Gets the name of the display.
getPrimaryClipboard
displayGetPrimaryClipboard Source #
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Clipboard | Returns: the primary clipboard |
Gets the clipboard used for the primary selection. On backends where the primary clipboard is not supported natively, GDK emulates this clipboard locally.
getPrimaryMonitor
displayGetPrimaryMonitor Source #
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Monitor | Returns: the primary monitor, or any monitor if no primary monitor is configured by the user |
Gets the primary monitor for the display.
The primary monitor is considered the monitor where the “main desktop” lives. While normal application surfaces typically allow the window manager to place the surfaces, specialized desktop applications such as panels should place themselves on the primary monitor.
If no monitor is the designated primary monitor, any monitor
(usually the first) may be returned. To make sure there is a dedicated
primary monitor, use monitorIsPrimary
on the returned monitor.
getSetting
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> Text |
|
-> GValue |
|
-> m Bool | Returns: |
Retrieves a desktop-wide setting such as double-click time
for the display
.
getStartupNotificationId
displayGetStartupNotificationId Source #
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Text | Returns: the startup notification ID for |
Gets the startup notification ID for a Wayland display, or Nothing
if no ID has been defined.
hasPending
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Bool | Returns: |
Returns whether the display has events that are waiting to be processed.
isClosed
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Bool | Returns: |
Finds out if the display has been closed.
isComposited
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Bool | Returns: Whether surfaces with RGBA visuals can reasonably be expected to have their alpha channels drawn correctly on the screen. |
Returns whether surfaces can reasonably be expected to have
their alpha channel drawn correctly on the screen. Check
displayIsRgba
for wether the display supports an
alpha channel.
On X11 this function returns whether a compositing manager is
compositing on display
.
On modern displays, this value is always True
.
isRgba
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Bool | Returns: |
Returns wether surfaces on this display
are created with an
alpha channel.
Even if a True
is returned, it is possible that the
surface’s alpha channel won’t be honored when displaying the
surface on the screen: in particular, for X an appropriate
windowing manager and compositing manager must be running to
provide appropriate display. Use displayIsComposited
to check if that is the case.
For setting an overall opacity for a top-level surface, see
surfaceSetOpacity
.
On modern displays, this value is always True
.
listSeats
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m [Seat] | Returns: the
list of seats known to the |
Returns the list of seats known to display
.
notifyStartupComplete
displayNotifyStartupComplete Source #
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> Text |
|
-> m () |
Indicates to the GUI environment that the application has finished loading, using a given identifier.
GTK+ will call this function automatically for GtkWindow
with custom startup-notification identifier unless
gtk_window_set_auto_startup_notification()
is called to
disable that feature.
open
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m (Maybe Display) | Returns: a |
Opens a display.
peekEvent
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m (Maybe Event) | Returns: the first |
Gets a copy of the first GdkEvent
in the display
’s event queue, without
removing the event from the queue. (Note that this function will
not get more events from the windowing system. It only checks the events
that have already been moved to the GDK event queue.)
putEvent
:: (HasCallStack, MonadIO m, IsDisplay a, IsEvent b) | |
=> a |
|
-> b |
|
-> m () |
Appends a copy of the given event onto the front of the event
queue for display
.
supportsInputShapes
displaySupportsInputShapes Source #
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Bool | Returns: |
Returns True
if gdk_surface_input_shape_combine_mask()
can
be used to modify the input shape of surfaces on display
.
supportsShapes
displaySupportsShapes Source #
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Bool | Returns: |
Returns True
if gdk_surface_shape_combine_mask()
can
be used to create shaped windows on display
.
sync
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m () |
Flushes any requests queued for the windowing system and waits until all
requests have been handled. This is often used for making sure that the
display is synchronized with the current state of the program. Calling
displaySync
before gdk_error_trap_pop()
makes sure that any errors
generated from earlier requests are handled before the error trap is
removed.
This is most useful for X11. On windowing systems where requests are handled synchronously, this function will do nothing.
Properties
composited
True
if the display properly composits the alpha channel.
See displayIsComposited
for details.
getDisplayComposited :: (MonadIO m, IsDisplay o) => o -> m Bool Source #
Get the value of the “composited
” property.
When overloading is enabled, this is equivalent to
get
display #composited
rgba
True
if the display supports an alpha channel. See displayIsRgba
for details.
getDisplayRgba :: (MonadIO m, IsDisplay o) => o -> m Bool Source #
Get the value of the “rgba
” property.
When overloading is enabled, this is equivalent to
get
display #rgba
Signals
closed
type C_DisplayClosedCallback = Ptr () -> CInt -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type DisplayClosedCallback Source #
The closed signal is emitted when the connection to the windowing
system for display
is closed.
afterDisplayClosed :: (IsDisplay a, MonadIO m) => a -> DisplayClosedCallback -> m SignalHandlerId Source #
Connect a signal handler for the closed signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
display #closed callback
genClosure_DisplayClosed :: MonadIO m => DisplayClosedCallback -> m (GClosure C_DisplayClosedCallback) Source #
Wrap the callback into a GClosure
.
mk_DisplayClosedCallback :: C_DisplayClosedCallback -> IO (FunPtr C_DisplayClosedCallback) Source #
Generate a function pointer callable from C code, from a C_DisplayClosedCallback
.
noDisplayClosedCallback :: Maybe DisplayClosedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
DisplayClosedCallback
onDisplayClosed :: (IsDisplay a, MonadIO m) => a -> DisplayClosedCallback -> m SignalHandlerId Source #
Connect a signal handler for the closed signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
display #closed callback
wrap_DisplayClosedCallback :: DisplayClosedCallback -> C_DisplayClosedCallback Source #
Wrap a DisplayClosedCallback
into a C_DisplayClosedCallback
.
monitorAdded
type C_DisplayMonitorAddedCallback = Ptr () -> Ptr Monitor -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type DisplayMonitorAddedCallback Source #
The monitorAdded signal is emitted whenever a monitor is added.
afterDisplayMonitorAdded :: (IsDisplay a, MonadIO m) => a -> DisplayMonitorAddedCallback -> m SignalHandlerId Source #
Connect a signal handler for the monitorAdded signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
display #monitorAdded callback
genClosure_DisplayMonitorAdded :: MonadIO m => DisplayMonitorAddedCallback -> m (GClosure C_DisplayMonitorAddedCallback) Source #
Wrap the callback into a GClosure
.
mk_DisplayMonitorAddedCallback :: C_DisplayMonitorAddedCallback -> IO (FunPtr C_DisplayMonitorAddedCallback) Source #
Generate a function pointer callable from C code, from a C_DisplayMonitorAddedCallback
.
noDisplayMonitorAddedCallback :: Maybe DisplayMonitorAddedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
DisplayMonitorAddedCallback
onDisplayMonitorAdded :: (IsDisplay a, MonadIO m) => a -> DisplayMonitorAddedCallback -> m SignalHandlerId Source #
Connect a signal handler for the monitorAdded signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
display #monitorAdded callback
wrap_DisplayMonitorAddedCallback :: DisplayMonitorAddedCallback -> C_DisplayMonitorAddedCallback Source #
Wrap a DisplayMonitorAddedCallback
into a C_DisplayMonitorAddedCallback
.
monitorRemoved
type C_DisplayMonitorRemovedCallback = Ptr () -> Ptr Monitor -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type DisplayMonitorRemovedCallback Source #
The monitorRemoved signal is emitted whenever a monitor is removed.
afterDisplayMonitorRemoved :: (IsDisplay a, MonadIO m) => a -> DisplayMonitorRemovedCallback -> m SignalHandlerId Source #
Connect a signal handler for the monitorRemoved signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
display #monitorRemoved callback
genClosure_DisplayMonitorRemoved :: MonadIO m => DisplayMonitorRemovedCallback -> m (GClosure C_DisplayMonitorRemovedCallback) Source #
Wrap the callback into a GClosure
.
mk_DisplayMonitorRemovedCallback :: C_DisplayMonitorRemovedCallback -> IO (FunPtr C_DisplayMonitorRemovedCallback) Source #
Generate a function pointer callable from C code, from a C_DisplayMonitorRemovedCallback
.
noDisplayMonitorRemovedCallback :: Maybe DisplayMonitorRemovedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
DisplayMonitorRemovedCallback
onDisplayMonitorRemoved :: (IsDisplay a, MonadIO m) => a -> DisplayMonitorRemovedCallback -> m SignalHandlerId Source #
Connect a signal handler for the monitorRemoved signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
display #monitorRemoved callback
wrap_DisplayMonitorRemovedCallback :: DisplayMonitorRemovedCallback -> C_DisplayMonitorRemovedCallback Source #
Wrap a DisplayMonitorRemovedCallback
into a C_DisplayMonitorRemovedCallback
.
opened
type C_DisplayOpenedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type DisplayOpenedCallback = IO () Source #
The opened signal is emitted when the connection to the windowing
system for display
is opened.
afterDisplayOpened :: (IsDisplay a, MonadIO m) => a -> DisplayOpenedCallback -> m SignalHandlerId Source #
Connect a signal handler for the opened signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
display #opened callback
genClosure_DisplayOpened :: MonadIO m => DisplayOpenedCallback -> m (GClosure C_DisplayOpenedCallback) Source #
Wrap the callback into a GClosure
.
mk_DisplayOpenedCallback :: C_DisplayOpenedCallback -> IO (FunPtr C_DisplayOpenedCallback) Source #
Generate a function pointer callable from C code, from a C_DisplayOpenedCallback
.
noDisplayOpenedCallback :: Maybe DisplayOpenedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
DisplayOpenedCallback
onDisplayOpened :: (IsDisplay a, MonadIO m) => a -> DisplayOpenedCallback -> m SignalHandlerId Source #
Connect a signal handler for the opened signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
display #opened callback
wrap_DisplayOpenedCallback :: DisplayOpenedCallback -> C_DisplayOpenedCallback Source #
Wrap a DisplayOpenedCallback
into a C_DisplayOpenedCallback
.
seatAdded
type C_DisplaySeatAddedCallback = Ptr () -> Ptr Seat -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type DisplaySeatAddedCallback Source #
The seatAdded signal is emitted whenever a new seat is made known to the windowing system.
afterDisplaySeatAdded :: (IsDisplay a, MonadIO m) => a -> DisplaySeatAddedCallback -> m SignalHandlerId Source #
Connect a signal handler for the seatAdded signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
display #seatAdded callback
genClosure_DisplaySeatAdded :: MonadIO m => DisplaySeatAddedCallback -> m (GClosure C_DisplaySeatAddedCallback) Source #
Wrap the callback into a GClosure
.
mk_DisplaySeatAddedCallback :: C_DisplaySeatAddedCallback -> IO (FunPtr C_DisplaySeatAddedCallback) Source #
Generate a function pointer callable from C code, from a C_DisplaySeatAddedCallback
.
noDisplaySeatAddedCallback :: Maybe DisplaySeatAddedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
DisplaySeatAddedCallback
onDisplaySeatAdded :: (IsDisplay a, MonadIO m) => a -> DisplaySeatAddedCallback -> m SignalHandlerId Source #
Connect a signal handler for the seatAdded signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
display #seatAdded callback
wrap_DisplaySeatAddedCallback :: DisplaySeatAddedCallback -> C_DisplaySeatAddedCallback Source #
Wrap a DisplaySeatAddedCallback
into a C_DisplaySeatAddedCallback
.
seatRemoved
type C_DisplaySeatRemovedCallback = Ptr () -> Ptr Seat -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type DisplaySeatRemovedCallback Source #
The seatRemoved signal is emitted whenever a seat is removed by the windowing system.
afterDisplaySeatRemoved :: (IsDisplay a, MonadIO m) => a -> DisplaySeatRemovedCallback -> m SignalHandlerId Source #
Connect a signal handler for the seatRemoved signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
display #seatRemoved callback
genClosure_DisplaySeatRemoved :: MonadIO m => DisplaySeatRemovedCallback -> m (GClosure C_DisplaySeatRemovedCallback) Source #
Wrap the callback into a GClosure
.
mk_DisplaySeatRemovedCallback :: C_DisplaySeatRemovedCallback -> IO (FunPtr C_DisplaySeatRemovedCallback) Source #
Generate a function pointer callable from C code, from a C_DisplaySeatRemovedCallback
.
noDisplaySeatRemovedCallback :: Maybe DisplaySeatRemovedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
DisplaySeatRemovedCallback
onDisplaySeatRemoved :: (IsDisplay a, MonadIO m) => a -> DisplaySeatRemovedCallback -> m SignalHandlerId Source #
Connect a signal handler for the seatRemoved signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
display #seatRemoved callback
wrap_DisplaySeatRemovedCallback :: DisplaySeatRemovedCallback -> C_DisplaySeatRemovedCallback Source #
Wrap a DisplaySeatRemovedCallback
into a C_DisplaySeatRemovedCallback
.
settingChanged
type C_DisplaySettingChangedCallback = Ptr () -> CString -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type DisplaySettingChangedCallback Source #
The settingChanged signal is emitted whenever a setting changes its value.
afterDisplaySettingChanged :: (IsDisplay a, MonadIO m) => a -> DisplaySettingChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the settingChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
display #settingChanged callback
genClosure_DisplaySettingChanged :: MonadIO m => DisplaySettingChangedCallback -> m (GClosure C_DisplaySettingChangedCallback) Source #
Wrap the callback into a GClosure
.
mk_DisplaySettingChangedCallback :: C_DisplaySettingChangedCallback -> IO (FunPtr C_DisplaySettingChangedCallback) Source #
Generate a function pointer callable from C code, from a C_DisplaySettingChangedCallback
.
noDisplaySettingChangedCallback :: Maybe DisplaySettingChangedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
DisplaySettingChangedCallback
onDisplaySettingChanged :: (IsDisplay a, MonadIO m) => a -> DisplaySettingChangedCallback -> m SignalHandlerId Source #
Connect a signal handler for the settingChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
display #settingChanged callback