2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
9 // http://floralicense.org/license/
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 bounded or unbounded.
113 * For some cases, the area in which composition is performed can be bounded by the source region, or the area can be unbounded and the composition affects all the Canvas pixels.
117 COMPOSITE_MODE_CLEAR, /**< Clearing destination layer */
118 COMPOSITE_MODE_SRC, /**< Replacing destination layer */
119 COMPOSITE_MODE_DST, /**< Ignoring the source */
120 COMPOSITE_MODE_SRC_OVER, /**< Drawing source layer on top of destination layer */
121 COMPOSITE_MODE_DST_OVER, /**< Drawing destination on top of source */
122 COMPOSITE_MODE_SRC_IN, /**< Drawing source when there is destination content */
123 COMPOSITE_MODE_DST_IN, /**< Leaving destination only when there is source content */
124 COMPOSITE_MODE_SRC_OUT, /**< Drawing source when there is no destination content */
125 COMPOSITE_MODE_DST_OUT, /**< Leaving destination only when there is no source content */
126 COMPOSITE_MODE_SRC_ATOP, /**< Drawing source only on top of destination content */
127 COMPOSITE_MODE_DST_ATOP, /**< Leaving destination only on top of source content */
128 COMPOSITE_MODE_DST_XOR, /**< Source and destination are shown where there is only one of them */
129 COMPOSITE_MODE_ADD, /**< Source and destination layers are accumulated */
130 COMPOSITE_MODE_SATURATE, /**< Source and destination are disjoint geometries */
131 COMPOSITE_MODE_MULTIPLY, /**< Source and destination layers are multiplied @n This causes the result to be at least as dark as the darker inputs. */
132 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. */
133 COMPOSITE_MODE_OVERLAY, /**< This mode multiplies or screens, depending on the lightness of the destination color */
134 COMPOSITE_MODE_DARKEN, /**< This mode replaces the destination with the source if it is darker, otherwise keeps the source */
135 COMPOSITE_MODE_LIGHTEN /**< This mode replaces the destination with the source if it is lighter, otherwise keeps the source */
138 } } // Tizen::Graphics
140 #endif // _FGRP_CANVAS_COMMON_H_