X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller-placeholder-handler.h;h=9c81eb1afd8edb1ed74209658c984456146c8378;hb=29a52105283ce8ced672ed92545daeacf882316a;hp=74ee9332c31162b23b35f6c248fcd20df0b139a9;hpb=8ca4aa19ff1c7282e1a724d4660bf34e5a4b77fa;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/text/text-controller-placeholder-handler.h b/dali-toolkit/internal/text/text-controller-placeholder-handler.h index 74ee933..9c81eb1 100644 --- a/dali-toolkit/internal/text/text-controller-placeholder-handler.h +++ b/dali-toolkit/internal/text/text-controller-placeholder-handler.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_TEXT_CONTROLLER_PLACEHOLDER_HANDLER_H /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -28,37 +28,35 @@ namespace Dali { - namespace Toolkit { - namespace Text { - struct Controller::PlaceholderHandler { - static void SetPlaceholderTextElideEnabled(Controller& controller, bool enabled); - static bool IsPlaceholderTextElideEnabled(const Controller& controller); - static void SetPlaceholderText(Controller& controller, PlaceholderType type, const std::string& text); - static void GetPlaceholderText(const Controller& controller, PlaceholderType type, std::string& text); - static void SetPlaceholderFontFamily(Controller& controller, const std::string& placeholderTextFontFamily); + static void SetPlaceholderTextElideEnabled(Controller& controller, bool enabled); + static bool IsPlaceholderTextElideEnabled(const Controller& controller); + static void SetPlaceholderText(Controller& controller, PlaceholderType type, const std::string& text); + static void GetPlaceholderText(const Controller& controller, PlaceholderType type, std::string& text); + static void SetPlaceholderFontFamily(Controller& controller, const std::string& placeholderTextFontFamily); static const std::string& GetPlaceholderFontFamily(const Controller& controller); - static void SetPlaceholderTextFontWeight(Controller& controller, FontWeight weight); - static bool IsPlaceholderTextFontWeightDefined(const Controller& controller); - static FontWeight GetPlaceholderTextFontWeight(const Controller& controller); - static void SetPlaceholderTextFontWidth(Controller& controller, FontWidth width); - static bool IsPlaceholderTextFontWidthDefined(const Controller& controller); - static FontWidth GetPlaceholderTextFontWidth(const Controller& controller); - static void SetPlaceholderTextFontSlant(Controller& controller, FontSlant slant); - static bool IsPlaceholderTextFontSlantDefined(const Controller& controller); - static FontSlant GetPlaceholderTextFontSlant(const Controller& controller); - static void SetPlaceholderTextFontSize(Controller& controller, float fontSize, FontSizeType type); - static float GetPlaceholderTextFontSize(const Controller& controller, FontSizeType type ); - static void SetPlaceholderTextColor(Controller& controller, const Vector4& textColor ); - static const Vector4& GetPlaceholderTextColor(const Controller& controller); - static void SetPlaceholderProperty(Controller& controller, const Property::Map& map ); - static void GetPlaceholderProperty(Controller& controller, Property::Map& map); - static void ShowPlaceholderText(Controller& controller); + static void SetPlaceholderTextFontWeight(Controller& controller, FontWeight weight); + static bool IsPlaceholderTextFontWeightDefined(const Controller& controller); + static FontWeight GetPlaceholderTextFontWeight(const Controller& controller); + static void SetPlaceholderTextFontWidth(Controller& controller, FontWidth width); + static bool IsPlaceholderTextFontWidthDefined(const Controller& controller); + static FontWidth GetPlaceholderTextFontWidth(const Controller& controller); + static void SetPlaceholderTextFontSlant(Controller& controller, FontSlant slant); + static bool IsPlaceholderTextFontSlantDefined(const Controller& controller); + static FontSlant GetPlaceholderTextFontSlant(const Controller& controller); + static void SetPlaceholderTextFontSize(Controller& controller, float fontSize, FontSizeType type); + static float GetPlaceholderTextFontSize(const Controller& controller, FontSizeType type); + static void SetPlaceholderTextColor(Controller& controller, const Vector4& textColor); + static const Vector4& GetPlaceholderTextColor(const Controller& controller); + static void SetPlaceholderProperty(Controller& controller, const Property::Map& map); + static void GetPlaceholderProperty(Controller& controller, Property::Map& map); + static void ShowPlaceholderText(Controller::Impl& impl); + static void CreatePlaceholderFont(Controller& controller); }; } // namespace Text