gi-gdk-3.0.18: Gdk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Structs.EventSelection

Contents

Description

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

Synopsis

Exported types

newZeroEventSelection :: MonadIO m => m EventSelection Source #

Construct a EventSelection struct initialized to zero.

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

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 ]