gi-gdk-3.0.21: Gdk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Structs.EventAny

Contents

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) 

newZeroEventAny :: MonadIO m => m EventAny Source #

Construct a EventAny struct initialized to zero.

noEventAny :: Maybe EventAny Source #

A convenience alias for Nothing :: Maybe EventAny.

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 ]