Merge "Use Fonts from property system" into new_text
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / text / text-io.h
1 #ifndef __DALI_TEXT_ABSTRACTION_TEXT_IO_H__
2 #define __DALI_TEXT_ABSTRACTION_TEXT_IO_H__
3
4 /*
5  * Copyright (c) 2015 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 <iosfwd>
23 #include <dali/public-api/common/dali-vector.h>
24
25 // INTERNAL INCLUDES
26 #include <dali-toolkit/internal/text/font-run.h>
27 #include <dali-toolkit/internal/text/script-run.h>
28 #include <dali-toolkit/internal/text/text-definitions.h>
29
30 namespace Dali
31 {
32
33 namespace Toolkit
34 {
35
36 namespace Text
37 {
38
39 /**
40  * @brief Print a vector of characters.
41  *
42  * @param [in] o The output stream operator.
43  * @param [in] text The text to print.
44  * @return The output stream operator.
45  */
46 std::ostream& operator<< (std::ostream& o, const Vector<Character>& text);
47
48 /**
49  * @brief Print a vector of script runs.
50  *
51  * @param [in] o The output stream operator.
52  * @param [in] scriptRuns The script runs to print.
53  * @return The output stream operator.
54  */
55 std::ostream& operator<< (std::ostream& o, const Vector<ScriptRun>& scriptRuns);
56
57 /**
58  * @brief Print a vector of font runs.
59  *
60  * @param [in] o The output stream operator.
61  * @param [in] fontRuns The font runs to print.
62  * @return The output stream operator.
63  */
64 std::ostream& operator<< (std::ostream& o, const Vector<FontRun>& fontRuns);
65
66 } // namespace Text
67
68 } // namespace Toolkit
69
70 } // namespace Dali
71
72 #endif // __DALI_TEXT_ABSTRACTION_TEXT_IO_H__