Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Contains the fields which are common to all event structs.
Any event pointer can safely be cast to a pointer to a EventAny
to
access these fields.
Synopsis
- newtype EventAny = EventAny (ManagedPtr EventAny)
- newZeroEventAny :: MonadIO m => m EventAny
- getEventAnySendEvent :: MonadIO m => EventAny -> m Int8
- setEventAnySendEvent :: MonadIO m => EventAny -> Int8 -> m ()
- getEventAnyType :: MonadIO m => EventAny -> m EventType
- setEventAnyType :: MonadIO m => EventAny -> EventType -> m ()
- clearEventAnyWindow :: MonadIO m => EventAny -> m ()
- getEventAnyWindow :: MonadIO m => EventAny -> m (Maybe Window)
- setEventAnyWindow :: MonadIO m => EventAny -> Ptr Window -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq EventAny Source # | |
BoxedPtr EventAny Source # | |
Defined in GI.Gdk.Structs.EventAny boxedPtrCopy :: EventAny -> IO EventAny boxedPtrFree :: EventAny -> IO () | |
CallocPtr EventAny Source # | |
Defined in GI.Gdk.Structs.EventAny boxedPtrCalloc :: IO (Ptr EventAny) | |
ManagedPtrNewtype EventAny Source # | |
Defined in GI.Gdk.Structs.EventAny toManagedPtr :: EventAny -> ManagedPtr EventAny | |
tag ~ 'AttrSet => Constructible EventAny tag Source # | |
Methods
Overloaded methods
Properties
sendEvent
True
if the event was sent explicitly.
getEventAnySendEvent :: MonadIO m => EventAny -> m Int8 Source #
Get the value of the “send_event
” field.
When overloading is enabled, this is equivalent to
get
eventAny #sendEvent
setEventAnySendEvent :: MonadIO m => EventAny -> Int8 -> m () Source #
Set the value of the “send_event
” field.
When overloading is enabled, this is equivalent to
set
eventAny [ #sendEvent:=
value ]
type
the type of the event.
getEventAnyType :: MonadIO m => EventAny -> m EventType Source #
Get the value of the “type
” field.
When overloading is enabled, this is equivalent to
get
eventAny #type
setEventAnyType :: MonadIO m => EventAny -> EventType -> m () Source #
Set the value of the “type
” field.
When overloading is enabled, this is equivalent to
set
eventAny [ #type:=
value ]
window
the window which received the event.
clearEventAnyWindow :: MonadIO m => EventAny -> m () Source #
Set the value of the “window
” field to Nothing
.
When overloading is enabled, this is equivalent to
clear
#window
getEventAnyWindow :: MonadIO m => EventAny -> m (Maybe Window) Source #
Get the value of the “window
” field.
When overloading is enabled, this is equivalent to
get
eventAny #window
setEventAnyWindow :: MonadIO m => EventAny -> Ptr Window -> m () Source #
Set the value of the “window
” field.
When overloading is enabled, this is equivalent to
set
eventAny [ #window:=
value ]