gi-gdk-3.0.29: Gdk bindings

Copyright | Will Thompson and Iñaki García Etxebarria
License | LGPL-2.1
Maintainer | Iñaki García Etxebarria
Safe Haskell | Safe-Inferred
Language | Haskell2010

GI.Gdk.Structs.EventGrabBroken

Contents

- Exported types
- Methods
- Properties
  - grabWindow
  - implicit
  - keyboard
  - sendEvent
  - type
  - window

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

- newtype EventGrabBroken = EventGrabBroken (ManagedPtr EventGrabBroken)
- newZeroEventGrabBroken :: MonadIO m => m 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.

Constructors

EventGrabBroken (ManagedPtr EventGrabBroken) |

#### Instances

Instances details

Eq EventGrabBroken Source # |
Instance details Defined in GI.Gdk.Structs.EventGrabBroken Methods (==) :: EventGrabBroken -> EventGrabBroken -> Bool Source # (/=) :: EventGrabBroken -> EventGrabBroken -> Bool Source #
BoxedPtr EventGrabBroken Source # |
Instance details Defined in GI.Gdk.Structs.EventGrabBroken Methods boxedPtrCopy :: EventGrabBroken -> IO EventGrabBroken Source # boxedPtrFree :: EventGrabBroken -> IO () Source #
CallocPtr EventGrabBroken Source # |
Instance details Defined in GI.Gdk.Structs.EventGrabBroken Methods boxedPtrCalloc :: IO (Ptr EventGrabBroken) Source #
ManagedPtrNewtype EventGrabBroken Source # |
Instance details Defined in GI.Gdk.Structs.EventGrabBroken Methods toManagedPtr :: EventGrabBroken -> ManagedPtr EventGrabBroken Source #
tag ~ 'AttrSet => Constructible EventGrabBroken tag Source # |
Instance details Defined in GI.Gdk.Structs.EventGrabBroken Methods new :: MonadIO m => (ManagedPtr EventGrabBroken -> EventGrabBroken) -> [AttrOp EventGrabBroken tag] -> m EventGrabBroken Source #

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 ]