X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-selectable-control-interface.h;h=931cf6b38198fcdd00d780a71dd7403aae2d2034;hb=6ed6ac87231267f52ac320bf2fd1e7e3ec439ba5;hp=da19108c14f074905c407b4736d482f9fe7438b4;hpb=b8da2e53925b9abb9fa362560069e8ca4aa62f81;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-selectable-control-interface.h b/dali-toolkit/internal/text/text-selectable-control-interface.h index da19108..931cf6b 100644 --- a/dali-toolkit/internal/text/text-selectable-control-interface.h +++ b/dali-toolkit/internal/text/text-selectable-control-interface.h @@ -61,10 +61,27 @@ public: virtual void SelectNone() = 0; /** + * @brief Called to set the selection postions in the texts. + * @param start start selection position. + * @param end end selection position. + */ + virtual void SelectText(const uint32_t start, const uint32_t end) = 0; + + /** * @brief Retrive Selected text. * @return The seletced text. */ virtual string GetSelectedText() const = 0; + + /** + * @brief Called when the selection has been changed. + * + * @param oldStart the selection handles start position before the change. + * @param oldEnd the selection handles end position before the change. + * @param newStart the selection handles start position after the change. + * @param newEnd the selection handles end position after the change. + */ + virtual void SelectionChanged(uint32_t oldStart, uint32_t oldEnd, uint32_t newStart, uint32_t newEnd) = 0; }; } // namespace Text