X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Ftext-controls%2Ftext-label-impl.h;h=a863c9cccbdaa07863a079fe13a5ac8b34d43922;hp=bdbdbbccc9ccb36a4acf77d294fd2c21e95cc6ec;hb=583538010c34b92f80989021201484fdf9e590a9;hpb=177ce5376e3786645b92fccdaed7b904053ef7f6 diff --git a/dali-toolkit/internal/controls/text-controls/text-label-impl.h b/dali-toolkit/internal/controls/text-controls/text-label-impl.h index bdbdbbc..a863c9c 100644 --- a/dali-toolkit/internal/controls/text-controls/text-label-impl.h +++ b/dali-toolkit/internal/controls/text-controls/text-label-impl.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_TEXT_LABEL_H /* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -142,6 +142,19 @@ private: */ void SetUpAutoScrolling(); + /** + * Creates a text-scroller if one has not been created. + * @return The text scroller. + */ + Text::TextScrollerPtr GetTextScroller() + { + if( !mTextScroller ) + { + mTextScroller = Text::TextScroller::New( *this ); + } + return mTextScroller; + } + private: // Data Text::ControllerPtr mController;