gi-gdk-3.0.23: Gdk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Structs.EventAny

Description

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

Exported types

newtype EventAny Source #

Memory-managed wrapper type.

Constructors

EventAny (ManagedPtr EventAny) 

Instances

Instances details
Eq EventAny Source # 
Instance details

Defined in GI.Gdk.Structs.EventAny

Methods

(==) :: EventAny -> EventAny -> Bool

(/=) :: EventAny -> EventAny -> Bool

BoxedPtr EventAny Source # 
Instance details

Defined in GI.Gdk.Structs.EventAny

CallocPtr EventAny Source # 
Instance details

Defined in GI.Gdk.Structs.EventAny

Methods

boxedPtrCalloc :: IO (Ptr EventAny)

ManagedPtrNewtype EventAny Source # 
Instance details

Defined in GI.Gdk.Structs.EventAny

Methods

toManagedPtr :: EventAny -> ManagedPtr EventAny

tag ~ 'AttrSet => Constructible EventAny tag Source # 
Instance details

Defined in GI.Gdk.Structs.EventAny

Methods

new :: MonadIO m => (ManagedPtr EventAny -> EventAny) -> [AttrOp EventAny tag] -> m EventAny

newZeroEventAny :: MonadIO m => m EventAny Source #

Construct a EventAny struct initialized to zero.

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 ]