2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
9 // http://floralicense.org/license/
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.
18 * @file FUi_UiBuilderControlLayout.h
19 * @brief This is the header file for the %_UiBuilderControlLayout class.
21 * This header file contains the declarations of the %_UiBuilderControlLayout class.
24 #ifndef _FUI_INTERNAL_UI_BUILDER_CONTROL_LAYOUT_H_
25 #define _FUI_INTERNAL_UI_BUILDER_CONTROL_LAYOUT_H_
27 #include <FGrpRectangle.h>
28 #include "FUi_UiBuilderControlItem.h"
30 namespace Tizen { namespace Ui
33 * @class _UiBuilderControlLayout
34 * @brief This class is an implementation of a %_UiBuilderControlLayout.
37 * The %_UiBuilderControlLayout Class contains that coordinates of the control.
41 class _OSP_EXPORT_ _UiBuilderControlLayout
42 : public Tizen::Base::Object
45 _UiBuilderControlLayout(void);
46 virtual ~_UiBuilderControlLayout(void);
47 void SetStyle(const Tizen::Base::String& style);
48 void SetRect(const Tizen::Base::String& x, const Tizen::Base::String& y, Tizen::Base::String& width, Tizen::Base::String& height);
49 void SetRect(const float x, const float y, const float width, const float height);
50 void SetLayoutElement(int index, const Tizen::Base::String& name, const Tizen::Base::String& value);
51 Tizen::Base::String GetStyle(void) const;
52 Tizen::Graphics::Rectangle GetRect(void) const;
53 Tizen::Graphics::FloatRectangle GetRectF(void) const;
54 bool GetLayoutElement(const Tizen::Base::String& layoutElementName, Tizen::Base::String& outValue) const;
57 _UiBuilderControlLayout(const _UiBuilderControlLayout& rhs);
58 _UiBuilderControlLayout& operator =(const _UiBuilderControlLayout& rhs);
59 enum _UiBuilderDockTypeDef
61 _UIBUILDER_DOCK_LEFT = 0x00001,
62 _UIBUILDER_DOCK_RIGHT = 0x00002,
63 _UIBUILDER_DOCK_TOP = 0x00004,
64 _UIBUILDER_DOCK_BOTTOM = 0x00008
67 enum _UiBuilderFitTypeDef
69 _UIBUILDER_FIT_WIDTH = 0x00001,
70 _UIBUILDER_FIT_HEIGHT = 0x00002
74 Tizen::Base::String __styleInformation;
75 Tizen::Graphics::FloatRectangle __floatRect;
76 _UiBuilderControlElement __layoutElement[UIBUILDER_CONTROL_ELEMENT_NUMBER];
77 }; // _UiBuilderControlLayout
81 #endif //_FUI_INTERNAL_UI_BUILDER_CONTROL_LAYOUT_H_