X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Fcommon-text-utils.h;h=212f162cc98b2d3e84dd698d5c8938c2c550535a;hb=3a6adcbec75784b051cb9ebaf204d72b553ea355;hp=f9069a2fbc3b4dab858252479c7f9645ce8df446;hpb=4800a84a19c2fd33aea3174eae8e55297ee3a9af;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/controls/text-controls/common-text-utils.h b/dali-toolkit/internal/controls/text-controls/common-text-utils.h index f9069a2..212f162 100644 --- a/dali-toolkit/internal/controls/text-controls/common-text-utils.h +++ b/dali-toolkit/internal/controls/text-controls/common-text-utils.h @@ -16,7 +16,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +#include #include #include #include @@ -42,6 +42,7 @@ public: * @param[in,out] backgroundActor Actor for rendering background * @param[in,out] stencil Clipping actor * @param[in,out] clippingDecorationActors Clipping decoration actors + * @param[in,out] anchorActors Anchor actors * @param[in] updateTextType How the text has been updated */ static void RenderText( @@ -54,7 +55,19 @@ public: Actor& backgroundActor, Toolkit::Control& stencil, std::vector& clippingDecorationActors, + std::vector& anchorActors, Text::Controller::UpdateTextType updateTextType); + + /** + * Common method to synchronize TextAnchor actors with Anchor objects in text's logical model. + * @param[in] parent The actor that is a parent of anchor actors + * @param[in] controller pointer to the text controller + * @param[in,out] anchorActors Anchor actors + */ + static void SynchronizeTextAnchorsInParent( + Actor parent, + Text::ControllerPtr controller, + std::vector& anchorActors); }; } // namespace Dali::Toolkit::Internal