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.
19 * @file FUiCtrlIconListViewItem.cpp
20 * @brief This is the implementation file for the IconListViewItem class.
24 #include <FBaseSysLog.h>
25 #include <FUiCtrlIconListViewItem.h>
27 #include "FUiCtrl_IconListViewItemImpl.h"
29 using namespace Tizen::Base;
30 using namespace Tizen::Graphics;
32 namespace Tizen { namespace Ui { namespace Controls
35 IconListViewItem::IconListViewItem(void)
41 IconListViewItem::~IconListViewItem(void)
48 IconListViewItem::Construct(const Bitmap& bitmap, const String* pText, const Bitmap* pSelectedBitmap,
49 const Bitmap* pHighlightedBitmap)
51 // Check whether __pImpl has been set, that is, "already constructed" condition.
52 SysAssertf(__pImpl == null,
53 "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
55 __pImpl = _IconListViewItemImpl::CreateIconListViewItemImplN(*this, bitmap, pText, pSelectedBitmap, pHighlightedBitmap);
57 result r = GetLastResult();
60 SysLogException(NID_UI_CTRL, r, "[%s] Propagating.", GetErrorMessage(r));
71 IconListViewItem::SetOverlayBitmap(int overlayBitmapId, const Bitmap* pOverlayBitmap,
72 HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment)
74 // Check whether __pImpl has not been set as a precondition of this method, that is, "not-yet constructed" condition.
75 SysAssertf(__pImpl != null, "Not yet constructed. Construct() should be called before use.");
77 return __pImpl->SetOverlayBitmap(overlayBitmapId, pOverlayBitmap, horizontalAlignment, verticalAlignment);
80 }}} // Tizen::Ui::Controls