Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Generated when a pointer or keyboard grab is broken. On X11, this happens
when the grab window becomes unviewable (i.e. it or one of its ancestors
is unmapped), or if the same application grabs the pointer or keyboard
again. Note that implicit grabs (which are initiated by button presses)
can also cause EventGrabBroken
events.
Since: 2.8
Synopsis
- newtype EventGrabBroken = EventGrabBroken (ManagedPtr EventGrabBroken)
- newZeroEventGrabBroken :: MonadIO m => m EventGrabBroken
- noEventGrabBroken :: Maybe EventGrabBroken
- clearEventGrabBrokenGrabWindow :: MonadIO m => EventGrabBroken -> m ()
- getEventGrabBrokenGrabWindow :: MonadIO m => EventGrabBroken -> m (Maybe Window)
- setEventGrabBrokenGrabWindow :: MonadIO m => EventGrabBroken -> Ptr Window -> m ()
- getEventGrabBrokenImplicit :: MonadIO m => EventGrabBroken -> m Bool
- setEventGrabBrokenImplicit :: MonadIO m => EventGrabBroken -> Bool -> m ()
- getEventGrabBrokenKeyboard :: MonadIO m => EventGrabBroken -> m Bool
- setEventGrabBrokenKeyboard :: MonadIO m => EventGrabBroken -> Bool -> m ()
- getEventGrabBrokenSendEvent :: MonadIO m => EventGrabBroken -> m Int8
- setEventGrabBrokenSendEvent :: MonadIO m => EventGrabBroken -> Int8 -> m ()
- getEventGrabBrokenType :: MonadIO m => EventGrabBroken -> m EventType
- setEventGrabBrokenType :: MonadIO m => EventGrabBroken -> EventType -> m ()
- clearEventGrabBrokenWindow :: MonadIO m => EventGrabBroken -> m ()
- getEventGrabBrokenWindow :: MonadIO m => EventGrabBroken -> m (Maybe Window)
- setEventGrabBrokenWindow :: MonadIO m => EventGrabBroken -> Ptr Window -> m ()
Exported types
newtype EventGrabBroken Source #
Memory-managed wrapper type.
Instances
WrappedPtr EventGrabBroken Source # | |
tag ~ AttrSet => Constructible EventGrabBroken tag Source # | |
Defined in GI.Gdk.Structs.EventGrabBroken new :: MonadIO m => (ManagedPtr EventGrabBroken -> EventGrabBroken) -> [AttrOp EventGrabBroken tag] -> m EventGrabBroken # |
newZeroEventGrabBroken :: MonadIO m => m EventGrabBroken Source #
Construct a EventGrabBroken
struct initialized to zero.
noEventGrabBroken :: Maybe EventGrabBroken Source #
A convenience alias for Nothing
:: Maybe
EventGrabBroken
.
Properties
grabWindow
If this event is caused by another grab in the same
application, grabWindow
contains the new grab window. Otherwise
grabWindow
is Nothing
.
clearEventGrabBrokenGrabWindow :: MonadIO m => EventGrabBroken -> m () Source #
Set the value of the “grab_window
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#grabWindow
getEventGrabBrokenGrabWindow :: MonadIO m => EventGrabBroken -> m (Maybe Window) Source #
Get the value of the “grab_window
” field.
When overloading is enabled, this is equivalent to
get
eventGrabBroken #grabWindow
setEventGrabBrokenGrabWindow :: MonadIO m => EventGrabBroken -> Ptr Window -> m () Source #
Set the value of the “grab_window
” field.
When overloading is enabled, this is equivalent to
set
eventGrabBroken [ #grabWindow:=
value ]
implicit
True
if the broken grab was implicit
getEventGrabBrokenImplicit :: MonadIO m => EventGrabBroken -> m Bool Source #
Get the value of the “implicit
” field.
When overloading is enabled, this is equivalent to
get
eventGrabBroken #implicit
setEventGrabBrokenImplicit :: MonadIO m => EventGrabBroken -> Bool -> m () Source #
Set the value of the “implicit
” field.
When overloading is enabled, this is equivalent to
set
eventGrabBroken [ #implicit:=
value ]
keyboard
getEventGrabBrokenKeyboard :: MonadIO m => EventGrabBroken -> m Bool Source #
Get the value of the “keyboard
” field.
When overloading is enabled, this is equivalent to
get
eventGrabBroken #keyboard
setEventGrabBrokenKeyboard :: MonadIO m => EventGrabBroken -> Bool -> m () Source #
Set the value of the “keyboard
” field.
When overloading is enabled, this is equivalent to
set
eventGrabBroken [ #keyboard:=
value ]
sendEvent
True
if the event was sent explicitly.
getEventGrabBrokenSendEvent :: MonadIO m => EventGrabBroken -> m Int8 Source #
Get the value of the “send_event
” field.
When overloading is enabled, this is equivalent to
get
eventGrabBroken #sendEvent
setEventGrabBrokenSendEvent :: MonadIO m => EventGrabBroken -> Int8 -> m () Source #
Set the value of the “send_event
” field.
When overloading is enabled, this is equivalent to
set
eventGrabBroken [ #sendEvent:=
value ]
type
the type of the event (EventTypeGrabBroken
)
getEventGrabBrokenType :: MonadIO m => EventGrabBroken -> m EventType Source #
Get the value of the “type
” field.
When overloading is enabled, this is equivalent to
get
eventGrabBroken #type
setEventGrabBrokenType :: MonadIO m => EventGrabBroken -> EventType -> m () Source #
Set the value of the “type
” field.
When overloading is enabled, this is equivalent to
set
eventGrabBroken [ #type:=
value ]
window
the window which received the event, i.e. the window that previously owned the grab
clearEventGrabBrokenWindow :: MonadIO m => EventGrabBroken -> m () Source #
Set the value of the “window
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#window
getEventGrabBrokenWindow :: MonadIO m => EventGrabBroken -> m (Maybe Window) Source #
Get the value of the “window
” field.
When overloading is enabled, this is equivalent to
get
eventGrabBroken #window
setEventGrabBrokenWindow :: MonadIO m => EventGrabBroken -> Ptr Window -> m () Source #
Set the value of the “window
” field.
When overloading is enabled, this is equivalent to
set
eventGrabBroken [ #window:=
value ]