2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0/
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.
19 * @file FUiCtrl_SliderOverlay.h
20 * @brief This is the header file for the _SliderOverlay class.
22 * This header file contains the declarations of the %_SliderOverlay class.
24 #ifndef _FUI_CTRL_INTERNAL_SLIDEROVERLAY_H_
25 #define _FUI_CTRL_INTERNAL_SLIDEROVERLAY_H_
27 #include "FUi_Window.h"
29 namespace Tizen { namespace Ui { namespace Controls
31 class _SliderPresenter;
35 : public Tizen::Ui::_Window
36 , virtual public Tizen::Base::Runtime::IEventListener
37 , virtual public Tizen::Ui::_IUiEventListener
38 , virtual public Tizen::Ui::_IUiEventPreviewer
42 virtual ~_SliderOverlay(void);
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);
49 virtual bool IsActivatedOnOpen(void) const;
50 virtual result OnAttachedToMainTree(void);
51 virtual result OnDetachingFromMainTree(void);
52 virtual bool IsRotationSynchronized(void) const;
55 result LoadBitmaps(void);
57 _SliderOverlay(const _SliderOverlay&);
58 _SliderOverlay& operator =(const _SliderOverlay&);
62 static const int SLIDER_OVERLAY_SINGLE_DIGIT = 1;
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;
72 Tizen::Graphics::Font* __pFont;
78 }}} // Tizen::Ui::Controls
80 #endif // _FUI_CTRL_INTERNAL_SLIDEROVERLAY_H_