Class

PhocPropertyEaser

Description [src]

final class Phoc.PropertyEaser : GObject.Object
{
  /* No available fields */
}

Eases properties of a given object.

Based on the given easing function the PhocPropertyEaser will ease the specified float properties of the target object based on the progress set via progress across the unit interval [0.0, 1.0].

If an object has properties a and b that should be eased in the intervals [-1.0,1.0] and [10.0, 100.0] respectively the invocation would look like:

PhocPropertyEaser easer = phoc_property_easer_new (G_OBJECT (object));
phoc_property_easer_set_props (easer, "a", -1.0, 1.0, "b", 0.0, 100.0, NULL);

which sets up the properties to their initial values. Changing progress then updates the properties according to the given easing function. E.g. with PHOC_EASING_NONE (plain linear interpolation)

phoc_property_easer_set_progress (easer, 0.5);

would set object.a == 0.0 and object.b == 50.0.

The eased properties must be of type float or int. If the tracked object goes away the easing stops. No ref is held on the object.

Ancestors

Constructors

phoc_property_easer_new
No description available.

Instance methods

phoc_property_easer_get_easing
No description available.

phoc_property_easer_get_progress
No description available.

phoc_property_easer_set_easing
No description available.

phoc_property_easer_set_progress

Sets the current progress and updates the target objects properties according to the set easing function.

phoc_property_easer_set_props
No description available.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Phoc.PropertyEaser:easing

The easing function to use.

Phoc.PropertyEaser:progress

The progress of the animation in milliseconds.

Phoc.PropertyEaser:properties

The properties to ease. Needs to be set past target.

Phoc.PropertyEaser:target

The object of which the properties will be eased.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct PhocPropertyEaserClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.