remove dead code from shadow view (OnStageConnection & OnStageDisconnection)
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / popup / popup-style-impl.h
1 #ifndef __DALI_TOOLKIT_INTERNAL_POPUP_STYLE_H__
2 #define __DALI_TOOLKIT_INTERNAL_POPUP_STYLE_H__
3
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 // EXTERNAL INCLUDES
22 #include <dali/public-api/common/intrusive-ptr.h>
23 #include <dali/public-api/math/vector2.h>
24 #include <dali/public-api/math/vector3.h>
25 #include <dali/public-api/math/vector4.h>
26 #include <dali/public-api/object/ref-object.h>
27
28 #include <string>
29
30 namespace Dali
31 {
32
33 namespace Toolkit
34 {
35
36 namespace Internal
37 {
38
39 class PopupStyle;
40
41 typedef IntrusivePtr<PopupStyle> PopupStylePtr;
42
43 /**
44  * A PopupStyle describes the images, positions, sizes, and various other metrics
45  * which define how the popup should look.
46  */
47 class PopupStyle : public RefObject
48 {
49 public:
50
51   /**
52    * Virtual destructor.
53    */
54   virtual ~PopupStyle();
55
56 public:
57
58   Vector4 backingColor;                               ///< Color of backing layer (covers entire screen)
59   std::string backgroundImage;                        ///< Background image path
60   std::string buttonAreaImage;                        ///< This image is for the back ground area common for all the buttons in the popup
61   Vector2 backgroundSize;                             ///< Background image size.
62   Vector4 backgroundScale9Border;                     ///< Background scale-9 border settings.
63   Vector4 backgroundOuterBorder;                      ///< Background outer border settings.
64   Vector4 buttonArea9PatchBorder;                     ///< 9 patch border constants for buttonAreaImage
65   float margin;                                       ///< Margin for all contents (body, title, button)
66   float buttonSpacing;                                ///< Horizontal spacing for buttons.
67   Vector3 buttonSize;                                 ///< Size of Buttons.
68   Vector3 bottomSize;                                 ///< size of bottom button bar.
69   std::string bottomBackgroundImage;                  ///< bottom background image path.
70   std::string tailUpImage;                            ///< Tail Up-side image path.
71   std::string tailDownImage;                          ///< Tail Down-side image path.
72   std::string tailLeftImage;                          ///< Tail Left-side image path.
73   std::string tailRightImage;                         ///< Tail Right-side image path.
74
75 protected:
76
77   /**
78    * Create a new PopupStyle; Only derived versions are instantiable.
79    */
80   PopupStyle();
81 };
82
83 class PopupStyleDefault;
84
85 typedef IntrusivePtr<PopupStyleDefault> PopupStyleDefaultPtr;
86
87 /**
88  * This is the default popup style.
89  */
90 class PopupStyleDefault : public PopupStyle
91 {
92 public:
93
94   /**
95    * Create a new PopupStyle
96    */
97   static PopupStyleDefaultPtr New();
98
99   /**
100    * Virtual destructor.
101    */
102   virtual ~PopupStyleDefault();
103
104 private:
105
106 protected:
107
108   /**
109    * Protected constructor; see also PopupStyleDefault::New()
110    */
111   PopupStyleDefault();
112 };
113
114 } // namespace Internal
115
116 } // namespace Toolkit
117
118 } // namespace Dali
119
120 #endif // __DALI_TOOLKIT_INTERNAL_POPUP_STYLE_H__