X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Frendering%2Ftext-renderer.h;h=6a2a003433992cbda387fadb9a4b27ce459908e7;hp=1b272ea03e5f523f02672751d321f1c56a2a4ebc;hb=HEAD;hpb=09e0f6477db3adfa854d2ac4c376c4076bda9796 diff --git a/dali-toolkit/internal/text/rendering/text-renderer.h b/dali-toolkit/internal/text/rendering/text-renderer.h index 1b272ea..6a2a003 100644 --- a/dali-toolkit/internal/text/rendering/text-renderer.h +++ b/dali-toolkit/internal/text/rendering/text-renderer.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TEXT_RENDERER_H__ -#define __DALI_TOOLKIT_TEXT_RENDERER_H__ +#ifndef DALI_TOOLKIT_TEXT_RENDERER_H +#define DALI_TOOLKIT_TEXT_RENDERER_H /* - * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,42 +23,43 @@ #include #include -// INTERNAL INCLUDES -#include - namespace Dali { - namespace Toolkit { - namespace Text { - class Renderer; typedef IntrusivePtr RendererPtr; +class ViewInterface; + /** * @brief Abstract base class for Text renderers. * * This is reponsible for rendering the glyphs from a ViewInterface in the specified positions. - * It is implemented by returning a RenderableActor intended as the child of a UI control. + * It is implemented by returning an Actor intended as the child of a UI control. */ class Renderer : public RefObject { public: - /** * @brief Render the glyphs from a ViewInterface. * * @param[in] view The interface to a view. + * @param[in] textControl handle to the text control + * @param[in] animatablePropertyIndex textControl specific animatable property + * @param[out] alignmentOffset Offset used to internally align the placement actor. * @param[in] depth The depth in the tree of the parent. * @return The Renderable actor used to position the text. */ - virtual Actor Render( ViewInterface& view, unsigned int depth ) = 0; + virtual Actor Render(ViewInterface& view, + Actor textContol, + Property::Index animatablePropertyIndex, + float& alignmentOffset, + int depth) = 0; protected: - /** * @brief Constructor. */ @@ -70,12 +71,11 @@ protected: virtual ~Renderer(); private: - // Undefined - Renderer( const Renderer& handle ); + Renderer(const Renderer& handle); // Undefined - Renderer& operator=( const Renderer& handle ); + Renderer& operator=(const Renderer& handle); }; } // namespace Text @@ -84,4 +84,4 @@ private: } // namespace Dali -#endif // __DALI_TOOLKIT_TEXT_RENDERER_H__ +#endif // DALI_TOOLKIT_TEXT_RENDERER_H