Remove the unneccessary part
[platform/framework/native/uifw.git] / src / ui / inc / FUiCtrl_SliderOverlay.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0/
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_SliderOverlay.h
20  * @brief       This is the header file for the _SliderOverlay class.
21  *
22  * This header file contains the declarations of the %_SliderOverlay class.
23  */
24 #ifndef _FUI_CTRL_INTERNAL_SLIDEROVERLAY_H_
25 #define _FUI_CTRL_INTERNAL_SLIDEROVERLAY_H_
26
27 #include "FUi_Window.h"
28
29 namespace Tizen { namespace Ui { namespace Controls
30 {
31 class _SliderPresenter;
32
33
34 class _SliderOverlay
35         : public Tizen::Ui::_Window
36         , virtual public Tizen::Base::Runtime::IEventListener
37         , virtual public Tizen::Ui::_IUiEventListener
38         , virtual public Tizen::Ui::_IUiEventPreviewer
39 {
40 public:
41         _SliderOverlay(void);
42         virtual ~_SliderOverlay(void);
43
44         result Construct(_Control& owner);
45         result SetSliderRect(Tizen::Graphics::FloatRectangle& sliderRect, Tizen::Graphics::FloatRectangle& sliderTouchRect);
46         void SetFont(Tizen::Graphics::Font* pFont);
47         result DrawSliderOverlay(int positionX,int handleWidth, int value);
48
49         virtual bool IsActivatedOnOpen(void) const;
50         virtual result OnAttachedToMainTree(void);
51         virtual result OnDetachingFromMainTree(void);
52         virtual bool IsRotationSynchronized(void) const;
53
54 private:
55         result LoadBitmaps(void);
56
57         _SliderOverlay(const _SliderOverlay&);
58         _SliderOverlay& operator =(const _SliderOverlay&);
59
60 private:
61
62         static const int SLIDER_OVERLAY_SINGLE_DIGIT = 1;
63
64         Tizen::Graphics::FloatRectangle __sliderRect;
65         Tizen::Graphics::FloatRectangle __sliderTouchRect;
66         Tizen::Graphics::FloatRectangle __sliderOverlayRect;
67         Tizen::Graphics::Bitmap* __pOverlayBgBitmap;
68         Tizen::Graphics::Bitmap* __pOverlayBgEffectBitmap;
69         Tizen::Graphics::Color __overlayBgColor;
70         Tizen::Graphics::Color __overlayTextColor;
71
72         Tizen::Graphics::Font* __pFont;
73         _Control* __pOwner;
74         float __overlayWidth;
75
76 };      // _SliderOverlay
77
78 }}} // Tizen::Ui::Controls
79
80 #endif  // _FUI_CTRL_INTERNAL_SLIDEROVERLAY_H_