1 #ifndef __DALI_TOOLKIT_TEXT_SEGMENTATION_H__
2 #define __DALI_TOOLKIT_TEXT_SEGMENTATION_H__
5 * Copyright (c) 2015 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.
22 #include <dali/public-api/common/dali-vector.h>
23 #include <dali-toolkit/public-api/text/text-definitions.h>
35 * Sets line break info.
37 * Possible values for LineBreakInfo are:
39 * - 0 is a LINE_MUST_BREAK. Text must be broken into a new line.
40 * - 1 is a LINE_ALLOW_BREAK. Is possible to break the text into a new line.
41 * - 2 is a LINE_NO_BREAK. Text can't be broken into a new line.
43 * @param[in] text Vector of UTF-32 characters.
44 * @param[out] lineBreakInfo The line break info
46 void SetLineBreakInfo( const Vector<Character>& text,
47 Vector<LineBreakInfo>& lineBreakInfo );
50 * Sets word break info.
52 * - 0 is a WORD_BREAK. Text can be broken into a new word.
53 * - 1 is a WORD_NO_BREAK. Text can't be broken into a new word.
55 * @param[in] text Vector of UTF-32 characters.
56 * @param[out] wordBreakInfo The word break info.
58 void SetWordBreakInfo( const Vector<Character>& text,
59 Vector<WordBreakInfo>& wordBreakInfo );
63 } // namespace Toolkit
67 #endif // __DALI_TOOLKIT_TEXT_SEGMENTATION_H__