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 |
The BehaviourRotate
struct contains only private data and
should be accessed using the provided API
Since: 0.4
Synopsis
- newtype BehaviourRotate = BehaviourRotate (ManagedPtr BehaviourRotate)
- class (GObject o, IsDescendantOf BehaviourRotate o) => IsBehaviourRotate o
- toBehaviourRotate :: (MonadIO m, IsBehaviourRotate o) => o -> m BehaviourRotate
- behaviourRotateGetAxis :: (HasCallStack, MonadIO m, IsBehaviourRotate a) => a -> m RotateAxis
- behaviourRotateGetBounds :: (HasCallStack, MonadIO m, IsBehaviourRotate a) => a -> m (Double, Double)
- behaviourRotateGetCenter :: (HasCallStack, MonadIO m, IsBehaviourRotate a) => a -> m (Int32, Int32, Int32)
- behaviourRotateGetDirection :: (HasCallStack, MonadIO m, IsBehaviourRotate a) => a -> m RotateDirection
- behaviourRotateNew :: (HasCallStack, MonadIO m, IsAlpha a) => Maybe a -> RotateAxis -> RotateDirection -> Double -> Double -> m BehaviourRotate
- behaviourRotateSetAxis :: (HasCallStack, MonadIO m, IsBehaviourRotate a) => a -> RotateAxis -> m ()
- behaviourRotateSetBounds :: (HasCallStack, MonadIO m, IsBehaviourRotate a) => a -> Double -> Double -> m ()
- behaviourRotateSetCenter :: (HasCallStack, MonadIO m, IsBehaviourRotate a) => a -> Int32 -> Int32 -> Int32 -> m ()
- behaviourRotateSetDirection :: (HasCallStack, MonadIO m, IsBehaviourRotate a) => a -> RotateDirection -> m ()
- constructBehaviourRotateAngleEnd :: (IsBehaviourRotate o, MonadIO m) => Double -> m (GValueConstruct o)
- getBehaviourRotateAngleEnd :: (MonadIO m, IsBehaviourRotate o) => o -> m Double
- setBehaviourRotateAngleEnd :: (MonadIO m, IsBehaviourRotate o) => o -> Double -> m ()
- constructBehaviourRotateAngleStart :: (IsBehaviourRotate o, MonadIO m) => Double -> m (GValueConstruct o)
- getBehaviourRotateAngleStart :: (MonadIO m, IsBehaviourRotate o) => o -> m Double
- setBehaviourRotateAngleStart :: (MonadIO m, IsBehaviourRotate o) => o -> Double -> m ()
- constructBehaviourRotateAxis :: (IsBehaviourRotate o, MonadIO m) => RotateAxis -> m (GValueConstruct o)
- getBehaviourRotateAxis :: (MonadIO m, IsBehaviourRotate o) => o -> m RotateAxis
- setBehaviourRotateAxis :: (MonadIO m, IsBehaviourRotate o) => o -> RotateAxis -> m ()
- constructBehaviourRotateCenterX :: (IsBehaviourRotate o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getBehaviourRotateCenterX :: (MonadIO m, IsBehaviourRotate o) => o -> m Int32
- setBehaviourRotateCenterX :: (MonadIO m, IsBehaviourRotate o) => o -> Int32 -> m ()
- constructBehaviourRotateCenterY :: (IsBehaviourRotate o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getBehaviourRotateCenterY :: (MonadIO m, IsBehaviourRotate o) => o -> m Int32
- setBehaviourRotateCenterY :: (MonadIO m, IsBehaviourRotate o) => o -> Int32 -> m ()
- constructBehaviourRotateCenterZ :: (IsBehaviourRotate o, MonadIO m) => Int32 -> m (GValueConstruct o)
- getBehaviourRotateCenterZ :: (MonadIO m, IsBehaviourRotate o) => o -> m Int32
- setBehaviourRotateCenterZ :: (MonadIO m, IsBehaviourRotate o) => o -> Int32 -> m ()
- constructBehaviourRotateDirection :: (IsBehaviourRotate o, MonadIO m) => RotateDirection -> m (GValueConstruct o)
- getBehaviourRotateDirection :: (MonadIO m, IsBehaviourRotate o) => o -> m RotateDirection
- setBehaviourRotateDirection :: (MonadIO m, IsBehaviourRotate o) => o -> RotateDirection -> m ()
Exported types
newtype BehaviourRotate Source #
Memory-managed wrapper type.
BehaviourRotate (ManagedPtr BehaviourRotate) |
Instances
Eq BehaviourRotate Source # | |
Defined in GI.Clutter.Objects.BehaviourRotate (==) :: BehaviourRotate -> BehaviourRotate -> Bool # (/=) :: BehaviourRotate -> BehaviourRotate -> Bool # | |
GObject BehaviourRotate Source # | |
Defined in GI.Clutter.Objects.BehaviourRotate | |
ManagedPtrNewtype BehaviourRotate Source # | |
Defined in GI.Clutter.Objects.BehaviourRotate toManagedPtr :: BehaviourRotate -> ManagedPtr BehaviourRotate | |
TypedObject BehaviourRotate Source # | |
Defined in GI.Clutter.Objects.BehaviourRotate | |
HasParentTypes BehaviourRotate Source # | |
Defined in GI.Clutter.Objects.BehaviourRotate | |
IsGValue (Maybe BehaviourRotate) Source # | Convert |
Defined in GI.Clutter.Objects.BehaviourRotate gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe BehaviourRotate -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe BehaviourRotate) | |
type ParentTypes BehaviourRotate Source # | |
Defined in GI.Clutter.Objects.BehaviourRotate |
class (GObject o, IsDescendantOf BehaviourRotate o) => IsBehaviourRotate o Source #
Type class for types which can be safely cast to BehaviourRotate
, for instance with toBehaviourRotate
.
Instances
(GObject o, IsDescendantOf BehaviourRotate o) => IsBehaviourRotate o Source # | |
Defined in GI.Clutter.Objects.BehaviourRotate |
toBehaviourRotate :: (MonadIO m, IsBehaviourRotate o) => o -> m BehaviourRotate Source #
Cast to BehaviourRotate
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
actorsForeach, apply, bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isApplied, isFloating, notify, notifyByPspec, parseCustomNode, ref, refSink, remove, removeAll, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getActors, getAlpha, getAxis, getBounds, getCenter, getData, getDirection, getId, getNActors, getNthActor, getProperty, getQdata.
Setters
setAlpha, setAxis, setBounds, setCenter, setCustomProperty, setData, setDataFull, setDirection, setId, setProperty.
getAxis
behaviourRotateGetAxis Source #
:: (HasCallStack, MonadIO m, IsBehaviourRotate a) | |
=> a |
|
-> m RotateAxis | Returns: the rotation axis |
Retrieves the RotateAxis
used by the rotate behaviour.
Since: 0.4
getBounds
behaviourRotateGetBounds Source #
:: (HasCallStack, MonadIO m, IsBehaviourRotate a) | |
=> a |
|
-> m (Double, Double) |
Retrieves the rotation boundaries of the rotate behaviour.
Since: 0.4
getCenter
behaviourRotateGetCenter Source #
:: (HasCallStack, MonadIO m, IsBehaviourRotate a) | |
=> a |
|
-> m (Int32, Int32, Int32) |
Retrieves the center of rotation set using
behaviourRotateSetCenter
.
Since: 0.4
getDirection
behaviourRotateGetDirection Source #
:: (HasCallStack, MonadIO m, IsBehaviourRotate a) | |
=> a |
|
-> m RotateDirection | Returns: the rotation direction |
Retrieves the RotateDirection
used by the rotate behaviour.
Since: 0.4
new
:: (HasCallStack, MonadIO m, IsAlpha a) | |
=> Maybe a | |
-> RotateAxis |
|
-> RotateDirection |
|
-> Double |
|
-> Double |
|
-> m BehaviourRotate | Returns: the newly created |
Creates a new BehaviourRotate
. This behaviour will rotate actors
bound to it on axis
, following direction
, between angleStart
and
angleEnd
. Angles >= 360 degrees will be clamped to the canonical interval
<0, 360), if angle_start == angle_end, the behaviour will carry out a
single rotation of 360 degrees.
If alpha
is not Nothing
, the Behaviour
will take ownership
of the Alpha
instance. In the case when alpha
is Nothing
,
it can be set later with behaviourSetAlpha
.
Since: 0.4
setAxis
behaviourRotateSetAxis Source #
:: (HasCallStack, MonadIO m, IsBehaviourRotate a) | |
=> a |
|
-> RotateAxis |
|
-> m () |
Sets the axis used by the rotate behaviour.
Since: 0.4
setBounds
behaviourRotateSetBounds Source #
:: (HasCallStack, MonadIO m, IsBehaviourRotate a) | |
=> a |
|
-> Double |
|
-> Double |
|
-> m () |
Sets the initial and final angles of a rotation behaviour; angles >= 360 degrees get clamped to the canonical interval <0, 360).
Since: 0.4
setCenter
behaviourRotateSetCenter Source #
:: (HasCallStack, MonadIO m, IsBehaviourRotate a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Sets the center of rotation. The coordinates are relative to the plane
normal to the rotation axis set with behaviourRotateSetAxis
.
Since: 0.4
setDirection
behaviourRotateSetDirection Source #
:: (HasCallStack, MonadIO m, IsBehaviourRotate a) | |
=> a |
|
-> RotateDirection |
|
-> m () |
Sets the rotation direction used by the rotate behaviour.
Since: 0.4
Properties
angleEnd
The final angle to where the rotation should end.
Since: 0.4
constructBehaviourRotateAngleEnd :: (IsBehaviourRotate o, MonadIO m) => Double -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “angle-end
” property. This is rarely needed directly, but it is used by new
.
getBehaviourRotateAngleEnd :: (MonadIO m, IsBehaviourRotate o) => o -> m Double Source #
Get the value of the “angle-end
” property.
When overloading is enabled, this is equivalent to
get
behaviourRotate #angleEnd
setBehaviourRotateAngleEnd :: (MonadIO m, IsBehaviourRotate o) => o -> Double -> m () Source #
Set the value of the “angle-end
” property.
When overloading is enabled, this is equivalent to
set
behaviourRotate [ #angleEnd:=
value ]
angleStart
The initial angle from whence the rotation should start.
Since: 0.4
constructBehaviourRotateAngleStart :: (IsBehaviourRotate o, MonadIO m) => Double -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “angle-start
” property. This is rarely needed directly, but it is used by new
.
getBehaviourRotateAngleStart :: (MonadIO m, IsBehaviourRotate o) => o -> m Double Source #
Get the value of the “angle-start
” property.
When overloading is enabled, this is equivalent to
get
behaviourRotate #angleStart
setBehaviourRotateAngleStart :: (MonadIO m, IsBehaviourRotate o) => o -> Double -> m () Source #
Set the value of the “angle-start
” property.
When overloading is enabled, this is equivalent to
set
behaviourRotate [ #angleStart:=
value ]
axis
The axis of rotation.
Since: 0.4
constructBehaviourRotateAxis :: (IsBehaviourRotate o, MonadIO m) => RotateAxis -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “axis
” property. This is rarely needed directly, but it is used by new
.
getBehaviourRotateAxis :: (MonadIO m, IsBehaviourRotate o) => o -> m RotateAxis Source #
Get the value of the “axis
” property.
When overloading is enabled, this is equivalent to
get
behaviourRotate #axis
setBehaviourRotateAxis :: (MonadIO m, IsBehaviourRotate o) => o -> RotateAxis -> m () Source #
Set the value of the “axis
” property.
When overloading is enabled, this is equivalent to
set
behaviourRotate [ #axis:=
value ]
centerX
The x center of rotation.
Since: 0.4
constructBehaviourRotateCenterX :: (IsBehaviourRotate o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “center-x
” property. This is rarely needed directly, but it is used by new
.
getBehaviourRotateCenterX :: (MonadIO m, IsBehaviourRotate o) => o -> m Int32 Source #
Get the value of the “center-x
” property.
When overloading is enabled, this is equivalent to
get
behaviourRotate #centerX
setBehaviourRotateCenterX :: (MonadIO m, IsBehaviourRotate o) => o -> Int32 -> m () Source #
Set the value of the “center-x
” property.
When overloading is enabled, this is equivalent to
set
behaviourRotate [ #centerX:=
value ]
centerY
The y center of rotation.
Since: 0.4
constructBehaviourRotateCenterY :: (IsBehaviourRotate o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “center-y
” property. This is rarely needed directly, but it is used by new
.
getBehaviourRotateCenterY :: (MonadIO m, IsBehaviourRotate o) => o -> m Int32 Source #
Get the value of the “center-y
” property.
When overloading is enabled, this is equivalent to
get
behaviourRotate #centerY
setBehaviourRotateCenterY :: (MonadIO m, IsBehaviourRotate o) => o -> Int32 -> m () Source #
Set the value of the “center-y
” property.
When overloading is enabled, this is equivalent to
set
behaviourRotate [ #centerY:=
value ]
centerZ
The z center of rotation.
Since: 0.4
constructBehaviourRotateCenterZ :: (IsBehaviourRotate o, MonadIO m) => Int32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “center-z
” property. This is rarely needed directly, but it is used by new
.
getBehaviourRotateCenterZ :: (MonadIO m, IsBehaviourRotate o) => o -> m Int32 Source #
Get the value of the “center-z
” property.
When overloading is enabled, this is equivalent to
get
behaviourRotate #centerZ
setBehaviourRotateCenterZ :: (MonadIO m, IsBehaviourRotate o) => o -> Int32 -> m () Source #
Set the value of the “center-z
” property.
When overloading is enabled, this is equivalent to
set
behaviourRotate [ #centerZ:=
value ]
direction
The direction of the rotation.
Since: 0.4
constructBehaviourRotateDirection :: (IsBehaviourRotate o, MonadIO m) => RotateDirection -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “direction
” property. This is rarely needed directly, but it is used by new
.
getBehaviourRotateDirection :: (MonadIO m, IsBehaviourRotate o) => o -> m RotateDirection Source #
Get the value of the “direction
” property.
When overloading is enabled, this is equivalent to
get
behaviourRotate #direction
setBehaviourRotateDirection :: (MonadIO m, IsBehaviourRotate o) => o -> RotateDirection -> m () Source #
Set the value of the “direction
” property.
When overloading is enabled, this is equivalent to
set
behaviourRotate [ #direction:=
value ]