Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── ClutterActorMeta ╰── ClutterEffect ╰── ClutterOffscreenEffect ╰── ClutterDeformEffect ╰── ClutterPageTurnEffect
ClutterEffect * clutter_page_turn_effect_new (gdouble period
,gdouble angle
,gfloat radius
);
Creates a new ClutterPageTurnEffect instance with the given parameters
period |
the period of the page curl, between 0.0 and 1.0 |
|
angle |
the angle of the page curl, between 0.0 and 360.0 |
|
radius |
the radius of the page curl, in pixels |
Since 1.4
void clutter_page_turn_effect_set_period (ClutterPageTurnEffect *effect
,gdouble period
);
Sets the period of the page curling, between 0.0 (no curling) and 1.0 (fully curled)
Since 1.4
gdouble
clutter_page_turn_effect_get_period (ClutterPageTurnEffect *effect
);
Retrieves the value set using clutter_page_turn_effect_get_period()
Since 1.4
void clutter_page_turn_effect_set_angle (ClutterPageTurnEffect *effect
,gdouble angle
);
Sets the angle of the page curling, in degrees
Since 1.4
gdouble
clutter_page_turn_effect_get_angle (ClutterPageTurnEffect *effect
);
Retrieves the value set using clutter_page_turn_effect_get_angle()
Since 1.4
void clutter_page_turn_effect_set_radius (ClutterPageTurnEffect *effect
,gfloat radius
);
Sets the radius of the page curling
Since 1.4
gfloat
clutter_page_turn_effect_get_radius (ClutterPageTurnEffect *effect
);
Retrieves the value set using clutter_page_turn_effect_set_radius()
Since 1.4
typedef struct _ClutterPageTurnEffect ClutterPageTurnEffect;
ClutterPageTurnEffect is an opaque structure whose members can only be accessed using the provided API
Since 1.4
“angle”
property“angle” gdouble
The angle of the page rotation, in degrees, between 0.0 and 360.0
Flags: Read / Write
Allowed values: [0,360]
Default value: 0
Since 1.4
“period”
property“period” gdouble
The period of the page turn, between 0.0 (no curling) and 1.0 (fully curled)
Flags: Read / Write
Allowed values: [0,1]
Default value: 0
Since 1.4
“radius”
property“radius” gfloat
The radius of the page curl, in pixels
Flags: Read / Write
Default value: 24
Since 1.4