Fix key event propagation in text controller
[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) 2021 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 <dali/public-api/common/dali-vector.h>
23 #include <iosfwd>
24
25 // INTERNAL INCLUDES
26 #include <dali-toolkit/internal/text/font-run.h>
27 #include <dali-toolkit/internal/text/line-run.h>
28 #include <dali-toolkit/internal/text/script-run.h>
29 #include <dali-toolkit/internal/text/text-definitions.h>
30
31 namespace Dali
32 {
33 namespace Toolkit
34 {
35 namespace Text
36 {
37 /**
38  * @brief Print a vector of characters.
39  *
40  * @param [in] o The output stream operator.
41  * @param [in] text The text to print.
42  * @return The output stream operator.
43  */
44 std::ostream& operator<<(std::ostream& o, const Vector<Character>& text);
45
46 /**
47  * @brief Print a vector of script runs.
48  *
49  * @param [in] o The output stream operator.
50  * @param [in] scriptRuns The script runs to print.
51  * @return The output stream operator.
52  */
53 std::ostream& operator<<(std::ostream& o, const Vector<ScriptRun>& scriptRuns);
54
55 /**
56  * @brief Print a vector of font runs.
57  *
58  * @param [in] o The output stream operator.
59  * @param [in] fontRuns The font runs to print.
60  * @return The output stream operator.
61  */
62 std::ostream& operator<<(std::ostream& o, const Vector<FontRun>& fontRuns);
63
64 /**
65  * @brief Print a vector of line runs.
66  *
67  * @param [in] o The output stream operator.
68  * @param [in] lineRuns The line runs to print.
69  * @return The output stream operator.
70  */
71 std::ostream& operator<<(std::ostream& o, const Vector<LineRun>& lineRuns);
72
73 } // namespace Text
74
75 } // namespace Toolkit
76
77 } // namespace Dali
78
79 #endif // DALI_TEXT_ABSTRACTION_TEXT_IO_H