gi-gdk-3.0.23: Gdk bindings

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

GI.Gdk.Structs.EventOwnerChange

Contents

- Exported types
- Methods
  - Overloaded methods
- Properties
  - owner
  - reason
  - selection
  - selectionTime
  - sendEvent
  - time
  - type
  - window

Description

Generated when the owner of a selection changes. On X11, this information is only available if the X server supports the XFIXES extension.

Since: 2.6

Synopsis

- newtype EventOwnerChange = EventOwnerChange (ManagedPtr EventOwnerChange)
- newZeroEventOwnerChange :: MonadIO m => m EventOwnerChange
- clearEventOwnerChangeOwner :: MonadIO m => EventOwnerChange -> m ()
- getEventOwnerChangeOwner :: MonadIO m => EventOwnerChange -> m (Maybe Window)
- setEventOwnerChangeOwner :: MonadIO m => EventOwnerChange -> Ptr Window -> m ()
- getEventOwnerChangeReason :: MonadIO m => EventOwnerChange -> m OwnerChange
- setEventOwnerChangeReason :: MonadIO m => EventOwnerChange -> OwnerChange -> m ()
- getEventOwnerChangeSelection :: MonadIO m => EventOwnerChange -> m Atom
- getEventOwnerChangeSelectionTime :: MonadIO m => EventOwnerChange -> m Word32
- setEventOwnerChangeSelectionTime :: MonadIO m => EventOwnerChange -> Word32 -> m ()
- getEventOwnerChangeSendEvent :: MonadIO m => EventOwnerChange -> m Int8
- setEventOwnerChangeSendEvent :: MonadIO m => EventOwnerChange -> Int8 -> m ()
- getEventOwnerChangeTime :: MonadIO m => EventOwnerChange -> m Word32
- setEventOwnerChangeTime :: MonadIO m => EventOwnerChange -> Word32 -> m ()
- getEventOwnerChangeType :: MonadIO m => EventOwnerChange -> m EventType
- setEventOwnerChangeType :: MonadIO m => EventOwnerChange -> EventType -> m ()
- clearEventOwnerChangeWindow :: MonadIO m => EventOwnerChange -> m ()
- getEventOwnerChangeWindow :: MonadIO m => EventOwnerChange -> m (Maybe Window)
- setEventOwnerChangeWindow :: MonadIO m => EventOwnerChange -> Ptr Window -> m ()

# Exported types

newtype EventOwnerChange Source #

Memory-managed wrapper type.

Constructors

EventOwnerChange (ManagedPtr EventOwnerChange) |

#### Instances

Instances details

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

newZeroEventOwnerChange :: MonadIO m => m EventOwnerChange Source #

Construct a `EventOwnerChange` struct initialized to zero.

# Methods

## Overloaded methods

# Properties

## owner

the new owner of the selection, or `Nothing` if there is none

clearEventOwnerChangeOwner :: MonadIO m => EventOwnerChange -> m () Source #

Set the value of the “`owner`” field to `Nothing`. When overloading is enabled, this is equivalent to

    clear #owner

getEventOwnerChangeOwner :: MonadIO m => EventOwnerChange -> m (Maybe Window) Source #

Get the value of the “`owner`” field. When overloading is enabled, this is equivalent to

    get eventOwnerChange #owner

setEventOwnerChangeOwner :: MonadIO m => EventOwnerChange -> Ptr Window -> m () Source #

Set the value of the “`owner`” field. When overloading is enabled, this is equivalent to

    set eventOwnerChange [ #owner := value ]

## reason

the reason for the ownership change as a `OwnerChange` value

getEventOwnerChangeReason :: MonadIO m => EventOwnerChange -> m OwnerChange Source #

Get the value of the “`reason`” field. When overloading is enabled, this is equivalent to

    get eventOwnerChange #reason

setEventOwnerChangeReason :: MonadIO m => EventOwnerChange -> OwnerChange -> m () Source #

Set the value of the “`reason`” field. When overloading is enabled, this is equivalent to

    set eventOwnerChange [ #reason := value ]

## selection

the atom identifying the selection

getEventOwnerChangeSelection :: MonadIO m => EventOwnerChange -> m Atom Source #

Get the value of the “`selection`” field. When overloading is enabled, this is equivalent to

    get eventOwnerChange #selection

## selectionTime

the time at which the selection ownership was taken over

getEventOwnerChangeSelectionTime :: MonadIO m => EventOwnerChange -> m Word32 Source #

Get the value of the “`selection_time`” field. When overloading is enabled, this is equivalent to

    get eventOwnerChange #selectionTime

setEventOwnerChangeSelectionTime :: MonadIO m => EventOwnerChange -> Word32 -> m () Source #

Set the value of the “`selection_time`” field. When overloading is enabled, this is equivalent to

    set eventOwnerChange [ #selectionTime := value ]

## sendEvent

`True` if the event was sent explicitly.

getEventOwnerChangeSendEvent :: MonadIO m => EventOwnerChange -> m Int8 Source #

Get the value of the “`send_event`” field. When overloading is enabled, this is equivalent to

    get eventOwnerChange #sendEvent

setEventOwnerChangeSendEvent :: MonadIO m => EventOwnerChange -> Int8 -> m () Source #

Set the value of the “`send_event`” field. When overloading is enabled, this is equivalent to

    set eventOwnerChange [ #sendEvent := value ]

## time

the timestamp of the event

getEventOwnerChangeTime :: MonadIO m => EventOwnerChange -> m Word32 Source #

Get the value of the “`time`” field. When overloading is enabled, this is equivalent to

    get eventOwnerChange #time

setEventOwnerChangeTime :: MonadIO m => EventOwnerChange -> Word32 -> m () Source #

Set the value of the “`time`” field. When overloading is enabled, this is equivalent to

    set eventOwnerChange [ #time := value ]

## type

the type of the event (`EventTypeOwnerChange`).

getEventOwnerChangeType :: MonadIO m => EventOwnerChange -> m EventType Source #

Get the value of the “`type`” field. When overloading is enabled, this is equivalent to

    get eventOwnerChange #type

setEventOwnerChangeType :: MonadIO m => EventOwnerChange -> EventType -> m () Source #

Set the value of the “`type`” field. When overloading is enabled, this is equivalent to

    set eventOwnerChange [ #type := value ]

## window

the window which received the event

clearEventOwnerChangeWindow :: MonadIO m => EventOwnerChange -> m () Source #

Set the value of the “`window`” field to `Nothing`. When overloading is enabled, this is equivalent to

    clear #window

getEventOwnerChangeWindow :: MonadIO m => EventOwnerChange -> m (Maybe Window) Source #

Get the value of the “`window`” field. When overloading is enabled, this is equivalent to

    get eventOwnerChange #window

setEventOwnerChangeWindow :: MonadIO m => EventOwnerChange -> Ptr Window -> m () Source #

Set the value of the “`window`” field. When overloading is enabled, this is equivalent to

    set eventOwnerChange [ #window := value ]