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

Description

Describes a change of keyboard focus.

Synopsis

Exported types

newtype EventFocus Source #

Memory-managed wrapper type.

Constructors

EventFocus (ManagedPtr EventFocus) 

Instances

Instances details
Eq EventFocus Source # 
Instance details

Defined in GI.Gdk.Structs.EventFocus

Methods

(==) :: EventFocus -> EventFocus -> Bool

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

BoxedPtr EventFocus Source # 
Instance details

Defined in GI.Gdk.Structs.EventFocus

CallocPtr EventFocus Source # 
Instance details

Defined in GI.Gdk.Structs.EventFocus

ManagedPtrNewtype EventFocus Source # 
Instance details

Defined in GI.Gdk.Structs.EventFocus

Methods

toManagedPtr :: EventFocus -> ManagedPtr EventFocus

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

Defined in GI.Gdk.Structs.EventFocus

Methods

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

newZeroEventFocus :: MonadIO m => m EventFocus Source #

Construct a EventFocus struct initialized to zero.

Methods

Overloaded methods

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 ]