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.EventSelection

Contents

- Exported types
- Methods
  - Overloaded methods
- Properties
  - property
  - requestor
  - selection
  - sendEvent
  - target
  - time
  - type
  - window

Description

Generated when a selection is requested or ownership of a selection is taken over by another client application.

Synopsis

- newtype EventSelection = EventSelection (ManagedPtr EventSelection)
- newZeroEventSelection :: MonadIO m => m EventSelection
- getEventSelectionProperty :: MonadIO m => EventSelection -> m Atom
- clearEventSelectionRequestor :: MonadIO m => EventSelection -> m ()
- getEventSelectionRequestor :: MonadIO m => EventSelection -> m (Maybe Window)
- setEventSelectionRequestor :: MonadIO m => EventSelection -> Ptr Window -> m ()
- getEventSelectionSelection :: MonadIO m => EventSelection -> m Atom
- getEventSelectionSendEvent :: MonadIO m => EventSelection -> m Int8
- setEventSelectionSendEvent :: MonadIO m => EventSelection -> Int8 -> m ()
- getEventSelectionTarget :: MonadIO m => EventSelection -> m Atom
- getEventSelectionTime :: MonadIO m => EventSelection -> m Word32
- setEventSelectionTime :: MonadIO m => EventSelection -> Word32 -> m ()
- getEventSelectionType :: MonadIO m => EventSelection -> m EventType
- setEventSelectionType :: MonadIO m => EventSelection -> EventType -> m ()
- clearEventSelectionWindow :: MonadIO m => EventSelection -> m ()
- getEventSelectionWindow :: MonadIO m => EventSelection -> m (Maybe Window)
- setEventSelectionWindow :: MonadIO m => EventSelection -> Ptr Window -> m ()

# Exported types

newtype EventSelection Source #

Memory-managed wrapper type.

Constructors

EventSelection (ManagedPtr EventSelection) |

#### Instances

Instances details

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

newZeroEventSelection :: MonadIO m => m EventSelection Source #

Construct a `EventSelection` struct initialized to zero.

# Methods

## Overloaded methods

# Properties

## property

the property in which to place the result of the conversion.

getEventSelectionProperty :: MonadIO m => EventSelection -> m Atom Source #

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

    get eventSelection #property

## requestor

the window on which to place `property` or `Nothing` if none.

clearEventSelectionRequestor :: MonadIO m => EventSelection -> m () Source #

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

    clear #requestor

getEventSelectionRequestor :: MonadIO m => EventSelection -> m (Maybe Window) Source #

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

    get eventSelection #requestor

setEventSelectionRequestor :: MonadIO m => EventSelection -> Ptr Window -> m () Source #

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

    set eventSelection [ #requestor := value ]

## selection

the selection.

getEventSelectionSelection :: MonadIO m => EventSelection -> m Atom Source #

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

    get eventSelection #selection

## sendEvent

`True` if the event was sent explicitly.

getEventSelectionSendEvent :: MonadIO m => EventSelection -> m Int8 Source #

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

    get eventSelection #sendEvent

setEventSelectionSendEvent :: MonadIO m => EventSelection -> Int8 -> m () Source #

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

    set eventSelection [ #sendEvent := value ]

## target

the target to which the selection should be converted.

getEventSelectionTarget :: MonadIO m => EventSelection -> m Atom Source #

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

    get eventSelection #target

## time

the time of the event in milliseconds.

getEventSelectionTime :: MonadIO m => EventSelection -> m Word32 Source #

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

    get eventSelection #time

setEventSelectionTime :: MonadIO m => EventSelection -> Word32 -> m () Source #

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

    set eventSelection [ #time := value ]

## type

the type of the event (`EventTypeSelectionClear`, `EventTypeSelectionNotify` or `EventTypeSelectionRequest`).

getEventSelectionType :: MonadIO m => EventSelection -> m EventType Source #

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

    get eventSelection #type

setEventSelectionType :: MonadIO m => EventSelection -> EventType -> m () Source #

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

    set eventSelection [ #type := value ]

## window

the window which received the event.

clearEventSelectionWindow :: MonadIO m => EventSelection -> m () Source #

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

    clear #window

getEventSelectionWindow :: MonadIO m => EventSelection -> m (Maybe Window) Source #

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

    get eventSelection #window

setEventSelectionWindow :: MonadIO m => EventSelection -> Ptr Window -> m () Source #

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

    set eventSelection [ #window := value ]