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 FUiCtrl_TabItem.h
19 * @brief This is the header file for the _TabItem class.
21 * This header file contains the declarations of the %_Tab class.
24 #ifndef _FUICTRL_INTERNAL_TABITEM_H_
25 #define _FUICTRL_INTERNAL_TABITEM_H_
27 #include <FBaseObject.h>
28 #include <FBaseString.h>
29 #include <FGrpRectangle.h>
31 namespace Tizen { namespace Graphics {
35 namespace Tizen { namespace Ui { namespace Controls {
40 _TABITEM_STATUS_NORMAL = 0, /** The normal status */
41 _TABITEM_STATUS_PRESSED, /** The pressed status */
42 _TABITEM_STATUS_SELECTED, /** The selected status */
43 _TABITEM_STATUS_HIGHLIGHTED, /** The focused status */
44 _TABITEM_STATUS_DISABLED, /** The disabled status */
53 _TABITEM_STYLE_ICON_TEXT
66 : public Tizen::Base::Object
69 _TabItem(const _TabItem& value);
70 _TabItem& operator =(const _TabItem& value);
74 virtual ~_TabItem(void);
77 void SetActionId(int actionId);
78 int GetActionId(void) const;
80 void SetUpdateState(bool bUpdate);
81 int GetUpdateState(void) const;
83 void SetText(const Tizen::Base::String& text);
84 Tizen::Base::String GetText(void) const;
86 void SetIcon(const Tizen::Graphics::Bitmap& icon);
87 Tizen::Graphics::Bitmap* GetIcon(void) const;
89 void SetBadgeIcon(const Tizen::Graphics::Bitmap& icon);
90 Tizen::Graphics::Bitmap* GetBadgeIcon(void) const;
92 void SetItemBounds(Tizen::Graphics::Rectangle bounds);
93 Tizen::Graphics::Rectangle GetItemBounds(void) const;
95 void SetStatus(_TabItemStatus status);
96 _TabItemStatus GetStatus(void) const;
98 void SetStyle(int style);
99 _TabItemStyle GetStyle(void) const;
108 Tizen::Base::String __text;
110 Tizen::Graphics::Bitmap* __pbmIcon;
111 Tizen::Graphics::Bitmap* __pbmBadge;
113 Tizen::Graphics::Rectangle __bounds;
115 _TabItemStatus __status;
118 }}} // Tizen::Ui::Controls
120 #endif // _FUICTRL_INTERNAL_TABITEM_H_