gi-gdk3-3.0.30: Gdk 3.x bindings

Copyright | Will Thompson and Iñaki García Etxebarria
License | LGPL-2.1
Maintainer | Iñaki García Etxebarria
Safe Haskell | None
Language | Haskell2010

GI.Gdk.Structs.EventDND

Contents

- Exported types
- Methods
- Properties
  - context
  - sendEvent
  - time
  - type
  - window
  - xRoot
  - yRoot

Description

Generated during DND operations.

Synopsis

- newtype EventDND = EventDND (ManagedPtr EventDND)
- newZeroEventDND :: MonadIO m => m 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 CShort
- setEventDNDXRoot :: MonadIO m => EventDND -> CShort -> m ()
- getEventDNDYRoot :: MonadIO m => EventDND -> m CShort
- setEventDNDYRoot :: MonadIO m => EventDND -> CShort -> m ()

# 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 Methods (==) :: EventDND -> EventDND -> Bool Source # (/=) :: EventDND -> EventDND -> Bool Source #
BoxedPtr EventDND Source # |
Instance details Defined in GI.Gdk.Structs.EventDND Methods boxedPtrCopy :: EventDND -> IO EventDND Source # boxedPtrFree :: EventDND -> IO () Source #
CallocPtr EventDND Source # |
Instance details Defined in GI.Gdk.Structs.EventDND Methods boxedPtrCalloc :: IO (Ptr EventDND) Source #
ManagedPtrNewtype EventDND Source # |
Instance details Defined in GI.Gdk.Structs.EventDND Methods toManagedPtr :: EventDND -> ManagedPtr EventDND Source #
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 Source #

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

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 CShort Source #

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

    get eventDND #xRoot

setEventDNDXRoot :: MonadIO m => EventDND -> CShort -> 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 CShort Source #

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

    get eventDND #yRoot

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

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

    set eventDND [ #yRoot := value ]