Skip to content

clutter/actor: Add get_transformed_extents

The clutter_actor_get_transformed_position returns the position of the top left point of the actor, with the actor transformations. That means that if the actor is rotated 180º it'll return the "screen" position top right.

Using this to calculate if the actor is in the screen is causing problems when it's transformted.

This patch adds a new function clutter_actor_get_transformed_extents, that will return the transformed actor bounding rect origin.

This new function is used on the update_stage_views so the actor will get updated, so rotated actors will be updated if they are on the screen.

Merge request reports