Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
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 #GdkEventAny to access these fields.
- newtype EventAny = EventAny (ForeignPtr EventAny)
- newZeroEventAny :: MonadIO m => m EventAny
- noEventAny :: Maybe EventAny
- eventAnyReadSendEvent :: MonadIO m => EventAny -> m Int8
- eventAnySendEvent :: AttrLabelProxy "sendEvent"
- eventAnyWriteSendEvent :: MonadIO m => EventAny -> Int8 -> m ()
- eventAnyReadType :: MonadIO m => EventAny -> m EventType
- eventAnyType :: AttrLabelProxy "type"
- eventAnyWriteType :: MonadIO m => EventAny -> EventType -> m ()
- eventAnyClearWindow :: MonadIO m => EventAny -> m ()
- eventAnyReadWindow :: MonadIO m => EventAny -> m (Maybe Window)
- eventAnyWindow :: AttrLabelProxy "window"
- eventAnyWriteWindow :: MonadIO m => EventAny -> Ptr Window -> m ()
Exported types
WrappedPtr EventAny | |
(~) AttrOpTag tag AttrSet => Constructible EventAny tag | |
((~) * info (ResolveEventAnyMethod t EventAny), MethodInfo * info EventAny p) => IsLabelProxy t (EventAny -> p) | |
type AttributeList EventAny |
newZeroEventAny :: MonadIO m => m EventAny Source
Construct a EventAny
struct initialized to zero.
Properties
SendEvent
eventAnyReadSendEvent :: MonadIO m => EventAny -> m Int8 Source
eventAnySendEvent :: AttrLabelProxy "sendEvent" Source
eventAnyWriteSendEvent :: MonadIO m => EventAny -> Int8 -> m () Source
Type
eventAnyReadType :: MonadIO m => EventAny -> m EventType Source
eventAnyType :: AttrLabelProxy "type" Source
eventAnyWriteType :: MonadIO m => EventAny -> EventType -> m () Source
Window
eventAnyClearWindow :: MonadIO m => EventAny -> m () Source
eventAnyWindow :: AttrLabelProxy "window" Source