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.BehaviourScale

Description

The BehaviourScale struct contains only private data and should be accessed using the provided API

Since: 0.2

Synopsis

Exported types

newtype BehaviourScale Source #

Memory-managed wrapper type.

Constructors

BehaviourScale (ManagedPtr BehaviourScale) 

Instances

Instances details
Eq BehaviourScale Source # 
Instance details

Defined in GI.Clutter.Objects.BehaviourScale

GObject BehaviourScale Source # 
Instance details

Defined in GI.Clutter.Objects.BehaviourScale

ManagedPtrNewtype BehaviourScale Source # 
Instance details

Defined in GI.Clutter.Objects.BehaviourScale

TypedObject BehaviourScale Source # 
Instance details

Defined in GI.Clutter.Objects.BehaviourScale

Methods

glibType :: IO GType

HasParentTypes BehaviourScale Source # 
Instance details

Defined in GI.Clutter.Objects.BehaviourScale

IsGValue (Maybe BehaviourScale) Source #

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

Instance details

Defined in GI.Clutter.Objects.BehaviourScale

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes BehaviourScale Source # 
Instance details

Defined in GI.Clutter.Objects.BehaviourScale

type ParentTypes BehaviourScale = '[Behaviour, Object, Scriptable]

class (GObject o, IsDescendantOf BehaviourScale o) => IsBehaviourScale o Source #

Type class for types which can be safely cast to BehaviourScale, for instance with toBehaviourScale.

Instances

Instances details
(GObject o, IsDescendantOf BehaviourScale o) => IsBehaviourScale o Source # 
Instance details

Defined in GI.Clutter.Objects.BehaviourScale

toBehaviourScale :: (MonadIO m, IsBehaviourScale o) => o -> m BehaviourScale Source #

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

Methods

getBounds

behaviourScaleGetBounds Source #

Arguments

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

scale: a BehaviourScale

-> m (Double, Double, Double, Double) 

Deprecated: (Since version 1.6)

Retrieves the bounds used by scale behaviour.

Since: 0.4

new

behaviourScaleNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsAlpha a) 
=> Maybe a

alpha: a Alpha instance, or Nothing

-> Double

xScaleStart: initial scale factor on the X axis

-> Double

yScaleStart: initial scale factor on the Y axis

-> Double

xScaleEnd: final scale factor on the X axis

-> Double

yScaleEnd: final scale factor on the Y axis

-> m BehaviourScale

Returns: the newly created BehaviourScale

Deprecated: (Since version 1.6)

Creates a new BehaviourScale instance.

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.2

setBounds

behaviourScaleSetBounds Source #

Arguments

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

scale: a BehaviourScale

-> Double

xScaleStart: initial scale factor on the X axis

-> Double

yScaleStart: initial scale factor on the Y axis

-> Double

xScaleEnd: final scale factor on the X axis

-> Double

yScaleEnd: final scale factor on the Y axis

-> m () 

Deprecated: (Since version 1.6)

Sets the bounds used by scale behaviour.

Since: 0.6

Properties

xScaleEnd

The final scaling factor on the X axis for the actors.

Since: 0.6

constructBehaviourScaleXScaleEnd :: (IsBehaviourScale o, MonadIO m) => Double -> m (GValueConstruct o) Source #

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

getBehaviourScaleXScaleEnd :: (MonadIO m, IsBehaviourScale o) => o -> m Double Source #

Get the value of the “x-scale-end” property. When overloading is enabled, this is equivalent to

get behaviourScale #xScaleEnd

setBehaviourScaleXScaleEnd :: (MonadIO m, IsBehaviourScale o) => o -> Double -> m () Source #

Set the value of the “x-scale-end” property. When overloading is enabled, this is equivalent to

set behaviourScale [ #xScaleEnd := value ]

xScaleStart

The initial scaling factor on the X axis for the actors.

Since: 0.6

constructBehaviourScaleXScaleStart :: (IsBehaviourScale o, MonadIO m) => Double -> m (GValueConstruct o) Source #

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

getBehaviourScaleXScaleStart :: (MonadIO m, IsBehaviourScale o) => o -> m Double Source #

Get the value of the “x-scale-start” property. When overloading is enabled, this is equivalent to

get behaviourScale #xScaleStart

setBehaviourScaleXScaleStart :: (MonadIO m, IsBehaviourScale o) => o -> Double -> m () Source #

Set the value of the “x-scale-start” property. When overloading is enabled, this is equivalent to

set behaviourScale [ #xScaleStart := value ]

yScaleEnd

The final scaling factor on the Y axis for the actors.

Since: 0.6

constructBehaviourScaleYScaleEnd :: (IsBehaviourScale o, MonadIO m) => Double -> m (GValueConstruct o) Source #

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

getBehaviourScaleYScaleEnd :: (MonadIO m, IsBehaviourScale o) => o -> m Double Source #

Get the value of the “y-scale-end” property. When overloading is enabled, this is equivalent to

get behaviourScale #yScaleEnd

setBehaviourScaleYScaleEnd :: (MonadIO m, IsBehaviourScale o) => o -> Double -> m () Source #

Set the value of the “y-scale-end” property. When overloading is enabled, this is equivalent to

set behaviourScale [ #yScaleEnd := value ]

yScaleStart

The initial scaling factor on the Y axis for the actors.

Since: 0.6

constructBehaviourScaleYScaleStart :: (IsBehaviourScale o, MonadIO m) => Double -> m (GValueConstruct o) Source #

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

getBehaviourScaleYScaleStart :: (MonadIO m, IsBehaviourScale o) => o -> m Double Source #

Get the value of the “y-scale-start” property. When overloading is enabled, this is equivalent to

get behaviourScale #yScaleStart

setBehaviourScaleYScaleStart :: (MonadIO m, IsBehaviourScale o) => o -> Double -> m () Source #

Set the value of the “y-scale-start” property. When overloading is enabled, this is equivalent to

set behaviourScale [ #yScaleStart := value ]