/** * clutter_actor_meta_get_actor: * @meta: a #ClutterActorMeta * * Retrieves a pointer to the #ClutterActor that owns @meta * * Return value: (transfer none): a pointer to a #ClutterActor or %NULL * * Since: 1.4 */ ClutterActor * clutter_actor_meta_get_actor (ClutterActorMeta *meta) { g_return_val_if_fail (CLUTTER_IS_ACTOR_META (meta), NULL); return meta->priv->actor; }
/** * clutter_actor_meta_get_enabled: * @meta: a #ClutterActorMeta * * Retrieves whether @meta is enabled * * Return value: %TRUE if the #ClutterActorMeta instance is enabled * * Since: 1.4 */ gboolean clutter_actor_meta_get_enabled (ClutterActorMeta *meta) { g_return_val_if_fail (CLUTTER_IS_ACTOR_META (meta), FALSE); return meta->priv->is_enabled; }
/** * clutter_actor_meta_get_name: * @meta: a #ClutterActorMeta * * Retrieves the name set using clutter_actor_meta_set_name() * * Return value: (transfer none): the name of the #ClutterActorMeta * instance, or %NULL if none was set. The returned string is owned * by the #ClutterActorMeta instance and it should not be modified * or freed * * Since: 1.4 */ G_CONST_RETURN gchar * clutter_actor_meta_get_name (ClutterActorMeta *meta) { g_return_val_if_fail (CLUTTER_IS_ACTOR_META (meta), NULL); return meta->priv->name; }
gint _clutter_actor_meta_get_priority (ClutterActorMeta *meta) { g_return_val_if_fail (CLUTTER_IS_ACTOR_META (meta), 0); return meta->priv->priority; }
/* * _clutter_actor_meta_set_actor * @meta: a #ClutterActorMeta * @actor: a #ClutterActor or %NULL * * Sets or unsets a back pointer to the #ClutterActor that owns * the @meta * * Since: 1.4 */ void _clutter_actor_meta_set_actor (ClutterActorMeta *meta, ClutterActor *actor) { g_return_if_fail (CLUTTER_IS_ACTOR_META (meta)); g_return_if_fail (actor == NULL || CLUTTER_IS_ACTOR (actor)); CLUTTER_ACTOR_META_GET_CLASS (meta)->set_actor (meta, actor); }
/** * clutter_actor_meta_set_name: * @meta: a #ClutterActorMeta * @name: the name of @meta * * Sets the name of @meta * * The name can be used to identify the #ClutterActorMeta instance * * Since: 1.4 */ void clutter_actor_meta_set_name (ClutterActorMeta *meta, const gchar *name) { g_return_if_fail (CLUTTER_IS_ACTOR_META (meta)); if (g_strcmp0 (meta->priv->name, name) == 0) return; g_free (meta->priv->name); meta->priv->name = g_strdup (name); _clutter_notify_by_pspec (G_OBJECT (meta), obj_props[PROP_NAME]); }
/** * clutter_actor_meta_set_enabled: * @meta: a #ClutterActorMeta * @is_enabled: whether @meta is enabled * * Sets whether @meta should be enabled or not * * Since: 1.4 */ void clutter_actor_meta_set_enabled (ClutterActorMeta *meta, gboolean is_enabled) { g_return_if_fail (CLUTTER_IS_ACTOR_META (meta)); is_enabled = !!is_enabled; if (meta->priv->is_enabled == is_enabled) return; meta->priv->is_enabled = is_enabled; _clutter_notify_by_pspec (G_OBJECT (meta), obj_props[PROP_ENABLED]); }
void _clutter_actor_meta_set_priority (ClutterActorMeta *meta, gint priority) { g_return_if_fail (CLUTTER_IS_ACTOR_META (meta)); /* This property shouldn't be modified after the actor meta is in use because ClutterMetaGroup doesn't resort the list when it changes. If we made the priority public then we could either make the priority a construct-only property or listen for notifications on the property from the ClutterMetaGroup and resort. */ g_return_if_fail (meta->priv->actor == NULL); meta->priv->priority = priority; }