X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller-impl.h;h=3c72bdba76f562075bacefc7ebaf3d2b08c3c019;hb=7c13cc0c065ae22e7ad0deaea4f56730ff050c5c;hp=e49971a1337ac41b3737cf7b4220625ac897aa33;hpb=70468ae7ba6b75df1db1063e9b3fcf0313ffd787;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-controller-impl.h b/dali-toolkit/internal/text/text-controller-impl.h index e49971a..3c72bdb 100644 --- a/dali-toolkit/internal/text/text-controller-impl.h +++ b/dali-toolkit/internal/text/text-controller-impl.h @@ -356,8 +356,9 @@ struct Controller::Impl mTextFitMinSize(DEFAULT_TEXTFIT_MIN), mTextFitMaxSize(DEFAULT_TEXTFIT_MAX), mTextFitStepSize(DEFAULT_TEXTFIT_STEP), - mTextFitEnabled(false), mFontSizeScale(DEFAULT_FONT_SIZE_SCALE), + mTextFitEnabled(false), + mTextFitChanged(false), mIsLayoutDirectionChanged(false) { mModel = Model::New(); @@ -523,6 +524,13 @@ struct Controller::Impl Length GetNumberOfWhiteSpaces(CharacterIndex index) const; /** + * @brief Retrieve any text previously set. + * + * @param[out] text A string of UTF-8 characters. + */ + void GetText(std::string& text) const; + + /** * @brief Retrieve any text previously set starting from the given @p index. * * @param[in] index The character index from where to retrieve the text. @@ -550,6 +558,12 @@ struct Controller::Impl Dali::LayoutDirection::Type GetLayoutDirection(Dali::Actor& actor) const; /** + * @brief Checks text direction. + * @return The text direction. + */ + Toolkit::DevelText::TextDirection::Type GetTextDirection(); + + /** * @brief Calculates the start character index of the first paragraph to be updated and * the end character index of the last paragraph to be updated. * @@ -615,6 +629,21 @@ struct Controller::Impl bool SetPrimaryCursorPosition(CharacterIndex index, bool focused); /** + * @copydoc Text::SelectableControlInterface::GetSelectedText() + */ + string GetSelectedText(); + + /** + * @copydoc Text::EditableControlInterface::CopyText() + */ + string CopyText(); + + /** + * @copydoc Text::EditableControlInterface::CutText() + */ + string CutText(); + + /** * @copydoc Text::SelectableControlInterface::SetTextSelectionRange() */ void SetTextSelectionRange(const uint32_t* pStart, const uint32_t* pEndf); @@ -755,13 +784,6 @@ struct Controller::Impl void ScrollTextToMatchCursor(); /** - * @brief Create an actor that renders the text background color - * - * @return the created actor or an empty handle if no background color needs to be rendered. - */ - Actor CreateBackgroundActor(); - - /** * @brief fill needed relayout parameters when line size is changed & request relayout. */ void RelayoutForNewLineSize(); @@ -953,9 +975,9 @@ public: float mTextFitMinSize; ///< Minimum Font Size for text fit. Default 10 float mTextFitMaxSize; ///< Maximum Font Size for text fit. Default 100 float mTextFitStepSize; ///< Step Size for font intervalse. Default 1 - bool mTextFitEnabled : 1; ///< Whether the text's fit is enabled. - float mTextFitChanged; ///< Whether the text fit property has changed. float mFontSizeScale; ///< Scale value for Font Size. Default 1.0 + bool mTextFitEnabled : 1; ///< Whether the text's fit is enabled. + bool mTextFitChanged : 1; ///< Whether the text fit property has changed. bool mIsLayoutDirectionChanged : 1; ///< Whether the layout has changed. private: