Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Generated during DND operations.
Synopsis
- newtype EventDND = EventDND (ManagedPtr EventDND)
- newZeroEventDND :: MonadIO m => m EventDND
- noEventDND :: Maybe EventDND
- clearEventDNDContext :: MonadIO m => EventDND -> m ()
- getEventDNDContext :: MonadIO m => EventDND -> m (Maybe DragContext)
- setEventDNDContext :: MonadIO m => EventDND -> Ptr DragContext -> m ()
- getEventDNDSendEvent :: MonadIO m => EventDND -> m Int8
- setEventDNDSendEvent :: MonadIO m => EventDND -> Int8 -> m ()
- getEventDNDTime :: MonadIO m => EventDND -> m Word32
- setEventDNDTime :: MonadIO m => EventDND -> Word32 -> m ()
- getEventDNDType :: MonadIO m => EventDND -> m EventType
- setEventDNDType :: MonadIO m => EventDND -> EventType -> m ()
- clearEventDNDWindow :: MonadIO m => EventDND -> m ()
- getEventDNDWindow :: MonadIO m => EventDND -> m (Maybe Window)
- setEventDNDWindow :: MonadIO m => EventDND -> Ptr Window -> m ()
- getEventDNDXRoot :: MonadIO m => EventDND -> m Int16
- setEventDNDXRoot :: MonadIO m => EventDND -> Int16 -> m ()
- getEventDNDYRoot :: MonadIO m => EventDND -> m Int16
- setEventDNDYRoot :: MonadIO m => EventDND -> Int16 -> m ()
Exported types
Memory-managed wrapper type.
Instances
WrappedPtr EventDND Source # | |
Defined in GI.Gdk.Structs.EventDND wrappedPtrCalloc :: IO (Ptr EventDND) # wrappedPtrCopy :: EventDND -> IO EventDND # | |
tag ~ AttrSet => Constructible EventDND tag Source # | |
Defined in GI.Gdk.Structs.EventDND |
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
the type of the event (EventTypeDragEnter
, EventTypeDragLeave
,
EventTypeDragMotion
, EventTypeDragStatus
, EventTypeDropStart
or
EventTypeDropFinished
).
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 ]