X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller-impl.h;h=054f4a71ea12116d90a5bcbad6e40a9de96d415a;hp=e9d99f1fe4db80164d826a08a2c7af6f25342c8b;hb=21f60153d688233c47b7e86dfe1d6e06450ed3a0;hpb=abf49ea18cacb9cee85e0253873578775981c5ca diff --git a/dali-toolkit/internal/text/text-controller-impl.h b/dali-toolkit/internal/text/text-controller-impl.h index e9d99f1..054f4a7 100644 --- a/dali-toolkit/internal/text/text-controller-impl.h +++ b/dali-toolkit/internal/text/text-controller-impl.h @@ -39,6 +39,7 @@ namespace Text //Forward declarations struct CursorInfo; +struct FontDefaults; struct Event { @@ -104,7 +105,7 @@ struct EventData DecoratorPtr mDecorator; ///< Pointer to the decorator. ImfManager mImfManager; ///< The Input Method Framework Manager. - std::string mPlaceholderText; ///< The text to display when the TextField is empty. + FontDefaults* mPlaceholderFont; ///< The placeholder default font. std::string mPlaceholderTextActive; ///< The text to display when the TextField is empty with key-input focus. std::string mPlaceholderTextInactive; ///< The text to display when the TextField is empty and inactive. Vector4 mPlaceholderTextColor; ///< The in/active placeholder text color. @@ -155,6 +156,7 @@ struct EventData bool mUpdateInputStyle : 1; ///< Whether to update the input style after moving the cursor. bool mPasswordInput : 1; ///< True if password input is enabled. bool mCheckScrollAmount : 1; ///< Whether to check scrolled amount after updating the position + bool mIsPlaceholderPixelSize : 1; ///< True if the placeholder font size is set as pixel size. }; struct ModifyEvent @@ -384,9 +386,10 @@ struct Controller::Impl */ bool IsPlaceholderAvailable() const { - return ( mEventData && ( !mEventData->mPlaceholderText.empty() || - !mEventData->mPlaceholderTextInactive.empty() || - !mEventData->mPlaceholderTextActive.empty() ) ); + return ( mEventData && + ( !mEventData->mPlaceholderTextInactive.empty() || + !mEventData->mPlaceholderTextActive.empty() ) + ); } bool IsShowingPlaceholderText() const @@ -399,8 +402,7 @@ struct Controller::Impl */ bool IsFocusedPlaceholderAvailable() const { - return ( mEventData && ( !mEventData->mPlaceholderTextActive.empty() || - !mEventData->mPlaceholderText.empty() ) ); + return ( mEventData && !mEventData->mPlaceholderTextActive.empty() ); } bool IsShowingRealText() const