gi-gtk-3.0.41: Gtk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Objects.GestureLongPress

Description

GestureLongPress is a Gesture implementation able to recognize long presses, triggering the GestureLongPress::pressed after the timeout is exceeded.

If the touchpoint is lifted before the timeout passes, or if it drifts too far of the initial press point, the GestureLongPress::cancelled signal will be emitted.

Synopsis

Exported types

newtype GestureLongPress Source #

Memory-managed wrapper type.

Constructors

GestureLongPress (ManagedPtr GestureLongPress) 

Instances

Instances details
Eq GestureLongPress Source # 
Instance details

Defined in GI.Gtk.Objects.GestureLongPress

GObject GestureLongPress Source # 
Instance details

Defined in GI.Gtk.Objects.GestureLongPress

ManagedPtrNewtype GestureLongPress Source # 
Instance details

Defined in GI.Gtk.Objects.GestureLongPress

TypedObject GestureLongPress Source # 
Instance details

Defined in GI.Gtk.Objects.GestureLongPress

Methods

glibType :: IO GType

HasParentTypes GestureLongPress Source # 
Instance details

Defined in GI.Gtk.Objects.GestureLongPress

IsGValue (Maybe GestureLongPress) Source #

Convert GestureLongPress to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.GestureLongPress

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe GestureLongPress -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe GestureLongPress)

type ParentTypes GestureLongPress Source # 
Instance details

Defined in GI.Gtk.Objects.GestureLongPress

type ParentTypes GestureLongPress = '[GestureSingle, Gesture, EventController, Object]

class (GObject o, IsDescendantOf GestureLongPress o) => IsGestureLongPress o Source #

Type class for types which can be safely cast to GestureLongPress, for instance with toGestureLongPress.

Instances

Instances details
(GObject o, IsDescendantOf GestureLongPress o) => IsGestureLongPress o Source # 
Instance details

Defined in GI.Gtk.Objects.GestureLongPress

toGestureLongPress :: (MonadIO m, IsGestureLongPress o) => o -> m GestureLongPress Source #

Cast to GestureLongPress, for types for which this is known to be safe. For general casts, use castTo.

Methods

new

gestureLongPressNew Source #

Arguments

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

widget: a Widget

-> m GestureLongPress

Returns: a newly created GestureLongPress

Returns a newly created Gesture that recognizes long presses.

Since: 3.14

Properties

delayFactor

No description available in the introspection data.

constructGestureLongPressDelayFactor :: (IsGestureLongPress o, MonadIO m) => Double -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “delay-factor” property. This is rarely needed directly, but it is used by new.

getGestureLongPressDelayFactor :: (MonadIO m, IsGestureLongPress o) => o -> m Double Source #

Get the value of the “delay-factor” property. When overloading is enabled, this is equivalent to

get gestureLongPress #delayFactor

setGestureLongPressDelayFactor :: (MonadIO m, IsGestureLongPress o) => o -> Double -> m () Source #

Set the value of the “delay-factor” property. When overloading is enabled, this is equivalent to

set gestureLongPress [ #delayFactor := value ]

Signals

cancelled

type GestureLongPressCancelledCallback = IO () Source #

This signal is emitted whenever a press moved too far, or was released before GestureLongPress::pressed happened.

Since: 3.14

afterGestureLongPressCancelled :: (IsGestureLongPress a, MonadIO m) => a -> ((?self :: a) => GestureLongPressCancelledCallback) -> m SignalHandlerId Source #

Connect a signal handler for the cancelled signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after gestureLongPress #cancelled callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onGestureLongPressCancelled :: (IsGestureLongPress a, MonadIO m) => a -> ((?self :: a) => GestureLongPressCancelledCallback) -> m SignalHandlerId Source #

Connect a signal handler for the cancelled signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on gestureLongPress #cancelled callback

pressed

type GestureLongPressPressedCallback Source #

Arguments

 = Double

x: the X coordinate where the press happened, relative to the widget allocation

-> Double

y: the Y coordinate where the press happened, relative to the widget allocation

-> IO () 

This signal is emitted whenever a press goes unmoved/unreleased longer than what the GTK+ defaults tell.

Since: 3.14

afterGestureLongPressPressed :: (IsGestureLongPress a, MonadIO m) => a -> ((?self :: a) => GestureLongPressPressedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the pressed signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after gestureLongPress #pressed callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onGestureLongPressPressed :: (IsGestureLongPress a, MonadIO m) => a -> ((?self :: a) => GestureLongPressPressedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the pressed signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on gestureLongPress #pressed callback