25 #include "ev-document-type-builtins.h"
27 #define EV_TRANSITION_EFFECT_GET_PRIV(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), EV_TYPE_TRANSITION_EFFECT, EvTransitionEffectPrivate))
68 priv->
type = g_value_get_enum (value);
71 priv->
alignment = g_value_get_enum (value);
74 priv->
direction = g_value_get_enum (value);
77 priv->
duration = g_value_get_int (value);
80 priv->
angle = g_value_get_int (value);
83 priv->
scale = g_value_get_double (value);
89 G_OBJECT_WARN_INVALID_PROPERTY_ID (
object, prop_id, pspec);
106 g_value_set_enum (value, priv->
type);
109 g_value_set_enum (value, priv->
alignment);
112 g_value_set_enum (value, priv->
direction);
115 g_value_set_int (value, priv->
duration);
118 g_value_set_int (value, priv->
angle);
121 g_value_set_double (value, priv->
scale);
127 G_OBJECT_WARN_INVALID_PROPERTY_ID (
object, prop_id, pspec);
145 GObjectClass *object_class = G_OBJECT_CLASS (klass);
150 g_object_class_install_property (object_class,
152 g_param_spec_enum (
"type",
154 "Page transition effect type",
155 EV_TYPE_TRANSITION_EFFECT_TYPE,
158 G_PARAM_STATIC_STRINGS));
159 g_object_class_install_property (object_class,
161 g_param_spec_enum (
"alignment",
163 "Alignment for the effect",
164 EV_TYPE_TRANSITION_EFFECT_ALIGNMENT,
167 G_PARAM_STATIC_STRINGS));
168 g_object_class_install_property (object_class,
170 g_param_spec_enum (
"direction",
172 "Direction for the effect",
173 EV_TYPE_TRANSITION_EFFECT_DIRECTION,
176 G_PARAM_STATIC_STRINGS));
177 g_object_class_install_property (object_class,
179 g_param_spec_int (
"duration",
181 "Effect duration in seconds",
184 G_PARAM_STATIC_STRINGS));
185 g_object_class_install_property (object_class,
187 g_param_spec_int (
"angle",
189 "Effect angle in degrees, counted "
190 "counterclockwise from left to right",
193 G_PARAM_STATIC_STRINGS));
194 g_object_class_install_property (object_class,
196 g_param_spec_double (
"scale",
198 "Scale at which the effect is applied",
201 G_PARAM_STATIC_STRINGS));
202 g_object_class_install_property (object_class,
204 g_param_spec_boolean (
"rectangular",
206 "Whether the covered area is rectangular",
209 G_PARAM_STATIC_STRINGS));
216 const gchar *first_property_name,
226 va_start (args, first_property_name);
227 g_object_set_valist (
object, first_property_name, args);