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 FUiCtrl_CustomItemImpl.h
20 * @brief This is the header file for the _CustomItemImpl class.
22 * This header file contains the declarations of the _CustomItemImpl class.
25 #ifndef _FUI_CTRL_CUSTOM_ITEM_IMPL_H_
26 #define _FUI_CTRL_CUSTOM_ITEM_IMPL_H_
28 #include "FUiCtrl_ListItemBaseImpl.h"
30 namespace Tizen { namespace Ui { namespace Controls
37 : public _ListItemBaseImpl
40 static _CustomItemImpl* CreateCustomItemImplN(CustomItem* pPublic, const Tizen::Graphics::Dimension& itemSize, ListAnnexStyle style);
42 virtual ~_CustomItemImpl(void);
44 virtual CustomItem& GetPublic(void);
46 virtual const char* GetPublicClassName(void) const;
48 virtual result Construct(const Tizen::Graphics::Dimension& itemSize, ListAnnexStyle style);
50 result AddElement(const Tizen::Graphics::Rectangle& rect, int elementId, const Tizen::Graphics::EnrichedText& text);
52 result AddElement(const Tizen::Graphics::Rectangle& rect, int elementId, const Tizen::Base::String& text, bool textSliding = true);
54 result AddElement(const Tizen::Graphics::Rectangle& rect, int elementId, const Tizen::Base::String& text, int textSize,
55 const Tizen::Graphics::Color& normalTextColor, const Tizen::Graphics::Color& pressedTextColor,
56 const Tizen::Graphics::Color& highlightedTextColor, bool textSliding = true);
58 result AddElement(const Tizen::Graphics::Rectangle& rect, int elementId, const Tizen::Graphics::Bitmap& normalBitmap,
59 const Tizen::Graphics::Bitmap* pPressedBitmap = null, const Tizen::Graphics::Bitmap* pHighlightedBitmap = null);
61 result AddElement(const Tizen::Graphics::Rectangle& rect, int elementId, const Tizen::Ui::Controls::ICustomElement& element);
63 result RemoveAllElements(void);
65 result RemoveElement(int elementId);
67 result SetElementSelectionEnabled(int elementId, bool enable);
69 result SetElementTextHorizontalAlignment(int elementId, HorizontalAlignment alignment);
71 result SetElementTextVerticalAlignment(int elementId, VerticalAlignment alignment);
73 result SetElementAutoLinkMask(int elementId, unsigned long mask);
76 _CustomItemImpl(CustomItem* pPublic);
78 _CustomItemImpl(const _CustomItemImpl& rhs);
80 _CustomItemImpl& operator =(const _CustomItemImpl& rhs);
83 }}} // Tizen::Ui::Controls
85 #endif // _FUI_CTRL_CUSTOM_ITEM_IMPL_H_