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.EventFocus

Contents

Description

Describes a change of keyboard focus.

Synopsis

Exported types

newZeroEventFocus :: MonadIO m => m EventFocus Source #

Construct a EventFocus struct initialized to zero.

Properties

in

True if the window has gained the keyboard focus, False if it has lost the focus.

getEventFocusIn :: MonadIO m => EventFocus -> m Int16 Source #

Get the value of the “in” field. When overloading is enabled, this is equivalent to

get eventFocus #in

setEventFocusIn :: MonadIO m => EventFocus -> Int16 -> m () Source #

Set the value of the “in” field. When overloading is enabled, this is equivalent to

set eventFocus [ #in := value ]

sendEvent

True if the event was sent explicitly.

getEventFocusSendEvent :: MonadIO m => EventFocus -> m Int8 Source #

Get the value of the “send_event” field. When overloading is enabled, this is equivalent to

get eventFocus #sendEvent

setEventFocusSendEvent :: MonadIO m => EventFocus -> Int8 -> m () Source #

Set the value of the “send_event” field. When overloading is enabled, this is equivalent to

set eventFocus [ #sendEvent := value ]

type

the type of the event (EventTypeFocusChange).

getEventFocusType :: MonadIO m => EventFocus -> m EventType Source #

Get the value of the “type” field. When overloading is enabled, this is equivalent to

get eventFocus #type

setEventFocusType :: MonadIO m => EventFocus -> EventType -> m () Source #

Set the value of the “type” field. When overloading is enabled, this is equivalent to

set eventFocus [ #type := value ]

window

the window which received the event.

clearEventFocusWindow :: MonadIO m => EventFocus -> m () Source #

Set the value of the “window” field to Nothing. When overloading is enabled, this is equivalent to

clear #window

getEventFocusWindow :: MonadIO m => EventFocus -> m (Maybe Window) Source #

Get the value of the “window” field. When overloading is enabled, this is equivalent to

get eventFocus #window

setEventFocusWindow :: MonadIO m => EventFocus -> Ptr Window -> m () Source #

Set the value of the “window” field. When overloading is enabled, this is equivalent to

set eventFocus [ #window := value ]