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

Description

Scroll wheel (or similar device) event

Since: 0.2

Synopsis

Exported types

newtype ScrollEvent Source #

Memory-managed wrapper type.

Constructors

ScrollEvent (ManagedPtr ScrollEvent) 

Instances

Instances details
Eq ScrollEvent Source # 
Instance details

Defined in GI.Clutter.Structs.ScrollEvent

BoxedPtr ScrollEvent Source # 
Instance details

Defined in GI.Clutter.Structs.ScrollEvent

CallocPtr ScrollEvent Source # 
Instance details

Defined in GI.Clutter.Structs.ScrollEvent

ManagedPtrNewtype ScrollEvent Source # 
Instance details

Defined in GI.Clutter.Structs.ScrollEvent

Methods

toManagedPtr :: ScrollEvent -> ManagedPtr ScrollEvent

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

Defined in GI.Clutter.Structs.ScrollEvent

Methods

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

newZeroScrollEvent :: MonadIO m => m ScrollEvent Source #

Construct a ScrollEvent struct initialized to zero.

Methods

Properties

axes

reserved for future use

getScrollEventAxes :: MonadIO m => ScrollEvent -> m Double Source #

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

get scrollEvent #axes

setScrollEventAxes :: MonadIO m => ScrollEvent -> Double -> m () Source #

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

set scrollEvent [ #axes := value ]

device

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

clearScrollEventDevice :: MonadIO m => ScrollEvent -> m () Source #

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

clear #device

getScrollEventDevice :: MonadIO m => ScrollEvent -> m (Maybe InputDevice) Source #

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

get scrollEvent #device

setScrollEventDevice :: MonadIO m => ScrollEvent -> Ptr InputDevice -> m () Source #

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

set scrollEvent [ #device := value ]

direction

direction of the scrolling

getScrollEventDirection :: MonadIO m => ScrollEvent -> m ScrollDirection Source #

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

get scrollEvent #direction

setScrollEventDirection :: MonadIO m => ScrollEvent -> ScrollDirection -> m () Source #

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

set scrollEvent [ #direction := value ]

finishFlags

the axes that were stopped in this event. This field is available since 1.26

getScrollEventFinishFlags :: MonadIO m => ScrollEvent -> m [ScrollFinishFlags] Source #

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

get scrollEvent #finishFlags

setScrollEventFinishFlags :: MonadIO m => ScrollEvent -> [ScrollFinishFlags] -> m () Source #

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

set scrollEvent [ #finishFlags := value ]

flags

event flags

getScrollEventFlags :: MonadIO m => ScrollEvent -> m [EventFlags] Source #

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

get scrollEvent #flags

setScrollEventFlags :: MonadIO m => ScrollEvent -> [EventFlags] -> m () Source #

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

set scrollEvent [ #flags := value ]

modifierState

button modifiers

getScrollEventModifierState :: MonadIO m => ScrollEvent -> m [ModifierType] Source #

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

get scrollEvent #modifierState

setScrollEventModifierState :: MonadIO m => ScrollEvent -> [ModifierType] -> m () Source #

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

set scrollEvent [ #modifierState := value ]

scrollSource

the source of scroll events. This field is available since 1.26

getScrollEventScrollSource :: MonadIO m => ScrollEvent -> m ScrollSource Source #

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

get scrollEvent #scrollSource

setScrollEventScrollSource :: MonadIO m => ScrollEvent -> ScrollSource -> m () Source #

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

set scrollEvent [ #scrollSource := value ]

source

event source actor

clearScrollEventSource :: MonadIO m => ScrollEvent -> m () Source #

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

clear #source

getScrollEventSource :: MonadIO m => ScrollEvent -> m (Maybe Actor) Source #

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

get scrollEvent #source

setScrollEventSource :: MonadIO m => ScrollEvent -> Ptr Actor -> m () Source #

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

set scrollEvent [ #source := value ]

stage

event source stage

clearScrollEventStage :: MonadIO m => ScrollEvent -> m () Source #

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

clear #stage

getScrollEventStage :: MonadIO m => ScrollEvent -> m (Maybe Stage) Source #

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

get scrollEvent #stage

setScrollEventStage :: MonadIO m => ScrollEvent -> Ptr Stage -> m () Source #

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

set scrollEvent [ #stage := value ]

time

event time

getScrollEventTime :: MonadIO m => ScrollEvent -> m Word32 Source #

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

get scrollEvent #time

setScrollEventTime :: MonadIO m => ScrollEvent -> Word32 -> m () Source #

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

set scrollEvent [ #time := value ]

type

event type

getScrollEventType :: MonadIO m => ScrollEvent -> m EventType Source #

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

get scrollEvent #type

setScrollEventType :: MonadIO m => ScrollEvent -> EventType -> m () Source #

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

set scrollEvent [ #type := value ]

x

event X coordinate

getScrollEventX :: MonadIO m => ScrollEvent -> m Float Source #

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

get scrollEvent #x

setScrollEventX :: MonadIO m => ScrollEvent -> Float -> m () Source #

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

set scrollEvent [ #x := value ]

y

event Y coordinate

getScrollEventY :: MonadIO m => ScrollEvent -> m Float Source #

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

get scrollEvent #y

setScrollEventY :: MonadIO m => ScrollEvent -> Float -> m () Source #

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

set scrollEvent [ #y := value ]