gi-gdk-3.0.19: 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.EventCrossing

Contents

Description

Generated when the pointer enters or leaves a window.

Synopsis

Exported types

newZeroEventCrossing :: MonadIO m => m EventCrossing Source #

Construct a EventCrossing struct initialized to zero.

Properties

detail

getEventCrossingDetail :: MonadIO m => EventCrossing -> m NotifyType Source #

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

get eventCrossing #detail

setEventCrossingDetail :: MonadIO m => EventCrossing -> NotifyType -> m () Source #

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

set eventCrossing [ #detail := value ]

focus

True if window is the focus window or an inferior.

getEventCrossingFocus :: MonadIO m => EventCrossing -> m Bool Source #

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

get eventCrossing #focus

setEventCrossingFocus :: MonadIO m => EventCrossing -> Bool -> m () Source #

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

set eventCrossing [ #focus := value ]

mode

getEventCrossingMode :: MonadIO m => EventCrossing -> m CrossingMode Source #

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

get eventCrossing #mode

setEventCrossingMode :: MonadIO m => EventCrossing -> CrossingMode -> m () Source #

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

set eventCrossing [ #mode := value ]

sendEvent

True if the event was sent explicitly.

getEventCrossingSendEvent :: MonadIO m => EventCrossing -> m Int8 Source #

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

get eventCrossing #sendEvent

setEventCrossingSendEvent :: MonadIO m => EventCrossing -> Int8 -> m () Source #

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

set eventCrossing [ #sendEvent := value ]

state

a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See ModifierType.

getEventCrossingState :: MonadIO m => EventCrossing -> m [ModifierType] Source #

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

get eventCrossing #state

setEventCrossingState :: MonadIO m => EventCrossing -> [ModifierType] -> m () Source #

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

set eventCrossing [ #state := value ]

subwindow

the window that was entered or left.

clearEventCrossingSubwindow :: MonadIO m => EventCrossing -> m () Source #

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

clear #subwindow

getEventCrossingSubwindow :: MonadIO m => EventCrossing -> m (Maybe Window) Source #

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

get eventCrossing #subwindow

setEventCrossingSubwindow :: MonadIO m => EventCrossing -> Ptr Window -> m () Source #

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

set eventCrossing [ #subwindow := value ]

time

the time of the event in milliseconds.

getEventCrossingTime :: MonadIO m => EventCrossing -> m Word32 Source #

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

get eventCrossing #time

setEventCrossingTime :: MonadIO m => EventCrossing -> Word32 -> m () Source #

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

set eventCrossing [ #time := value ]

type

the type of the event (EventTypeEnterNotify or EventTypeLeaveNotify).

getEventCrossingType :: MonadIO m => EventCrossing -> m EventType Source #

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

get eventCrossing #type

setEventCrossingType :: MonadIO m => EventCrossing -> EventType -> m () Source #

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

set eventCrossing [ #type := value ]

window

the window which received the event.

clearEventCrossingWindow :: MonadIO m => EventCrossing -> m () Source #

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

clear #window

getEventCrossingWindow :: MonadIO m => EventCrossing -> m (Maybe Window) Source #

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

get eventCrossing #window

setEventCrossingWindow :: MonadIO m => EventCrossing -> Ptr Window -> m () Source #

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

set eventCrossing [ #window := value ]

x

the x coordinate of the pointer relative to the window.

getEventCrossingX :: MonadIO m => EventCrossing -> m Double Source #

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

get eventCrossing #x

setEventCrossingX :: MonadIO m => EventCrossing -> Double -> m () Source #

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

set eventCrossing [ #x := value ]

xRoot

the x coordinate of the pointer relative to the root of the screen.

getEventCrossingXRoot :: MonadIO m => EventCrossing -> m Double Source #

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

get eventCrossing #xRoot

setEventCrossingXRoot :: MonadIO m => EventCrossing -> Double -> m () Source #

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

set eventCrossing [ #xRoot := value ]

y

the y coordinate of the pointer relative to the window.

getEventCrossingY :: MonadIO m => EventCrossing -> m Double Source #

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

get eventCrossing #y

setEventCrossingY :: MonadIO m => EventCrossing -> Double -> m () Source #

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

set eventCrossing [ #y := value ]

yRoot

the y coordinate of the pointer relative to the root of the screen.

getEventCrossingYRoot :: MonadIO m => EventCrossing -> m Double Source #

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

get eventCrossing #yRoot

setEventCrossingYRoot :: MonadIO m => EventCrossing -> Double -> m () Source #

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

set eventCrossing [ #yRoot := value ]