gi-gtk-3.0.13: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.GesturePan

Contents

Description

GesturePan is a Gesture implementation able to recognize pan gestures, those are drags that are locked to happen along one axis. The axis that a GesturePan handles is defined at construct time, and can be changed through gesturePanSetOrientation.

When the gesture starts to be recognized, GesturePan will attempt to determine as early as possible whether the sequence is moving in the expected direction, and denying the sequence if this does not happen.

Once a panning gesture along the expected axis is recognized, the GesturePan::pan signal will be emitted as input events are received, containing the offset in the given axis.

Synopsis

Exported types

Methods

getOrientation

gesturePanGetOrientation Source #

Arguments

:: (HasCallStack, MonadIO m, IsGesturePan a) 
=> a

gesture: A GesturePan

-> m Orientation

Returns: the expected orientation for pan gestures

Returns the orientation of the pan gestures that this gesture expects.

Since: 3.14

new

gesturePanNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsWidget a) 
=> a

widget: a Widget

-> Orientation

orientation: expected orientation

-> m GesturePan

Returns: a newly created GesturePan

Returns a newly created Gesture that recognizes pan gestures.

Since: 3.14

setOrientation

gesturePanSetOrientation Source #

Arguments

:: (HasCallStack, MonadIO m, IsGesturePan a) 
=> a

gesture: A GesturePan

-> Orientation

orientation: expected orientation

-> m () 

Sets the orientation to be expected on pan gestures.

Since: 3.14

Properties

orientation

data GesturePanOrientationPropertyInfo Source #

Instances

AttrInfo GesturePanOrientationPropertyInfo Source # 
type AttrOrigin GesturePanOrientationPropertyInfo Source # 
type AttrLabel GesturePanOrientationPropertyInfo Source # 
type AttrGetType GesturePanOrientationPropertyInfo Source # 
type AttrBaseTypeConstraint GesturePanOrientationPropertyInfo Source # 
type AttrSetTypeConstraint GesturePanOrientationPropertyInfo Source # 
type AttrAllowedOps GesturePanOrientationPropertyInfo Source # 

Signals

pan

type C_GesturePanPanCallback = Ptr () -> CUInt -> CDouble -> Ptr () -> IO () Source #