gi-gdk-3.0.25: Gdk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gdk.Structs.EventGrabBroken

Description

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

Exported types

newZeroEventGrabBroken :: MonadIO m => m EventGrabBroken Source #

Construct a EventGrabBroken struct initialized to zero.

Methods

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

True if a keyboard grab was broken, False if a pointer grab was broken

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 ]