[dali_2.3.19] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / rendering / text-renderer.h
index cc7c8f4..6a2a003 100644 (file)
@@ -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.
 
 namespace Dali
 {
-
 namespace Toolkit
 {
-
 namespace Text
 {
-
 class Renderer;
 typedef IntrusivePtr<Renderer> RendererPtr;
 
@@ -46,18 +43,23 @@ class ViewInterface;
 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, int depth ) = 0;
+  virtual Actor Render(ViewInterface&  view,
+                       Actor           textContol,
+                       Property::Index animatablePropertyIndex,
+                       float&          alignmentOffset,
+                       int             depth) = 0;
 
 protected:
-
   /**
    * @brief Constructor.
    */
@@ -69,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
@@ -83,4 +84,4 @@ private:
 
 } // namespace Dali
 
-#endif // __DALI_TOOLKIT_TEXT_RENDERER_H__
+#endif // DALI_TOOLKIT_TEXT_RENDERER_H