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_LayoutLayoutItemProxy.h
19 * @brief This is the header file for LayoutItemProxy class.
21 * This header file contains the declaration of LayoutItemProxy class.
26 #ifndef _FUI_INTERNAL_LAYOUT_LAYOUT_ITEM_PROXY_H_
27 #define _FUI_INTERNAL_LAYOUT_LAYOUT_ITEM_PROXY_H_
29 #include "FUi_LayoutLayoutItem.h"
31 namespace Tizen { namespace Ui { namespace _Layout
39 int GetIndex(void) const;
41 LayoutItem* GetItem(void) const;
43 void SetItemAlignment(const ItemAlign align);
44 ItemAlign GetItemAlignment(void) const;
46 void SetItemMargin(const ItemMargin margin);
47 ItemMargin GetItemMargin(void) const;
49 void SetItemWidthMatchMode(const LayoutMatchMode matchmode);
50 LayoutMatchMode GetItemWidthMatchMode(void) const;
51 void SetItemHeightMatchMode(const LayoutMatchMode matchmode);
52 LayoutMatchMode GetItemHeightMatchMode(void) const;
54 void SetItemBaseRect(const LayoutRect rect);
55 LayoutRect GetItemBaseRect(void) const;
57 void SetMeasuredSize(int width, int height);
58 void GetMeasuredSize(int& width, int& height) const;
60 result SetItemWindowRect(const LayoutRect itemRect, bool calculating = true);
61 void GetItemWindowRect(LayoutRect& itemRect) const;
63 void ConvertWindowToClientBounds(const LayoutRect windowRect, LayoutRect& clientRect);
65 result Measure(int width, int height);
66 void Visible(const bool visible);
68 void SetParentLayout(Layout* pLayout);
69 Layout* GetParentLayout(void) const;
71 void GetMinSize(LayoutSize& minSize) const;
72 void GetMaxSize(LayoutSize& maxSize) const;
74 void SetParentContainer(LayoutContainer* pParentContainer);
75 LayoutContainer* GetParentContainer(void) const;
78 LayoutItemProxy(LayoutItem& pRealItem);
79 LayoutItemProxy(const LayoutItemProxy&);
80 LayoutItemProxy& operator =(const LayoutItemProxy&);
82 virtual ~LayoutItemProxy(void);
84 void SetIndex(int index);
85 static LayoutItemProxy* Create(Layout& pLayout, LayoutItem& pRealItem);
93 ItemAlign __itemAlign;
94 ItemMargin __itemMargin;
96 LayoutMatchMode __widthMatchmode;
97 LayoutMatchMode __heightMatchmode;
99 LayoutRect __baseRect;
100 LayoutRect __calculatedRect;
102 Layout* __pParentLayout;
105 friend class ProxyList;
106 }; // LayoutItemProxy
108 }}} //Tizen::Ui::_Layout
110 #endif // _FUI_INTERNAL_LAYOUT_LAYOUT_ITEM_PROXY_H_