Revert " modify license, permission and remove ^M char"
[framework/osp/uifw.git] / src / ui / inc / FUiCtrl_GroupContainerPresenter.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
18 /*
19  * @file                FUiCtrl_GroupContainerPresenter.h
20  * @brief               This is the header file for the _GroupContainerPresenter class.
21  *
22  * This header file contains the declarations of the %_GroupContainerPresenter class.
23  */
24
25 #ifndef _FUI_CTRL_INTERNAL_GROUP_CONTAINER_PRESENTER_H_
26 #define _FUI_CTRL_INTERNAL_GROUP_CONTAINER_PRESENTER_H_
27
28 #include <FBaseObject.h>
29 #include "FUiCtrl_GroupContainer.h"
30
31 namespace Tizen { namespace Ui { namespace Controls
32 {
33 class _GroupContainer;
34
35 class _GroupContainerPresenter
36         : public Tizen::Base::Object
37 {
38 public:
39         _GroupContainerPresenter(void);
40         _GroupContainerPresenter(_GroupContainer& GroupContainer);
41         virtual ~_GroupContainerPresenter(void);
42
43 public:
44
45         void Draw(void);
46         result LoadResourceBitmaps(void);
47
48 private:
49         _GroupContainerPresenter(const _GroupContainerPresenter& rhs);
50         _GroupContainerPresenter& operator =(const _GroupContainerPresenter& rhs);
51         void DrawBackgroundBitmapForSystemChild(Tizen::Graphics::Canvas* pCanvas);
52         void DrawBackgroundBitmapForGroupContainer(Tizen::Graphics::Canvas* pCanvas);
53         void DrawBackgroundEffectBitmapForSystemChild(Tizen::Graphics::Canvas* pCanvas);
54         Tizen::Graphics::Color GetParentColor(void) const;
55
56 private:
57         static const int BORDER_LINE_WIDTH = 1;
58         _GroupContainer* __pGroupContainer;
59         Tizen::Graphics::Bitmap* __pSystemChildColorReplacedBgBitmap;
60         Tizen::Graphics::Bitmap* __pSystemChildBgEffectBitmap;
61         Tizen::Graphics::Bitmap* __pGroupContainerColorReplacedBgBitmap;
62         Tizen::Graphics::Color __parentBgColor;
63         Tizen::Graphics::Color __bgColor;
64 }; // _GroupContainerPresenter;
65
66 }}} // Tizen::Ui::Controls
67
68 #endif  // _FUI_CTRL_INTERNAL_GROUP_CONTAINER_PRESENTER_H_
69