Merge "dali-toolkit: update text selection UI handles with selection properties"...
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / 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) 2020 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/text-controller.h>
26 #include <dali-toolkit/internal/text/text-definitions.h>
27
28 namespace Dali
29 {
30
31 namespace Toolkit
32 {
33
34 namespace Text
35 {
36
37 struct Controller::InputFontHandler
38 {
39   static void SetInputFontFamily(Controller& controller, const std::string& fontFamily);
40   static const std::string& GetInputFontFamily(const Controller& controller);
41   static void SetInputFontWeight(const Controller& controller, FontWeight weight);
42   static bool IsInputFontWeightDefined(const Controller& controller);
43   static FontWeight GetInputFontWeight(const Controller& controller);
44   static void SetInputFontWidth(Controller& controller, FontWidth width);
45   static bool IsInputFontWidthDefined(const Controller& controller);
46   static FontWidth GetInputFontWidth(const Controller& controller);
47   static void SetInputFontSlant(Controller& controller, FontSlant slant);
48   static bool IsInputFontSlantDefined(const Controller& controller);
49   static FontSlant GetInputFontSlant(const Controller& controller);
50   static void SetInputFontPointSize(Controller& controller, float size);
51   static float GetInputFontPointSize(const Controller& controller);
52 };
53
54 } // namespace Text
55
56 } // namespace Toolkit
57
58 } // namespace Dali
59
60 #endif // DALI_TOOLKIT_TEXT_CONTROLLER_INPUT_FONT_HANDLER_H