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.cpp
19 * @brief This is the header file for the _TabItem class.
23 #include <FGrp_BitmapImpl.h>
24 #include "FUi_Control.h"
25 #include "FUi_ResourceManager.h"
26 #include "FUiCtrl_TabItem.h"
29 using namespace Tizen::Graphics;
31 namespace Tizen { namespace Ui { namespace Controls {
33 _TabItem::_TabItem(void)
36 , __style(_TABITEM_STYLE_TEXT)
40 , __status(_TABITEM_STATUS_NORMAL)
49 _TabItem::~_TabItem(void)
66 _TabItem::SetActionId(int actionId)
68 __actionId = actionId;
73 _TabItem::GetActionId(void) const
80 _TabItem::SetUpdateState(bool bUpdate)
87 _TabItem::GetUpdateState(void) const
94 _TabItem::SetText(const Tizen::Base::String& text)
101 _TabItem::GetText(void) const
108 _TabItem::SetIcon(const Bitmap& icon)
111 Tizen::Graphics::Bitmap* __pBitmap = _BitmapImpl::CloneN(icon);
112 result r = GetLastResult();
113 SysTryReturnVoidResult(NID_UI_CTRL, (__pBitmap), r, "[%s] Propagating.", GetErrorMessage(r));
115 __pbmIcon = __pBitmap;
122 _TabItem::GetIcon(void) const
129 _TabItem::SetBadgeIcon(const Bitmap& icon)
131 Tizen::Graphics::Bitmap* __pBitmap = _BitmapImpl::CloneN(icon);
132 result r = GetLastResult();
133 SysTryReturnVoidResult(NID_UI_CTRL, (__pBitmap), r, "[%s] Propagating.", GetErrorMessage(r));
135 __pbmBadge = __pBitmap;
142 _TabItem::GetBadgeIcon(void) const
149 _TabItem::SetItemBounds(Rectangle bounds)
156 _TabItem::GetItemBounds(void) const
163 _TabItem::SetStatus(_TabItemStatus status)
170 _TabItem::GetStatus(void) const
177 _TabItem::SetStyle(int style)
184 _TabItem::GetStyle(void) const
186 return _TabItemStyle(__style);
190 }}} // Tizen::Ui::Controls