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.
17 #ifndef _FUI_CTRL_INTERNAL_GALLERY_ITEM_H_
18 #define _FUI_CTRL_INTERNAL_GALLERY_ITEM_H_
20 #include <FBaseString.h>
21 #include <FGrpDimension.h>
22 #include <FGrpBitmap.h>
23 #include "FUiCtrl_ListItemCommon.h"
24 #include "FUiCtrl_GalleryTypes.h"
27 namespace Tizen { namespace Ui { namespace Controls {
32 : public _ListItemCommon
35 _GalleryItem(_GalleryBitmap* pImage = null, Tizen::Base::String imageFilePath = L"",
36 _GalleryImageRotation rotation = GALLERY_INTERNAL_IMAGE_ROTATION_0);
37 virtual ~_GalleryItem(void);
39 void SetGalleryItemImage(_GalleryBitmap* pImage);
40 _GalleryBitmap* GetGalleryItemImage(void) const;
41 void SetOriginGalleryItemImage(_GalleryBitmap* pImage);
42 _GalleryBitmap* GetOriginItemImage(void) const;
43 void SetGalleryItemFilePath(Tizen::Base::String& filePath);
44 Tizen::Base::String GetGalleryItemFilePath(void) const;
45 void SetGalleryRotation(_GalleryImageRotation rotation);
46 _GalleryImageRotation GetGalleryRotation(void) const;
48 virtual bool DrawItem(Tizen::Graphics::Rectangle &rcItem, ListItemState isFocused, bool itemDivider = false)
53 virtual void SetItemIndex(int groupIndex, int itemIndex);
54 virtual void GetItemIndex(int& groupIndex, int& itemIndex) const;
57 _GalleryItem(const _GalleryItem& rhs);
58 _GalleryItem& operator=(const _GalleryItem& rhs);
61 _GalleryBitmap* __pOriginImage;
62 _GalleryBitmap* __pImage;
63 Tizen::Base::String __imageFilePath;
64 _GalleryImageRotation __rotation;
68 }}} // Tizen::Ui::Controls
70 #endif //_FUI_CTRL_INTERNAL_GALLERY_ITEM_H_