gi-clutter-1.0.3: clutter GObject bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Clutter.Structs.ButtonEvent

Description

Button event.

The event coordinates are relative to the stage that received the event, and can be transformed into actor-relative coordinates by using actorTransformStagePoint.

Since: 0.2

Synopsis

Exported types

newtype ButtonEvent Source #

Memory-managed wrapper type.

Constructors

ButtonEvent (ManagedPtr ButtonEvent) 

Instances

Instances details
Eq ButtonEvent Source # 
Instance details

Defined in GI.Clutter.Structs.ButtonEvent

BoxedPtr ButtonEvent Source # 
Instance details

Defined in GI.Clutter.Structs.ButtonEvent

CallocPtr ButtonEvent Source # 
Instance details

Defined in GI.Clutter.Structs.ButtonEvent

ManagedPtrNewtype ButtonEvent Source # 
Instance details

Defined in GI.Clutter.Structs.ButtonEvent

Methods

toManagedPtr :: ButtonEvent -> ManagedPtr ButtonEvent

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

Defined in GI.Clutter.Structs.ButtonEvent

Methods

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

newZeroButtonEvent :: MonadIO m => m ButtonEvent Source #

Construct a ButtonEvent struct initialized to zero.

Methods

Properties

axes

reserved for future use

getButtonEventAxes :: MonadIO m => ButtonEvent -> m Double Source #

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

get buttonEvent #axes

setButtonEventAxes :: MonadIO m => ButtonEvent -> Double -> m () Source #

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

set buttonEvent [ #axes := value ]

button

event button

getButtonEventButton :: MonadIO m => ButtonEvent -> m Word32 Source #

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

get buttonEvent #button

setButtonEventButton :: MonadIO m => ButtonEvent -> Word32 -> m () Source #

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

set buttonEvent [ #button := value ]

clickCount

number of button presses within the default time and radius

getButtonEventClickCount :: MonadIO m => ButtonEvent -> m Word32 Source #

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

get buttonEvent #clickCount

setButtonEventClickCount :: MonadIO m => ButtonEvent -> Word32 -> m () Source #

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

set buttonEvent [ #clickCount := value ]

device

the device that originated the event. If you want the physical device the event originated from, use eventGetSourceDevice

clearButtonEventDevice :: MonadIO m => ButtonEvent -> m () Source #

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

clear #device

getButtonEventDevice :: MonadIO m => ButtonEvent -> m (Maybe InputDevice) Source #

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

get buttonEvent #device

setButtonEventDevice :: MonadIO m => ButtonEvent -> Ptr InputDevice -> m () Source #

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

set buttonEvent [ #device := value ]

flags

event flags

getButtonEventFlags :: MonadIO m => ButtonEvent -> m [EventFlags] Source #

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

get buttonEvent #flags

setButtonEventFlags :: MonadIO m => ButtonEvent -> [EventFlags] -> m () Source #

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

set buttonEvent [ #flags := value ]

modifierState

button modifiers

getButtonEventModifierState :: MonadIO m => ButtonEvent -> m [ModifierType] Source #

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

get buttonEvent #modifierState

setButtonEventModifierState :: MonadIO m => ButtonEvent -> [ModifierType] -> m () Source #

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

set buttonEvent [ #modifierState := value ]

source

event source actor

clearButtonEventSource :: MonadIO m => ButtonEvent -> m () Source #

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

clear #source

getButtonEventSource :: MonadIO m => ButtonEvent -> m (Maybe Actor) Source #

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

get buttonEvent #source

setButtonEventSource :: MonadIO m => ButtonEvent -> Ptr Actor -> m () Source #

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

set buttonEvent [ #source := value ]

stage

event source stage

clearButtonEventStage :: MonadIO m => ButtonEvent -> m () Source #

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

clear #stage

getButtonEventStage :: MonadIO m => ButtonEvent -> m (Maybe Stage) Source #

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

get buttonEvent #stage

setButtonEventStage :: MonadIO m => ButtonEvent -> Ptr Stage -> m () Source #

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

set buttonEvent [ #stage := value ]

time

event time

getButtonEventTime :: MonadIO m => ButtonEvent -> m Word32 Source #

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

get buttonEvent #time

setButtonEventTime :: MonadIO m => ButtonEvent -> Word32 -> m () Source #

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

set buttonEvent [ #time := value ]

type

event type

getButtonEventType :: MonadIO m => ButtonEvent -> m EventType Source #

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

get buttonEvent #type

setButtonEventType :: MonadIO m => ButtonEvent -> EventType -> m () Source #

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

set buttonEvent [ #type := value ]

x

event X coordinate, relative to the stage

getButtonEventX :: MonadIO m => ButtonEvent -> m Float Source #

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

get buttonEvent #x

setButtonEventX :: MonadIO m => ButtonEvent -> Float -> m () Source #

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

set buttonEvent [ #x := value ]

y

event Y coordinate, relative to the stage

getButtonEventY :: MonadIO m => ButtonEvent -> m Float Source #

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

get buttonEvent #y

setButtonEventY :: MonadIO m => ButtonEvent -> Float -> m () Source #

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

set buttonEvent [ #y := value ]