mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
clutter-actor: Make clutter_actor_has_mapped_clones public
This allows some optimisations to be done that work when they are no clones. https://bugzilla.gnome.org/show_bug.cgi?id=703336
This commit is contained in:
parent
0cef63b837
commit
697f7a3359
@ -1064,8 +1064,6 @@ static void clutter_actor_set_transform_internal (ClutterActor *self,
|
||||
static void clutter_actor_set_child_transform_internal (ClutterActor *self,
|
||||
const ClutterMatrix *transform);
|
||||
|
||||
static inline gboolean clutter_actor_has_mapped_clones (ClutterActor *self);
|
||||
|
||||
static void clutter_actor_realize_internal (ClutterActor *self);
|
||||
static void clutter_actor_unrealize_internal (ClutterActor *self);
|
||||
|
||||
@ -20341,13 +20339,25 @@ _clutter_actor_queue_relayout_on_clones (ClutterActor *self)
|
||||
clutter_actor_queue_relayout (key);
|
||||
}
|
||||
|
||||
static inline gboolean
|
||||
/**
|
||||
* clutter_actor_has_mapped_clones:
|
||||
* @self: a #ClutterActor
|
||||
*
|
||||
* Returns whether the actor has any mapped clones.
|
||||
*
|
||||
* Since: 1.16
|
||||
*/
|
||||
gboolean
|
||||
clutter_actor_has_mapped_clones (ClutterActor *self)
|
||||
{
|
||||
ClutterActorPrivate *priv = self->priv;
|
||||
ClutterActorPrivate *priv;
|
||||
GHashTableIter iter;
|
||||
gpointer key;
|
||||
|
||||
g_return_val_if_fail (CLUTTER_IS_ACTOR (self), FALSE);
|
||||
|
||||
priv = self->priv;
|
||||
|
||||
if (priv->clones == NULL)
|
||||
return FALSE;
|
||||
|
||||
|
@ -735,6 +735,13 @@ void clutter_actor_remove_transition
|
||||
CLUTTER_AVAILABLE_IN_1_10
|
||||
void clutter_actor_remove_all_transitions (ClutterActor *self);
|
||||
|
||||
|
||||
/* Experimental API */
|
||||
#ifdef CLUTTER_ENABLE_EXPERIMENTAL_API
|
||||
CLUTTER_AVAILABLE_IN_1_16
|
||||
gboolean clutter_actor_has_mapped_clones (ClutterActor *self);
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __CLUTTER_ACTOR_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user