| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Clutter.Structs.ScrollEvent
Description
Scroll wheel (or similar device) event
Since: 0.2
Synopsis
- newtype ScrollEvent = ScrollEvent (ManagedPtr ScrollEvent)
- newZeroScrollEvent :: MonadIO m => m ScrollEvent
- getScrollEventAxes :: MonadIO m => ScrollEvent -> m Double
- setScrollEventAxes :: MonadIO m => ScrollEvent -> Double -> m ()
- clearScrollEventDevice :: MonadIO m => ScrollEvent -> m ()
- getScrollEventDevice :: MonadIO m => ScrollEvent -> m (Maybe InputDevice)
- setScrollEventDevice :: MonadIO m => ScrollEvent -> Ptr InputDevice -> m ()
- getScrollEventDirection :: MonadIO m => ScrollEvent -> m ScrollDirection
- setScrollEventDirection :: MonadIO m => ScrollEvent -> ScrollDirection -> m ()
- getScrollEventFinishFlags :: MonadIO m => ScrollEvent -> m [ScrollFinishFlags]
- setScrollEventFinishFlags :: MonadIO m => ScrollEvent -> [ScrollFinishFlags] -> m ()
- getScrollEventFlags :: MonadIO m => ScrollEvent -> m [EventFlags]
- setScrollEventFlags :: MonadIO m => ScrollEvent -> [EventFlags] -> m ()
- getScrollEventModifierState :: MonadIO m => ScrollEvent -> m [ModifierType]
- setScrollEventModifierState :: MonadIO m => ScrollEvent -> [ModifierType] -> m ()
- getScrollEventScrollSource :: MonadIO m => ScrollEvent -> m ScrollSource
- setScrollEventScrollSource :: MonadIO m => ScrollEvent -> ScrollSource -> m ()
- clearScrollEventSource :: MonadIO m => ScrollEvent -> m ()
- getScrollEventSource :: MonadIO m => ScrollEvent -> m (Maybe Actor)
- setScrollEventSource :: MonadIO m => ScrollEvent -> Ptr Actor -> m ()
- clearScrollEventStage :: MonadIO m => ScrollEvent -> m ()
- getScrollEventStage :: MonadIO m => ScrollEvent -> m (Maybe Stage)
- setScrollEventStage :: MonadIO m => ScrollEvent -> Ptr Stage -> m ()
- getScrollEventTime :: MonadIO m => ScrollEvent -> m Word32
- setScrollEventTime :: MonadIO m => ScrollEvent -> Word32 -> m ()
- getScrollEventType :: MonadIO m => ScrollEvent -> m EventType
- setScrollEventType :: MonadIO m => ScrollEvent -> EventType -> m ()
- getScrollEventX :: MonadIO m => ScrollEvent -> m Float
- setScrollEventX :: MonadIO m => ScrollEvent -> Float -> m ()
- getScrollEventY :: MonadIO m => ScrollEvent -> m Float
- setScrollEventY :: MonadIO m => ScrollEvent -> Float -> m ()
Exported types
newtype ScrollEvent Source #
Memory-managed wrapper type.
Constructors
| ScrollEvent (ManagedPtr ScrollEvent) |
Instances
| Eq ScrollEvent Source # | |
Defined in GI.Clutter.Structs.ScrollEvent | |
| BoxedPtr ScrollEvent Source # | |
Defined in GI.Clutter.Structs.ScrollEvent | |
| CallocPtr ScrollEvent Source # | |
Defined in GI.Clutter.Structs.ScrollEvent Methods boxedPtrCalloc :: IO (Ptr ScrollEvent) | |
| ManagedPtrNewtype ScrollEvent Source # | |
Defined in GI.Clutter.Structs.ScrollEvent Methods toManagedPtr :: ScrollEvent -> ManagedPtr ScrollEvent | |
| tag ~ 'AttrSet => Constructible ScrollEvent tag Source # | |
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
setscrollEvent [ #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
setscrollEvent [ #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
setscrollEvent [ #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
setscrollEvent [ #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
setscrollEvent [ #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
setscrollEvent [ #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
setscrollEvent [ #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
setscrollEvent [ #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
setscrollEvent [ #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
setscrollEvent [ #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
setscrollEvent [ #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
setscrollEvent [ #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
setscrollEvent [ #y:=value ]