gi-adwaita-1.0.7: Adwaita bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Adw.Objects.PropertyAnimationTarget

Description

An [classanimationTarget] changing the value of a property of a Object instance.

Since: 1.2

Synopsis

Exported types

newtype PropertyAnimationTarget Source #

Memory-managed wrapper type.

class (GObject o, IsDescendantOf PropertyAnimationTarget o) => IsPropertyAnimationTarget o Source #

Type class for types which can be safely cast to PropertyAnimationTarget, for instance with toPropertyAnimationTarget.

Instances

Instances details
(GObject o, IsDescendantOf PropertyAnimationTarget o) => IsPropertyAnimationTarget o Source # 
Instance details

Defined in GI.Adw.Objects.PropertyAnimationTarget

toPropertyAnimationTarget :: (MonadIO m, IsPropertyAnimationTarget o) => o -> m PropertyAnimationTarget Source #

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

Methods

getObject

propertyAnimationTargetGetObject Source #

Arguments

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

self: a property animation target

-> m Object

Returns: the animated object

Gets the object animated by self.

The AdwPropertyAnimationTarget instance does not hold a strong reference on the object; make sure the object is kept alive throughout the target's lifetime.

Since: 1.2

getPspec

propertyAnimationTargetGetPspec Source #

Arguments

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

self: a property animation target

-> m GParamSpec

Returns: the animated property's GParamSpec

Gets the GParamSpec of the property animated by self.

Since: 1.2

new

propertyAnimationTargetNew Source #

Arguments

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

object: an object to be animated

-> Text

propertyName: the name of the property on object to animate

-> m PropertyAnimationTarget

Returns: the newly created AdwPropertyAnimationTarget

Creates a new AdwPropertyAnimationTarget for the propertyName property on object.

Since: 1.2

newForPspec

propertyAnimationTargetNewForPspec Source #

Arguments

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

object: an object to be animated

-> GParamSpec

pspec: the param spec of the property on object to animate

-> m PropertyAnimationTarget

Returns: new newly created AdwPropertyAnimationTarget

Creates a new AdwPropertyAnimationTarget for the pspec property on object.

Since: 1.2

Properties

object

The object whose property will be animated.

The AdwPropertyAnimationTarget instance does not hold a strong reference on the object; make sure the object is kept alive throughout the target's lifetime.

Since: 1.2

constructPropertyAnimationTargetObject :: (IsPropertyAnimationTarget o, MonadIO m, IsObject a) => a -> m (GValueConstruct o) Source #

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

getPropertyAnimationTargetObject :: (MonadIO m, IsPropertyAnimationTarget o) => o -> m Object Source #

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

get propertyAnimationTarget #object

pspec

The GParamSpec of the property to be animated.

Since: 1.2

constructPropertyAnimationTargetPspec :: (IsPropertyAnimationTarget o, MonadIO m) => GParamSpec -> m (GValueConstruct o) Source #

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

getPropertyAnimationTargetPspec :: (MonadIO m, IsPropertyAnimationTarget o) => o -> m GParamSpec Source #

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

get propertyAnimationTarget #pspec