2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.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
9 // http://www.apache.org/licenses/LICENSE-2.0/
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.
19 * @file FGrpCanvasCommon.h
20 * @brief This is the header file for the enumerations of the Canvas class.
22 * This header file contains the definitions of the enumerations of the Canvas class.
25 #ifndef _FGRP_CANVAS_COMMON_H_
26 #define _FGRP_CANVAS_COMMON_H_
28 namespace Tizen { namespace Graphics
33 * Defines the line style.
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.
47 * Defines the arc style.
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.
65 * Defines the flip direction.
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.
80 * Defines the line cap style.
86 LINE_CAP_STYLE_ROUND, /**< A rounded end */
87 LINE_CAP_STYLE_BUTT, /**< A flat end */
88 LINE_CAP_STYLE_SQUARE /**< A square end */
94 * Defines the line join style.
100 LINE_JOIN_STYLE_ROUND, /**< A rounded corner */
101 LINE_JOIN_STYLE_MITER, /**< A sharp corner */
102 LINE_JOIN_STYLE_BEVEL /**< A beveled corner */
106 * @enum CompositeMode
108 * Defines the composite mode.
112 * @remarks The area affected by Canvas::CompositeMode can be either bounded or unbounded.
113 * In some cases, the area in which composition is performed can be bounded by the source region, or unbounded and the composition affects all of the Canvas pixels.
117 COMPOSITE_MODE_CLEAR, /**< Clearing destination that is bounded */
118 COMPOSITE_MODE_SRC, /**< Replacing source that is bounded */
119 COMPOSITE_MODE_DST, /**< Ignoring the destination */
120 COMPOSITE_MODE_SRC_OVER, /**< Drawing source on top of a destination */
121 COMPOSITE_MODE_DST_OVER, /**< Drawing destination on top of a source */
122 COMPOSITE_MODE_SRC_IN, /**< Drawing source only on the area that is overlapped by source and destination and it is unbounded */
123 COMPOSITE_MODE_DST_IN, /**< Drawing destination only on the area that is overlapped by source and destination and it is unbounded */
124 COMPOSITE_MODE_SRC_OUT, /**< Drawing source only on the area that is not overlapped by source and destination and it is unbounded */
125 COMPOSITE_MODE_DST_OUT, /**< Drawing destination only on the area that is not overlapped by source and destination */
126 COMPOSITE_MODE_SRC_ATOP, /**< Replacing source only on the area that is overlapped by source and destination */
127 COMPOSITE_MODE_DST_ATOP, /**< Replacing destination only on the area that is overlapped by source and destination and it is unbounded */
128 COMPOSITE_MODE_DST_XOR, /**< Drawing source and destination on the area that is other than the area overlapped by source and destination */
129 COMPOSITE_MODE_ADD, /**< Adding source and destination */
130 COMPOSITE_MODE_SATURATE, /**< Compositing like @c COMPOSITE_MODE_SRC_OVER as long as source and destination are disjoint geometries */
131 COMPOSITE_MODE_MULTIPLY, /**< Multiplying source and destination */
132 COMPOSITE_MODE_SCREEN, /**< Complementing and multiplying source and destination */
133 COMPOSITE_MODE_OVERLAY, /**< Multiplying and screening destination based on the area that is overlapped by source and destination and destination color */
134 COMPOSITE_MODE_DARKEN, /**< Darkening the destination based on the area that is overlapped by source and destination and destination color */
135 COMPOSITE_MODE_LIGHTEN /**< Lightening destination based on the area that is overlapped by source and destination and destination color */
138 } } // Tizen::Graphics
140 #endif // _FGRP_CANVAS_COMMON_H_