X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=base%2Fdali-toolkit%2Finternal%2Fcontrols%2Frelayout-helper.h;h=c7f2372592e2b1d4fe971025f6fc7bb92c54795b;hb=98e004e02ba280e3353acaf249f9860bad354d28;hp=b3562622be4fba4d93c3d0dfad7ade9987af7030;hpb=a881757839b7abb008873a68c67e17b3ba39669b;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/base/dali-toolkit/internal/controls/relayout-helper.h b/base/dali-toolkit/internal/controls/relayout-helper.h index b356262..c7f2372 100644 --- a/base/dali-toolkit/internal/controls/relayout-helper.h +++ b/base/dali-toolkit/internal/controls/relayout-helper.h @@ -18,9 +18,9 @@ * */ -// INTERNAL INCLUDES -#include - +// EXTERNAL INCLUDES +#include +#include namespace Dali { @@ -35,12 +35,30 @@ namespace RelayoutHelper { /** + * Gets the natural size of the given actor. + * + * If the actor is a Control, it returns the natural size of the Control. @see Control::GetNaturalSize() + * If the actor is an ImageActor, it returns the size of the image. + * If the actor is a TextActor, it returns the size of the text. @see Font::MeasureText() + * Otherwise it returns the actor's current size. @see Actor::GetCurrentSize() + * + * @param[in] actor The actor. * + * @return The natural size. */ Vector3 GetNaturalSize( Actor actor ); /** + * Gets the actor's height for the given width. + * + * If the actor is a Control it returns the height for width. @see Control::GetHeightForWidth() + * If the actor is an ImageActor or a TextActor it scales the natural size to fit the given width. @see GetNaturalSize() + * Otherwise it returns the actor's current size. @see Actor::GetCurrentSize() + * + * @param[in] actor The actor. + * @param[in] width The width. * + * @return The actor's height for given width. */ float GetHeightForWidth( Actor actor, float width );