1 #ifndef DALI_TOOLKIT_TEXT_CONTROLLER_INPUT_FONT_HANDLER_H
2 #define DALI_TOOLKIT_TEXT_CONTROLLER_INPUT_FONT_HANDLER_H
5 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
25 #include <dali-toolkit/internal/text/text-controller.h>
26 #include <dali-toolkit/internal/text/text-definitions.h>
37 struct Controller::InputFontHandler
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);
56 } // namespace Toolkit
60 #endif // DALI_TOOLKIT_TEXT_CONTROLLER_INPUT_FONT_HANDLER_H