Merge "Fix Ime Rotation" into tizen_2.1
[platform/framework/native/uifw.git] / inc / FGrpCanvasCommon.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://floralicense.org/license/
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file        FGrpCanvasCommon.h
20  * @brief       This is the header file for the enumerations of the Canvas class.
21  *
22  * This header file contains the definitions of the enumerations of the Canvas class.
23  */
24
25 #ifndef _FGRP_CANVAS_COMMON_H_
26 #define _FGRP_CANVAS_COMMON_H_
27
28 namespace Tizen { namespace Graphics
29 {
30 /**
31  * @enum        LineStyle
32  *
33  * Defines the line style.
34  *
35  * @since       2.0
36  */
37 enum LineStyle
38 {
39         LINE_STYLE_SOLID = 1, /**< The solid line style */
40         LINE_STYLE_MAX, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
41         LINE_STYLE_MIN = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
42 };
43
44 /**
45  * @enum        ArcStyle
46  *
47  * Defines the arc style.
48  *
49  * @since       2.0
50  */
51 enum ArcStyle
52 {
53         ARC_STYLE_ONLY = 1, /**< An arc line is drawn */
54         ARC_STYLE_PIE, /**< A pie (arc and chords) is drawn */
55         ARC_STYLE_CHORD, /**< A chord is drawn */
56         ARC_STYLE_FILLED_PIE, /**< A filled pie is drawn */
57         ARC_STYLE_FILLED_CHORD, /**< A filled chord is drawn */
58         ARC_STYLE_MAX, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
59         ARC_STYLE_MIN = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
60 };
61
62 /**
63  * @enum        FlipDirection
64  *
65  * Defines the flip direction.
66  *
67  * @since       2.0
68  */
69 enum FlipDirection
70 {
71         FLIP_DIRECTION_HORIZONTAL = 1, /**< The horizontal type */
72         FLIP_DIRECTION_VERTICAL, /**< The vertical type */
73         FLIP_DIRECTION_MAX, // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
74         FLIP_DIRECTION_MIN = 0 // This enum value is for internal use only. Using this enum value can cause behavioral, security-related, and consistency-related issues in the application.
75 };
76
77 /**
78  * @enum                LineCapStyle
79  *
80  * Defines the line cap style.
81  *
82  * @since       2.1
83  */
84 enum LineCapStyle
85 {
86         LINE_CAP_STYLE_ROUND, /**< A rounded end */
87         LINE_CAP_STYLE_BUTT, /**< A flat end */
88         LINE_CAP_STYLE_SQUARE /**< A square end */
89 };
90
91 /**
92  * @enum                LineJoinStyle
93  *
94  * Defines the line join style.
95  *
96  * @since       2.1
97  */
98 enum LineJoinStyle
99 {
100         LINE_JOIN_STYLE_ROUND, /**< A rounded corner */
101         LINE_JOIN_STYLE_MITER, /**< A sharp corner */
102         LINE_JOIN_STYLE_BEVEL /**< A beveled corner */
103 };
104
105 /**
106 * @enum        CompositeMode
107 *
108 * Defines the composite mode.
109 *
110 * @since         2.1
111 */
112 enum CompositeMode
113 {
114         COMPOSITE_MODE_CLEAR, /**< Clearing destination layer */
115         COMPOSITE_MODE_SRC, /**< Replacing destination layer */
116         COMPOSITE_MODE_DST, /**< Ignoring the source */
117         COMPOSITE_MODE_SRC_OVER, /**< Drawing source layer on top of destination layer */
118         COMPOSITE_MODE_DST_OVER, /**< Drawing destination on top of source */
119         COMPOSITE_MODE_SRC_IN, /**< Drawing source when there is destination content */
120         COMPOSITE_MODE_DST_IN, /**< Leaving destination only when there is source content */
121         COMPOSITE_MODE_SRC_OUT, /**< Drawing source when there is no destination content */
122         COMPOSITE_MODE_DST_OUT, /**< Leaving destination only when there is no source content */
123         COMPOSITE_MODE_SRC_ATOP, /**< Drawing source only on top of destination content */
124         COMPOSITE_MODE_DST_ATOP, /**< Leaving destination only on top of source content */
125         COMPOSITE_MODE_DST_XOR, /**< Source and destination are shown where there is only one of them */
126         COMPOSITE_MODE_ADD, /**< Source and destination layers are accumulated */
127         COMPOSITE_MODE_SATURATE, /**< Source and destination are disjoint geometries */
128         COMPOSITE_MODE_MULTIPLY, /**< Source and destination layers are multiplied @n This causes the result to be at least as dark as the darker inputs. */
129         COMPOSITE_MODE_SCREEN, /**< Source and destination are complemented and multiplied @n This causes the result to be at least as light as the lighter inputs. */
130         COMPOSITE_MODE_OVERLAY, /**< This mode multiplies or screens, depending on the lightness of the destination color */
131         COMPOSITE_MODE_DARKEN, /**< This mode replaces the destination with the source if it is darker, otherwise keeps the source */
132         COMPOSITE_MODE_LIGHTEN /**< This mode replaces the destination with the source if it is lighter, otherwise keeps the source */
133 };
134
135 } } // Tizen::Graphics
136
137 #endif // _FGRP_CANVAS_COMMON_H_