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 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
- noEventSelection :: Maybe 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.
Instances
WrappedPtr EventSelection Source # | |
Defined in GI.Gdk.Structs.EventSelection | |
tag ~ AttrSet => Constructible EventSelection tag Source # | |
Defined in GI.Gdk.Structs.EventSelection new :: MonadIO m => (ManagedPtr EventSelection -> EventSelection) -> [AttrOp EventSelection tag] -> m EventSelection # |
newZeroEventSelection :: MonadIO m => m EventSelection Source #
Construct a EventSelection
struct initialized to zero.
noEventSelection :: Maybe EventSelection Source #
A convenience alias for Nothing
:: Maybe
EventSelection
.
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
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
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 ]