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

Description

Generated during DND operations.

Synopsis

Exported types

newtype EventDND Source #

Memory-managed wrapper type.

Constructors

EventDND (ManagedPtr EventDND) 

Instances

Instances details
Eq EventDND Source # 
Instance details

Defined in GI.Gdk.Structs.EventDND

BoxedPtr EventDND Source # 
Instance details

Defined in GI.Gdk.Structs.EventDND

CallocPtr EventDND Source # 
Instance details

Defined in GI.Gdk.Structs.EventDND

ManagedPtrNewtype EventDND Source # 
Instance details

Defined in GI.Gdk.Structs.EventDND

tag ~ 'AttrSet => Constructible EventDND tag Source # 
Instance details

Defined in GI.Gdk.Structs.EventDND

Methods

new :: MonadIO m => (ManagedPtr EventDND -> EventDND) -> [AttrOp EventDND tag] -> m EventDND #

newZeroEventDND :: MonadIO m => m EventDND Source #

Construct a EventDND struct initialized to zero.

Methods

Properties

context

the DragContext for the current DND operation.

clearEventDNDContext :: MonadIO m => EventDND -> m () Source #

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

clear #context

getEventDNDContext :: MonadIO m => EventDND -> m (Maybe DragContext) Source #

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

get eventDND #context

setEventDNDContext :: MonadIO m => EventDND -> Ptr DragContext -> m () Source #

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

set eventDND [ #context := value ]

sendEvent

True if the event was sent explicitly.

getEventDNDSendEvent :: MonadIO m => EventDND -> m Int8 Source #

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

get eventDND #sendEvent

setEventDNDSendEvent :: MonadIO m => EventDND -> Int8 -> m () Source #

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

set eventDND [ #sendEvent := value ]

time

the time of the event in milliseconds.

getEventDNDTime :: MonadIO m => EventDND -> m Word32 Source #

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

get eventDND #time

setEventDNDTime :: MonadIO m => EventDND -> Word32 -> m () Source #

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

set eventDND [ #time := value ]

type

getEventDNDType :: MonadIO m => EventDND -> m EventType Source #

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

get eventDND #type

setEventDNDType :: MonadIO m => EventDND -> EventType -> m () Source #

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

set eventDND [ #type := value ]

window

the window which received the event.

clearEventDNDWindow :: MonadIO m => EventDND -> m () Source #

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

clear #window

getEventDNDWindow :: MonadIO m => EventDND -> m (Maybe Window) Source #

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

get eventDND #window

setEventDNDWindow :: MonadIO m => EventDND -> Ptr Window -> m () Source #

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

set eventDND [ #window := value ]

xRoot

the x coordinate of the pointer relative to the root of the screen, only set for EventTypeDragMotion and EventTypeDropStart.

getEventDNDXRoot :: MonadIO m => EventDND -> m Int16 Source #

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

get eventDND #xRoot

setEventDNDXRoot :: MonadIO m => EventDND -> Int16 -> m () Source #

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

set eventDND [ #xRoot := value ]

yRoot

the y coordinate of the pointer relative to the root of the screen, only set for EventTypeDragMotion and EventTypeDropStart.

getEventDNDYRoot :: MonadIO m => EventDND -> m Int16 Source #

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

get eventDND #yRoot

setEventDNDYRoot :: MonadIO m => EventDND -> Int16 -> m () Source #

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

set eventDND [ #yRoot := value ]