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.Objects.RotateAction

Description

The RotateAction structure contains only private data and should be accessed using the provided API

Since: 1.12

Synopsis

Exported types

newtype RotateAction Source #

Memory-managed wrapper type.

Constructors

RotateAction (ManagedPtr RotateAction) 

Instances

Instances details
Eq RotateAction Source # 
Instance details

Defined in GI.Clutter.Objects.RotateAction

GObject RotateAction Source # 
Instance details

Defined in GI.Clutter.Objects.RotateAction

ManagedPtrNewtype RotateAction Source # 
Instance details

Defined in GI.Clutter.Objects.RotateAction

Methods

toManagedPtr :: RotateAction -> ManagedPtr RotateAction

TypedObject RotateAction Source # 
Instance details

Defined in GI.Clutter.Objects.RotateAction

Methods

glibType :: IO GType

HasParentTypes RotateAction Source # 
Instance details

Defined in GI.Clutter.Objects.RotateAction

IsGValue (Maybe RotateAction) Source #

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

Instance details

Defined in GI.Clutter.Objects.RotateAction

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes RotateAction Source # 
Instance details

Defined in GI.Clutter.Objects.RotateAction

type ParentTypes RotateAction = '[GestureAction, Action, ActorMeta, Object]

class (GObject o, IsDescendantOf RotateAction o) => IsRotateAction o Source #

Type class for types which can be safely cast to RotateAction, for instance with toRotateAction.

Instances

Instances details
(GObject o, IsDescendantOf RotateAction o) => IsRotateAction o Source # 
Instance details

Defined in GI.Clutter.Objects.RotateAction

toRotateAction :: (MonadIO m, IsRotateAction o) => o -> m RotateAction Source #

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

Methods

new

rotateActionNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m RotateAction

Returns: the newly created RotateAction

Creates a new RotateAction instance

Since: 1.12

Signals

rotate

type RotateActionRotateCallback Source #

Arguments

 = Actor

actor: the Actor attached to the action

-> Double

angle: the difference of angle of rotation between the initial rotation and the current rotation

-> IO Bool

Returns: True if the rotation should continue, and False if the rotation should be cancelled.

The rotate signal is emitted when a rotate gesture is recognized on the attached actor and when the gesture is cancelled (in this case with an angle value of 0).

Since: 1.12

afterRotateActionRotate :: (IsRotateAction a, MonadIO m) => a -> ((?self :: a) => RotateActionRotateCallback) -> m SignalHandlerId Source #

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

after rotateAction #rotate 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.

onRotateActionRotate :: (IsRotateAction a, MonadIO m) => a -> ((?self :: a) => RotateActionRotateCallback) -> m SignalHandlerId Source #

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

on rotateAction #rotate callback