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 BehaviourScale
struct contains only private data and
should be accessed using the provided API
Since: 0.2
Synopsis
- newtype BehaviourScale = BehaviourScale (ManagedPtr BehaviourScale)
- class (GObject o, IsDescendantOf BehaviourScale o) => IsBehaviourScale o
- toBehaviourScale :: (MonadIO m, IsBehaviourScale o) => o -> m BehaviourScale
- behaviourScaleGetBounds :: (HasCallStack, MonadIO m, IsBehaviourScale a) => a -> m (Double, Double, Double, Double)
- behaviourScaleNew :: (HasCallStack, MonadIO m, IsAlpha a) => Maybe a -> Double -> Double -> Double -> Double -> m BehaviourScale
- behaviourScaleSetBounds :: (HasCallStack, MonadIO m, IsBehaviourScale a) => a -> Double -> Double -> Double -> Double -> m ()
- constructBehaviourScaleXScaleEnd :: (IsBehaviourScale o, MonadIO m) => Double -> m (GValueConstruct o)
- getBehaviourScaleXScaleEnd :: (MonadIO m, IsBehaviourScale o) => o -> m Double
- setBehaviourScaleXScaleEnd :: (MonadIO m, IsBehaviourScale o) => o -> Double -> m ()
- constructBehaviourScaleXScaleStart :: (IsBehaviourScale o, MonadIO m) => Double -> m (GValueConstruct o)
- getBehaviourScaleXScaleStart :: (MonadIO m, IsBehaviourScale o) => o -> m Double
- setBehaviourScaleXScaleStart :: (MonadIO m, IsBehaviourScale o) => o -> Double -> m ()
- constructBehaviourScaleYScaleEnd :: (IsBehaviourScale o, MonadIO m) => Double -> m (GValueConstruct o)
- getBehaviourScaleYScaleEnd :: (MonadIO m, IsBehaviourScale o) => o -> m Double
- setBehaviourScaleYScaleEnd :: (MonadIO m, IsBehaviourScale o) => o -> Double -> m ()
- constructBehaviourScaleYScaleStart :: (IsBehaviourScale o, MonadIO m) => Double -> m (GValueConstruct o)
- getBehaviourScaleYScaleStart :: (MonadIO m, IsBehaviourScale o) => o -> m Double
- setBehaviourScaleYScaleStart :: (MonadIO m, IsBehaviourScale o) => o -> Double -> m ()
Exported types
newtype BehaviourScale Source #
Memory-managed wrapper type.
BehaviourScale (ManagedPtr BehaviourScale) |
Instances
Eq BehaviourScale Source # | |
Defined in GI.Clutter.Objects.BehaviourScale (==) :: BehaviourScale -> BehaviourScale -> Bool # (/=) :: BehaviourScale -> BehaviourScale -> Bool # | |
GObject BehaviourScale Source # | |
Defined in GI.Clutter.Objects.BehaviourScale | |
ManagedPtrNewtype BehaviourScale Source # | |
Defined in GI.Clutter.Objects.BehaviourScale toManagedPtr :: BehaviourScale -> ManagedPtr BehaviourScale | |
TypedObject BehaviourScale Source # | |
Defined in GI.Clutter.Objects.BehaviourScale | |
HasParentTypes BehaviourScale Source # | |
Defined in GI.Clutter.Objects.BehaviourScale | |
IsGValue (Maybe BehaviourScale) Source # | Convert |
Defined in GI.Clutter.Objects.BehaviourScale gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe BehaviourScale -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe BehaviourScale) | |
type ParentTypes BehaviourScale Source # | |
Defined in GI.Clutter.Objects.BehaviourScale |
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
(GObject o, IsDescendantOf BehaviourScale o) => IsBehaviourScale o Source # | |
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
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, getBounds, getData, getId, getNActors, getNthActor, getProperty, getQdata.
Setters
setAlpha, setBounds, setCustomProperty, setData, setDataFull, setId, setProperty.
getBounds
behaviourScaleGetBounds Source #
:: (HasCallStack, MonadIO m, IsBehaviourScale a) | |
=> a |
|
-> m (Double, Double, Double, Double) |
Deprecated: (Since version 1.6)
Retrieves the bounds used by scale behaviour.
Since: 0.4
new
:: (HasCallStack, MonadIO m, IsAlpha a) | |
=> Maybe a | |
-> Double |
|
-> Double |
|
-> Double |
|
-> Double |
|
-> m BehaviourScale | Returns: the newly created |
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 #
:: (HasCallStack, MonadIO m, IsBehaviourScale a) | |
=> a |
|
-> Double |
|
-> Double |
|
-> Double |
|
-> Double |
|
-> 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 ]