1 #ifndef __DALI_TOOLKIT_INTERNAL_TEXT_INPUT_TEXT_STYLE_H__
2 #define __DALI_TOOLKIT_INTERNAL_TEXT_INPUT_TEXT_STYLE_H__
5 * Copyright (c) 2014 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.
21 #include <dali/dali.h>
25 #include <dali-toolkit/internal/controls/text-input/textview-character-positions-impl.h>
36 class TextInputTextStyle;
38 typedef IntrusivePtr<TextInputTextStyle> TextInputTextStylePtr;
41 * Stores the Input Text Style and provides functions to retrieve and manipulate it.
44 class TextInputTextStyle : ConnectionTracker
52 TextInputTextStyle(){};
57 ~TextInputTextStyle(){};
60 * @brief Returns the current Input Style, this is the style that newly inputed text will inherit.
61 * @return TextStyle object representing new style.
63 TextStyle GetInputStyle() const{return mInputStyle;};
66 * @brief Sets the Input style so newly inputed text will inherit this.
67 * @param[in] newStyle the style to now use for Input
68 * @return returns true if style changed. False if new style is the same as current setting.
70 bool SetInputStyle( const TextStyle newStyle, const TextStyle::Mask mask = TextStyle::ALL ){return false;};
73 * @brief Gets the Current Font used for newly inputed text
74 * @return the Font currently set for new text
76 Dali::Font GetInputFont() const{return Dali::Font();};
82 /* Input style changed signal.*/
83 typedef SignalV2< void( const TextStyle& style ) > StyleChangedSignalType;
86 * @brief Signal emitted when style changes.
87 * @return The signal to connect to
89 StyleChangedSignalType& StyleChangedSignal();
94 * @brief Copy Constructor
95 * @param[in] textStyle
98 TextInputTextStyle(const TextInputTextStyle& textStyle );
101 * @Assignment Constructor
105 TextInputTextStyle& operator=(const TextInputTextStyle& rhs);
109 TextStyle mInputStyle; // Stores the current input style.
110 StyleChangedSignalType mStyleChangedSignal; // Signal emitted when style changes.
113 } // namespace Internal
115 } // namespace Toolkit
119 #endif // __DALI_TOOLKIT_INTERNAL_TEXT_INPUT_TEXT_STYLE_H__