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 FUiCtrlSimpleItem.h
20 * @brief This is the header file for the %SimpleItem class.
22 * This header file contains the declarations of the %SimpleItem class and its helper classes.
25 #ifndef _FUI_CTRL_SIMPLE_ITEM_H_
26 #define _FUI_CTRL_SIMPLE_ITEM_H_
28 #include <FBaseObject.h>
29 #include <FBaseTypes.h>
30 #include <FGrpBitmap.h>
31 #include <FGrpRectangle.h>
32 #include <FUiCtrlListItemBase.h>
34 namespace Tizen { namespace Ui { namespace Controls
37 class _SimpleItemImpl;
41 * @brief This class defines the common behavior of a %SimpleItem.
45 * The %SimpleItem class displays a list item, which is the unit of handling a ListView or GroupedListView. It provides the default
46 * formatting of the list items.
48 * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/guide/ui/implementing_listviews.htm">ListViews</a>.
52 class _OSP_EXPORT_ SimpleItem
57 * The object is not fully constructed after this constructor is
58 * called. For full construction, the Construct() method must be
59 * called right after calling this constructor.
66 * This destructor overrides Tizen::Base::Object::~Object().
70 virtual ~SimpleItem(void);
73 * Initializes this instance of %SimpleItem with the specified parameters.
77 * @return An error code
78 * @param[in] itemSize The size of the item
79 * @param[in] style The style of Annex
80 * @exception E_SUCCESS The method is successful.
81 * @exception E_SYSTEM A system error has occurred.
83 result Construct(const Tizen::Graphics::Dimension& itemSize, ListAnnexStyle style);
86 * Sets the text string and bitmap image for %SimpleItem.
90 * @return An error code
91 * @param[in] text The text string to add
92 * @param[in] pBitmap The bitmap image to display
93 * @exception E_SUCCESS The method is successful.
94 * @exception E_SYSTEM A system error has occurred.
96 result SetElement(const Tizen::Base::String& text, const Tizen::Graphics::Bitmap* pBitmap = null);
100 // The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
102 SimpleItem(const SimpleItem& rhs);
105 // The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
107 SimpleItem& operator =(const SimpleItem& rhs);
110 }}} // Tizen::Ui::Controls
112 #endif // _FUI_CTRL_SIMPLE_ITEM_H_