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_CANVAS_MANAGER_H_
18 #define _FUI_CTRL_INTERNAL_GALLERY_CANVAS_MANAGER_H_
20 namespace Tizen { namespace Base { namespace Collection {
24 }}} // Tizen::Base::Collection
26 namespace Tizen { namespace Ui { namespace Controls {
28 class _GalleryRootCanvas;
30 class _GalleryAnimationProvider;
32 class _GalleryCanvasManager
35 virtual ~_GalleryCanvasManager(void);
37 static _GalleryCanvasManager* CreateCanvasManagerN(Tizen::Ui::_Control& control, int initialCanvasCount,
38 Tizen::Graphics::Rectangle& initialCanvasBounds,
39 _GalleryAnimationProvider* pVEDelegator);
41 result ResetCanvasManager(int canvasCount, Tizen::Graphics::Rectangle& canvasBounds);
42 int GetCanvasCount(void) const;
43 _GalleryRootCanvas& GetRootCanvas(void) const;
44 _GalleryCanvas* GetCanvas(int canvasIndex) const;
45 result ReleaseAllCanvasResource(void);
46 result ResetAllCanvas(Tizen::Graphics::Rectangle& canvasBounds);
47 result LoadAllCanvasImage(void);
50 _GalleryCanvasManager(_GalleryCanvasManager& rhs);
51 _GalleryCanvasManager& operator=(const _GalleryCanvasManager& rhs);
53 _GalleryCanvasManager(void);
54 result Construct(Tizen::Ui::_Control& control, int initialCanvasCount, Tizen::Graphics::Rectangle& initialCanvasBounds);
56 result RemoveAllCanvas(void);
58 void SetControl(Tizen::Ui::_Control& control);
59 Tizen::Ui::_Control& GetControl(void) const;
61 void SetRootCanvas(_GalleryRootCanvas& rootCanvas);
63 void SetCanvasCount(int canvasCount);
64 void SetAnimationDelegator(_GalleryAnimationProvider& pVEDelegator);
65 _GalleryAnimationProvider& GetAnimationDelegator(void) const;
68 Tizen::Ui::_Control* __pControl;
69 _GalleryRootCanvas* __pRootCanvas;
70 Tizen::Base::Collection::ArrayList __canvasArray;
71 _GalleryAnimationProvider* __pVEDelegator;
72 }; // _GalleryCanvasManager
74 }}} // Tizen::Ui::Controls
76 #endif //_FUI_CTRL_INTERNAL_GALLERY_CANVAS_MANAGER_H_