X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Factors%2Factor-coords.h;h=d6ebd362604c8e5943462071d4c4a100186903cf;hb=128cea946c9d6d4a76ab7bda08bfdd532be549b7;hp=658d3e9692a12cdf9562f8fac94595f754e63d1a;hpb=0d7ff5e91b985c1ef434047594976c6350400478;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/actors/actor-coords.h b/dali/internal/event/actors/actor-coords.h index 658d3e9..d6ebd36 100644 --- a/dali/internal/event/actors/actor-coords.h +++ b/dali/internal/event/actors/actor-coords.h @@ -93,6 +93,25 @@ bool ConvertScreenToLocalRenderTaskList( float screenX, float screenY); +/** + * Calculate the screen position of the actor from it's node transform and anchor point + * + * @param[in] actor The actor to calculate the screen position for + * @param[in] bufferIndex The current event buffer index + * @return the screen position + */ +const Vector2 CalculateActorScreenPosition(const Actor& actor, BufferIndex bufferIndex); + +/** + * Calculate the screen extents of the actor from its node transform, anchor point and size + * + * @param[in] actor The actor + * @param[in] screenPosition The actor's screen position + * @param[in] bufferIndex The current event buffer index + * @return the screen extents of the actor + */ +Rect<> CalculateActorScreenExtents(const Actor& actor, const Vector2& screenPosition, BufferIndex bufferIndex); + } // namespace Dali::Internal #endif // DALI_INTERNAL_EVENT_ACTORS_ACTOR_COORDS_H