Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- Exported types
- Methods
- beep
- close
- deviceIsGrabbed
- flush
- getAppLaunchContext
- getClipboard
- getDefault
- getDefaultSeat
- getMonitorAtSurface
- getMonitors
- getName
- getPrimaryClipboard
- getSetting
- getStartupNotificationId
- isClosed
- isComposited
- isRgba
- listSeats
- mapKeycode
- mapKeyval
- notifyStartupComplete
- open
- putEvent
- supportsInputShapes
- sync
- translateKey
- 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 displayGetMonitorAtSurface
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
- 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)
- displayGetDefaultSeat :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m (Maybe Seat)
- displayGetMonitorAtSurface :: (HasCallStack, MonadIO m, IsDisplay a, IsSurface b) => a -> b -> m Monitor
- displayGetMonitors :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m ListModel
- displayGetName :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Text
- displayGetPrimaryClipboard :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Clipboard
- displayGetSetting :: (HasCallStack, MonadIO m, IsDisplay a) => a -> Text -> GValue -> m Bool
- displayGetStartupNotificationId :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m (Maybe Text)
- 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]
- displayMapKeycode :: (HasCallStack, MonadIO m, IsDisplay a) => a -> Word32 -> m (Bool, [KeymapKey], [Word32])
- displayMapKeyval :: (HasCallStack, MonadIO m, IsDisplay a) => a -> Word32 -> m (Bool, [KeymapKey])
- displayNotifyStartupComplete :: (HasCallStack, MonadIO m, IsDisplay a) => a -> Text -> m ()
- displayOpen :: (HasCallStack, MonadIO m) => Text -> m (Maybe Display)
- displayPutEvent :: (HasCallStack, MonadIO m, IsDisplay a, IsEvent b) => a -> b -> m ()
- displaySupportsInputShapes :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m Bool
- displaySync :: (HasCallStack, MonadIO m, IsDisplay a) => a -> m ()
- displayTranslateKey :: (HasCallStack, MonadIO m, IsDisplay a) => a -> Word32 -> [ModifierType] -> Int32 -> m (Bool, Word32, Int32, Int32, [ModifierType])
- getDisplayComposited :: (MonadIO m, IsDisplay o) => o -> m Bool
- getDisplayInputShapes :: (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_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 | |
ManagedPtrNewtype Display Source # | |
Defined in GI.Gdk.Objects.Display toManagedPtr :: Display -> ManagedPtr Display | |
TypedObject Display Source # | |
Defined in GI.Gdk.Objects.Display | |
HasParentTypes Display Source # | |
Defined in GI.Gdk.Objects.Display | |
IsGValue (Maybe Display) Source # | Convert |
Defined in GI.Gdk.Objects.Display gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Display -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe 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
Click to display all available methods, including inherited ones
Methods
beep, bindProperty, bindPropertyFull, close, deviceIsGrabbed, flush, forceFloating, freezeNotify, getv, isClosed, isComposited, isFloating, isRgba, listSeats, mapKeycode, mapKeyval, notify, notifyByPspec, notifyStartupComplete, putEvent, ref, refSink, runDispose, stealData, stealQdata, supportsInputShapes, sync, thawNotify, translateKey, unref, watchClosure.
Getters
getAppLaunchContext, getClipboard, getData, getDefaultSeat, getMonitorAtSurface, getMonitors, getName, getPrimaryClipboard, getProperty, getQdata, getSetting, getStartupNotificationId.
Setters
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 ())
.
getDefaultSeat
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.
getMonitors
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m ListModel |
Gets the list of monitors associated with this display.
Subsequent calls to this function will always return the same list for the same display.
You can listen to the GListModel[itemsChanged](#g:signal:itemsChanged) signal on this list to monitor changes to the monitor of this display.
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.
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 (Maybe Text) | Returns: the startup notification ID for |
Gets the startup notification ID for a Wayland display, or Nothing
if no ID has been defined.
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 whether 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 whether 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.
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
.
mapKeycode
mapKeyval
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> Word32 |
|
-> m (Bool, [KeymapKey]) | Returns: |
Obtains a list of keycode/group/level combinations that will
generate keyval
. Groups and levels are two kinds of keyboard mode;
in general, the level determines whether the top or bottom symbol
on a key is used, and the group determines whether the left or
right symbol is used.
On US keyboards, the shift key changes the keyboard level, and there are no groups. A group switch key might convert a keyboard between Hebrew to English modes, for example.
GdkEventKey
contains a group
field that indicates the active
keyboard group. The level is computed from the modifier mask.
The returned array should be freed with free
.
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.
putEvent
:: (HasCallStack, MonadIO m, IsDisplay a, IsEvent b) | |
=> a |
|
-> b |
|
-> m () |
Appends the given event onto the front of the event
queue for display
.
This function is only useful in very special situations and should not be used by applications.
supportsInputShapes
displaySupportsInputShapes Source #
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> m Bool | Returns: |
Returns True
if surfaceSetInputRegion
can
be used to modify the input shape of surfaces on display
.
On modern displays, this value is always True
.
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_x11_display_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.
translateKey
:: (HasCallStack, MonadIO m, IsDisplay a) | |
=> a |
|
-> Word32 |
|
-> [ModifierType] |
|
-> Int32 |
|
-> m (Bool, Word32, Int32, Int32, [ModifierType]) | Returns: |
Translates the contents of a GdkEventKey
(ie keycode
, state
, and group
)
into a keyval, effective group, and level. Modifiers that affected the
translation and are thus unavailable for application use are returned in
consumedModifiers
.
The effectiveGroup
is the group that was actually used for the translation;
some keys such as Enter are not affected by the active keyboard group.
The level
is derived from state
.
consumedModifiers
gives modifiers that should be masked outfrom state
when comparing this key press to a keyboard shortcut. For instance, on a US
keyboard, the plus
symbol is shifted, so when comparing a key press to a
<Control>plus
accelerator <Shift>
should be masked out.
This function should rarely be needed, since GdkEventKey
already contains
the translated keyval. It is exported for the benefit of virtualized test
environments.
Properties
composited
True
if the display properly composites 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
inputShapes
True
if the display supports input shapes. See
displaySupportsInputShapes
for details.
getDisplayInputShapes :: (MonadIO m, IsDisplay o) => o -> m Bool Source #
Get the value of the “input-shapes
” property.
When overloading is enabled, this is equivalent to
get
display #inputShapes
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
.
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