Merge "Fix RemoveText issue in text controller" into devel/master
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / controller / text-controller-input-font-handler.h
1 #ifndef DALI_TOOLKIT_TEXT_CONTROLLER_INPUT_FONT_HANDLER_H
2 #define DALI_TOOLKIT_TEXT_CONTROLLER_INPUT_FONT_HANDLER_H
3
4 /*
5  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <string>
23
24 // INTERNAL INCLUDES
25 #include <dali-toolkit/internal/text/controller/text-controller.h>
26 #include <dali-toolkit/internal/text/text-definitions.h>
27
28 namespace Dali
29 {
30 namespace Toolkit
31 {
32 namespace Text
33 {
34 struct Controller::InputFontHandler
35 {
36   static void               SetInputFontFamily(Controller& controller, const std::string& fontFamily);
37   static const std::string& GetInputFontFamily(const Controller& controller);
38   static void               SetInputFontWeight(const Controller& controller, FontWeight weight);
39   static bool               IsInputFontWeightDefined(const Controller& controller);
40   static FontWeight         GetInputFontWeight(const Controller& controller);
41   static void               SetInputFontWidth(Controller& controller, FontWidth width);
42   static bool               IsInputFontWidthDefined(const Controller& controller);
43   static FontWidth          GetInputFontWidth(const Controller& controller);
44   static void               SetInputFontSlant(Controller& controller, FontSlant slant);
45   static bool               IsInputFontSlantDefined(const Controller& controller);
46   static FontSlant          GetInputFontSlant(const Controller& controller);
47   static void               SetInputFontPointSize(Controller& controller, float size);
48   static float              GetInputFontPointSize(const Controller& controller);
49 };
50
51 } // namespace Text
52
53 } // namespace Toolkit
54
55 } // namespace Dali
56
57 #endif // DALI_TOOLKIT_TEXT_CONTROLLER_INPUT_FONT_HANDLER_H