| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Gdk.Structs.EventSelection
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
| Eq EventSelection Source # | |
Defined in GI.Gdk.Structs.EventSelection Methods (==) :: EventSelection -> EventSelection -> Bool # (/=) :: EventSelection -> EventSelection -> Bool # | |
| BoxedPtr EventSelection Source # | |
Defined in GI.Gdk.Structs.EventSelection | |
| CallocPtr EventSelection Source # | |
Defined in GI.Gdk.Structs.EventSelection Methods | |
| ManagedPtrNewtype EventSelection Source # | |
Defined in GI.Gdk.Structs.EventSelection Methods toManagedPtr :: EventSelection -> ManagedPtr EventSelection | |
| tag ~ 'AttrSet => Constructible EventSelection tag Source # | |
Defined in GI.Gdk.Structs.EventSelection Methods new :: MonadIO m => (ManagedPtr EventSelection -> EventSelection) -> [AttrOp EventSelection tag] -> m EventSelection | |
newZeroEventSelection :: MonadIO m => m EventSelection Source #
Construct a EventSelection struct initialized to zero.
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
seteventSelection [ #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
seteventSelection [ #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
seteventSelection [ #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
seteventSelection [ #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
seteventSelection [ #window:=value ]