Tizen 2.1 base
[framework/osp/uifw.git] / src / ui / inc / FUiCtrl_GalleryTypes.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 #ifndef _FUI_CTRL_INTERNAL_GALLERY_ENUM_H_
18 #define _FUI_CTRL_INTERNAL_GALLERY_ENUM_H_
19
20 namespace Tizen { namespace Ui { namespace Controls {
21
22 enum _GalleryImageRotation
23 {
24         GALLERY_INTERNAL_IMAGE_ROTATION_0 = 0,  /**< No rotate */
25         GALLERY_INTERNAL_IMAGE_ROTATION_90,             /**< The 90 degree clockwise rotation */
26         GALLERY_INTERNAL_IMAGE_ROTATION_180,    /**< The clockwise rotation */
27         GALLERY_INTERNAL_IMAGE_ROTATION_270             /**< The anticlockwise rotation */
28 };
29
30 enum _GallerySlideShowType {
31         GALLERY_SLIDESHOW_NONE = -1,
32         GALLERY_SLIDESHOW_DISSOLVE = 0,
33         GALLERY_SLIDESHOW_ZOOM,
34         GALLERY_SLIDESHOW_PAGE,
35 };
36
37 enum _GalleryAnimationTimingFunction
38 {
39         GALLERY_ANIMATION_TIMING_FUNC_LINEAR = 0,
40         GALLERY_ANIMATION_TIMING_FUNC_EASEIN,
41         GALLERY_ANIMATION_TIMING_FUNC_EASEOUT,
42         GALLERY_ANIMATION_TIMING_FUNC_EASEINOUT
43 };
44
45 enum _GalleryVerticalAlignment
46 {
47         GALLERY_VERTICAL_ALIGN_TOP = 0,
48         GALLERY_VERTICAL_ALIGN_MIDDLE, // default
49         GALLERY_VERTICAL_ALIGN_BOTTOM,
50 };
51
52 enum _GalleryHorizontalAlignment
53 {
54         GALLERY_HORIZONTAL_ALIGN_LEFT = 0,
55         GALLERY_HORIZONTAL_ALIGN_CENTER, // default
56         GALLERY_HORIZONTAL_ALIGN_RIGHT,
57 };
58
59 enum _GalleryFittingType
60 {
61         GALLERY_FITTING_TYPE_NONE = 0,
62         GALLERY_FITTING_TYPE_FIT,
63         GALLERY_FITTING_TYPE_FIT_XY,
64         GALLERY_FITTING_TYPE_STRECTABLE,
65         GALLERY_FITTING_TYPE_SHRINKABLE,
66 };
67
68
69 struct _GalleryAnimationTiming
70 {
71         int duration_ms;
72         _GalleryAnimationTimingFunction timingFunction;
73 };
74
75 struct _GalleryImageAlignment
76 {
77         _GalleryVerticalAlignment verticalAlignment;
78         _GalleryHorizontalAlignment horizontalAlignment;
79 };
80
81 }}} // Tizen::Ui::Controls
82
83 #endif //_FUI_CTRL_INTERNAL_GALLERY_ENUM_H_