1 #ifndef __DALI_TOOLKIT_INTERNAL_POPUP_STYLE_H__
2 #define __DALI_TOOLKIT_INTERNAL_POPUP_STYLE_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
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>
39 typedef IntrusivePtr<PopupStyle> PopupStylePtr;
42 * A PopupStyle describes the images, positions, sizes, and various other metrics
43 * which define how the popup should look.
45 class PopupStyle : public RefObject
52 virtual ~PopupStyle();
56 Vector4 backingColor; ///< Color of backing layer (covers entire screen)
57 std::string backgroundImage; ///< Background image path
58 std::string buttonAreaImage; ///< This image is for the back ground area common for all the buttons in the popup
59 Vector2 backgroundSize; ///< Background image size.
60 Vector4 backgroundScale9Border; ///< Background scale-9 border settings.
61 Vector4 backgroundOuterBorder; ///< Background outer border settings.
62 Vector4 buttonArea9PatchBorder; ///< 9 patch border constants for buttonAreaImage
63 float margin; ///< Margin for all contents (body, title, button)
64 float buttonSpacing; ///< Horizontal spacing for buttons.
65 Vector3 buttonSize; ///< Size of Buttons.
66 Vector3 bottomSize; ///< size of bottom button bar.
67 std::string bottomBackgroundImage; ///< bottom background image path.
68 std::string tailUpImage; ///< Tail Up-side image path.
69 std::string tailDownImage; ///< Tail Down-side image path.
70 std::string tailLeftImage; ///< Tail Left-side image path.
71 std::string tailRightImage; ///< Tail Right-side image path.
76 * Create a new PopupStyle; Only derived versions are instantiable.
81 class PopupStyleDefault;
83 typedef IntrusivePtr<PopupStyleDefault> PopupStyleDefaultPtr;
86 * This is the default popup style.
88 class PopupStyleDefault : public PopupStyle
93 * Create a new PopupStyle
95 static PopupStyleDefaultPtr New();
100 virtual ~PopupStyleDefault();
107 * Protected constructor; see also PopupStyleDefault::New()
112 } // namespace Internal
114 } // namespace Toolkit
118 #endif // __DALI_TOOLKIT_INTERNAL_POPUP_STYLE_H__