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_CustomListElements.cpp
20 * @brief This is the header file for the classes related to implementing elements in CustomListItem.
23 #include <FBaseSysLog.h>
24 #include <FGrp_BitmapImpl.h>
25 #include <FGrp_TextTextObject.h>
26 #include <FGrp_TextTextSimple.h>
27 #include "FUiCtrl_CustomListItemImpl.h"
28 #include "FUiCtrl_CustomListItemFormatImpl.h"
29 #include "FUiCtrl_PanelImpl.h"
30 #include "FUi_ResourceManager.h"
32 using namespace Tizen::Base;
33 using namespace Tizen::Base::Collection;
34 using namespace Tizen::Graphics;
35 using namespace Tizen::Graphics::_Text;
37 namespace Tizen { namespace Ui { namespace Controls
40 _ElementBaseModel::_ElementBaseModel(void)
42 , _itemStatus(CUSTOM_LIST_ITEM_STATUS_NORMAL)
46 _ElementBaseModel::~_ElementBaseModel(void)
51 _ElementBaseModel::GetElementId(void)
57 _ElementBaseModel::GetItemStatus(void)
63 _ElementBaseModel::HandleElementEvent(CustomListItemStatus itemStatus)
65 _itemStatus = itemStatus;
68 _TextElementModel::_TextElementModel(const String& text)
71 , __slidingEnabled(false)
75 _TextElementModel::~_TextElementModel(void)
80 _TextElementModel::SetTextSliding(bool enable)
82 __slidingEnabled = enable;
86 _TextElementModel::GetTextSliding(void)
88 return __slidingEnabled;
92 _TextElementModel::GetData(String& text, Color& textColor, int& textSize) const
95 textColor = __textColor[_itemStatus];
96 textSize = __textSize;
102 _TextElementModel::GetTextSize(void) const
108 _TextElementModel::CreateElementView(_ElementViewParams& elementParams)
110 _TextElementModel* pTextElementModel = dynamic_cast<_TextElementModel*>(elementParams.pElementModel);
111 SysTryReturn(NID_UI_CTRL, (pTextElementModel != null), E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error has occurred. Failed to get element model");
113 SysTryReturn(NID_UI_CTRL, (elementParams.pElementFormatData != null), E_SYSTEM, E_SYSTEM, "[E_INVALID_ARG] Invalid argument is used. pElementFormatData must not be null");
114 SysTryReturn(NID_UI_CTRL, (elementParams.pTableViewItemBase != null), E_SYSTEM, E_SYSTEM, "[E_INVALID_ARG] Invalid argument is used. pTableViewItemBase must not be null");
115 SysTryReturn(NID_UI_CTRL, (elementParams.pCustomListItemImpl != null), E_SYSTEM, E_SYSTEM, "[E_INVALID_ARG] Invalid argument is used. pCustomListItemImpl must not be null");
117 pTextElementModel->__textSize = elementParams.pElementFormatData->textSize;
118 pTextElementModel->__textColor[CUSTOM_LIST_ITEM_STATUS_NORMAL] = elementParams.pElementFormatData->normalTextColor;
119 pTextElementModel->__textColor[CUSTOM_LIST_ITEM_STATUS_FOCUSED] = elementParams.pElementFormatData->focusedTextColor;
120 pTextElementModel->__textColor[CUSTOM_LIST_ITEM_STATUS_SELECTED] = elementParams.pElementFormatData->highlightedTextColor;
122 TextObject* pText = new (std::nothrow) TextObject();
123 SysTryReturn(NID_UI_CTRL, pText, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
127 TextSimple* pSimpleText = new (std::nothrow) TextSimple(const_cast <wchar_t*>(pTextElementModel->__text.GetPointer()), pTextElementModel->__text.GetLength());
128 SysTryReturn(NID_UI_CTRL, pSimpleText, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
130 pText->AppendElement(*pSimpleText);
132 pText->SetAction(TEXT_OBJECT_ACTION_TYPE_NONE);
133 pText->SetAlignment(TEXT_OBJECT_ALIGNMENT_LEFT | TEXT_OBJECT_ALIGNMENT_MIDDLE);
134 pText->SetWrap(TEXT_OBJECT_WRAP_TYPE_NONE);
137 _TextElementView* pTextElementView = new (std::nothrow) _TextElementView(pText);
138 SysTryReturn(NID_UI_CTRL, (pTextElementView != null), E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
140 pTextElementView->Construct(elementParams.pElementFormatData->rect);
141 pTextElementView->AddTouchEventListener(*elementParams.pCustomListItemImpl);
142 elementParams.pTableViewItemBase->AddControl(*pTextElementView);
143 pTextElementView->SetModel(pTextElementModel);
144 elementParams.pTableViewItemBase->SetIndividualSelectionEnabled(pTextElementView, true);
149 _BitmapElementModel::_BitmapElementModel(void)
151 for (int i = 0; i <= CUSTOM_LIST_ITEM_STATUS_FOCUSED; i++)
157 _BitmapElementModel::~_BitmapElementModel(void)
159 for (int i = 0; i <= CUSTOM_LIST_ITEM_STATUS_FOCUSED; i++)
166 _BitmapElementModel::GetData(void) const
168 return __pBitmap[_itemStatus];
172 _BitmapElementModel::CreateElementView(_ElementViewParams& elementParams)
174 _BitmapElementModel* pBitmapElementModel = dynamic_cast<_BitmapElementModel*>(elementParams.pElementModel);
175 SysTryReturn(NID_UI_CTRL, (pBitmapElementModel != null), E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error has occurred. Failed to get element model");
177 SysTryReturn(NID_UI_CTRL, (elementParams.pElementFormatData != null), E_SYSTEM, E_SYSTEM, "[E_INVALID_ARG] Invalid argument is used. pElementFormatData must not be null");
178 SysTryReturn(NID_UI_CTRL, (elementParams.pCustomListItemImpl != null), E_SYSTEM, E_SYSTEM, "[E_INVALID_ARG] Invalid argument is used. pCustomListItemImpl must not be null");
179 SysTryReturn(NID_UI_CTRL, (elementParams.pTableViewItemBase != null), E_SYSTEM, E_SYSTEM, "[E_INVALID_ARG] Invalid argument is used. pTableViewItemBase must not be null");
181 _BitmapElementView* pBitmapElementView = new (std::nothrow) _BitmapElementView();
182 SysTryReturn(NID_UI_CTRL, (pBitmapElementView != null), E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
184 pBitmapElementView->Construct(elementParams.pElementFormatData->rect);
185 pBitmapElementView->AddTouchEventListener(*elementParams.pCustomListItemImpl);
186 elementParams.pTableViewItemBase->AddControl(*pBitmapElementView);
187 pBitmapElementView->SetModel(pBitmapElementModel);
188 elementParams.pTableViewItemBase->SetIndividualSelectionEnabled(pBitmapElementView, true);
193 _CustomElementModel::_CustomElementModel(void)
194 : __pListElement(null)
198 _CustomElementModel::~_CustomElementModel(void)
203 _CustomElementModel::GetData(void) const
205 return __pListElement;
209 _CustomElementModel::CreateElementView(_ElementViewParams& elementParams)
211 _CustomElementModel* pCustomElementModel = dynamic_cast<_CustomElementModel*>(elementParams.pElementModel);
212 SysTryReturn(NID_UI_CTRL, (pCustomElementModel != null), E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error has occurred. Failed to get element model");
214 SysTryReturn(NID_UI_CTRL, (elementParams.pElementFormatData != null), E_SYSTEM, E_SYSTEM, "[E_INVALID_ARG] Invalid argument is used. pElementFormatData must not be null");
215 SysTryReturn(NID_UI_CTRL, (elementParams.pCustomListItemImpl != null), E_SYSTEM, E_SYSTEM, "[E_INVALID_ARG] Invalid argument is used. pCustomListItemImpl must not be null");
216 SysTryReturn(NID_UI_CTRL, (elementParams.pTableViewItemBase != null), E_SYSTEM, E_SYSTEM, "[E_INVALID_ARG] Invalid argument is used. pTableViewItemBase must not be null");
218 _CustomElementView* pCustomElementView = new (std::nothrow) _CustomElementView();
219 SysTryReturn(NID_UI_CTRL, (pCustomElementView != null), E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
221 pCustomElementView->Construct(elementParams.pElementFormatData->rect);
222 pCustomElementView->AddTouchEventListener(*elementParams.pCustomListItemImpl);
223 elementParams.pTableViewItemBase->AddControl(*pCustomElementView);
224 pCustomElementView->SetModel(pCustomElementModel);
225 elementParams.pTableViewItemBase->SetIndividualSelectionEnabled(pCustomElementView, true);
230 _CheckElementModel::_CheckElementModel(void)
231 : __checkBoxStatus(CHECK_BOX_UNCHECKED)
232 , __pCheckBitmaps(null)
233 , __isDividerEnabled(false)
234 , __rightDivider(false)
235 , __leftDivider(false)
239 _CheckElementModel::~_CheckElementModel(void)
244 _CheckElementModel::SetCheckBoxStatus(_CheckBoxBitmapType checkBoxStatus)
246 __checkBoxStatus = checkBoxStatus;
250 _CheckElementModel::GetCheckBoxStatus(void)
252 return __checkBoxStatus;
255 const _CheckBoxBitmapType
256 _CheckElementModel::GetCheckBoxStatus(void) const
258 return __checkBoxStatus;
262 _CheckElementModel::GetData(Rectangle& bitmapBounds, bool& isDividerEnabled, bool& leftDivider, bool& rightDivider) const
264 bitmapBounds = __bitmapBounds;
265 isDividerEnabled = __isDividerEnabled;
266 leftDivider = __leftDivider;
267 rightDivider = __rightDivider;
273 _CheckElementModel::GetCheckBitmap(void) const
275 return __pCheckBitmaps[__checkBoxStatus];
279 _CheckElementModel::CreateElementView(_ElementViewParams& elementParams)
281 SysTryReturn(NID_UI_CTRL, (elementParams.pElementFormatData != null), E_SYSTEM, E_SYSTEM, "[E_INVALID_ARG] Invalid argument is used. pElementFormatData must not be null");
282 SysTryReturn(NID_UI_CTRL, (elementParams.pCustomListItemImpl != null), E_SYSTEM, E_SYSTEM, "[E_INVALID_ARG] Invalid argument is used. pCustomListItemImpl must not be null");
283 SysTryReturn(NID_UI_CTRL, (elementParams.pTableViewItemBase != null), E_SYSTEM, E_SYSTEM, "[E_INVALID_ARG] Invalid argument is used. pTableViewItemBase must not be null");
285 if (elementParams.annexStyle != TABLE_VIEW_ANNEX_STYLE_NORMAL)
287 Rectangle checkBoxBounds(elementParams.pElementFormatData->rect);
288 int dividerMargin = 0;
290 GET_SHAPE_CONFIG(LIST::CHECK_ELEMENT_DIVIDER_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, dividerMargin);
292 if (elementParams.isDividerEnabled)
294 checkBoxBounds.width += 2 * dividerMargin;
295 checkBoxBounds.y = 0;
296 checkBoxBounds.height = elementParams.pCustomListItemImpl->height;
299 _CheckElementModel* pCheckElementModel = dynamic_cast<_CheckElementModel*>(elementParams.pElementModel);
300 SysTryReturn(NID_UI_CTRL, (pCheckElementModel != null), E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error has occurred. Failed to get element model");
302 pCheckElementModel->__pCheckBitmaps = elementParams.pCheckBitmaps;
303 pCheckElementModel->__isDividerEnabled = elementParams.isDividerEnabled;
305 pCheckElementModel->__bitmapBounds.width = elementParams.pElementFormatData->rect.width;
306 pCheckElementModel->__bitmapBounds.height = elementParams.pElementFormatData->rect.height;
308 if (elementParams.isDividerEnabled)
310 pCheckElementModel->__bitmapBounds.x = ((checkBoxBounds.x + dividerMargin) > elementParams.pElementFormatData->rect.x) ? (dividerMargin) : (0);
311 pCheckElementModel->__bitmapBounds.y = elementParams.pElementFormatData->rect.y;
313 _CustomListItemImpl::SetDividerRequired(*elementParams.pElementFormat, elementParams.pElementFormatData->rect, pCheckElementModel->__leftDivider, pCheckElementModel->__rightDivider);
317 pCheckElementModel->__bitmapBounds.x = 0;
318 pCheckElementModel->__bitmapBounds.y = 0;
321 _CheckElementView* pCheckElementView = new (std::nothrow) _CheckElementView();
322 SysTryReturn(NID_UI_CTRL, (pCheckElementView != null), E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
324 pCheckElementView->Construct(checkBoxBounds);
325 pCheckElementView->AddTouchEventListener(*elementParams.pCustomListItemImpl);
326 elementParams.pTableViewItemBase->AddControl(*pCheckElementView);
327 pCheckElementView->SetModel(pCheckElementModel);
328 elementParams.pTableViewItemBase->SetIndividualSelectionEnabled(pCheckElementView, true);
334 _ElementBaseView::_ElementBaseView(void)
335 : __pElementBaseModel(null)
339 _ElementBaseView::~_ElementBaseView(void)
344 _ElementBaseView::GetElementId(void) const
346 SysTryReturn(NID_UI_CTRL, (__pElementBaseModel != null), -1, E_SYSTEM, "Element model not set");
348 return __pElementBaseModel->GetElementId();
351 _TextElementView::_TextElementView(TextObject* pText)
356 _TextElementView::~_TextElementView(void)
358 __pText->RemoveAll();
366 _TextElementView::OnDraw(void)
368 result r = E_SUCCESS;
370 _TextElementModel* __pTextElementModel = dynamic_cast<_TextElementModel*>(__pElementBaseModel);
371 SysTryReturn(NID_UI_CTRL, (__pTextElementModel), E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error occured. Failed to get _TextElementModel.");
373 Canvas* pCanvas = GetCanvasN();
375 SysTryReturn(NID_UI_CTRL, (pCanvas), r, r, "[%s] Propagating.", GetErrorMessage(r));
381 __pTextElementModel->GetData(text, textColor, textSize);
383 if (IsEnabled() == false)
385 GET_COLOR_CONFIG(LIST::LIST_ELEMENT_TEXT_DISABLED_COLOR, textColor);
388 pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
393 Rectangle bounds = GetBounds();
397 _ListBaseImpl* pListBaseImpl = _CustomListItemImpl::GetListBaseImplFromElement(*this);
398 SysTryCatch(NID_UI_CTRL, (pListBaseImpl != null), , E_SYSTEM, "[E_SYSTEM] A system error has occurred. Failed to get _ListBaseImpl instance.");
401 r = font.Construct(pListBaseImpl->GetCore().GetFont(), FONT_STYLE_PLAIN, textSize);
404 font.Construct(FONT_STYLE_PLAIN, textSize);
407 __pText->SetFont(&font, 0, __pText->GetTextLength());
408 __pText->SetForegroundColor(textColor, 0, __pText->GetTextLength());
409 __pText->SetBounds(bounds);
410 __pText->Draw(*_CanvasImpl::GetInstance(*pCanvas));
422 _TextElementView::SetModel(_TextElementModel* pTextElementModel)
424 __pElementBaseModel = pTextElementModel;
428 _TextElementView::StartTextSlide(void)
430 if (IsEnabled() == false)
435 Canvas* pCanvas = GetCanvasN();
436 SysTryReturnVoidResult(NID_UI_CTRL, (pCanvas != null), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
438 pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
441 if (__pText->GetTextLengthAt(0) < __pText->GetTextLength())
443 __pText->SetAction(TEXT_OBJECT_ACTION_TYPE_SLIDE_LEFT);
445 __pText->DrawWithOffset(*_CanvasImpl::GetInstance(*pCanvas));
449 __pText->Draw(*_CanvasImpl::GetInstance(*pCanvas));
456 _TextElementView::StopTextSlide(void)
458 if (IsEnabled() == false)
463 Canvas* pCanvas = GetCanvasN();
464 SysTryReturnVoidResult(NID_UI_CTRL, (pCanvas != null), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
466 pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
469 __pText->SetAction(TEXT_OBJECT_ACTION_TYPE_NONE);
470 __pText->SetAlignment(TEXT_OBJECT_ALIGNMENT_LEFT | TEXT_OBJECT_ALIGNMENT_MIDDLE);
471 __pText->SetWrap(TEXT_OBJECT_WRAP_TYPE_NONE);
473 __pText->DrawWithOffset(*_CanvasImpl::GetInstance(*pCanvas));
478 _BitmapElementView::_BitmapElementView(void)
482 _BitmapElementView::~_BitmapElementView(void)
487 _BitmapElementView::OnDraw(void)
489 result r = E_SUCCESS;
490 Canvas* pCanvas = GetCanvasN();
493 SysTryReturn(NID_UI_CTRL, (pCanvas), r, r, "[%s] Propagating.", GetErrorMessage(r));
495 _BitmapElementModel* __pBitmapElementModel = dynamic_cast<_BitmapElementModel*>(__pElementBaseModel);
496 SysTryReturn(NID_UI_CTRL, (__pBitmapElementModel), E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error has occured. Failed to get _BitmapElementModel.");
498 Bitmap *pBitmap = __pBitmapElementModel->GetData();
502 pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
505 if (pBitmap->IsNinePatchedBitmap())
507 pCanvas->DrawNinePatchedBitmap(Rectangle(0, 0, GetWidth(), GetHeight()), *pBitmap);
511 pCanvas->DrawBitmap(Rectangle(0, 0, GetWidth(), GetHeight()), *pBitmap);
521 _BitmapElementView::SetModel(_BitmapElementModel* pBitmapElementModel)
523 __pElementBaseModel = static_cast<_ElementBaseModel*>(pBitmapElementModel);
526 _CustomElementView::_CustomElementView(void)
530 _CustomElementView::~_CustomElementView(void)
535 _CustomElementView::OnDraw(void)
537 result r = E_SUCCESS;
538 Canvas* pCanvas = GetCanvasN();
540 CustomListItemStatus itemStatus;
541 ICustomListElement* pListElement;
544 SysTryReturn(NID_UI_CTRL, (pCanvas), r, r, "[%s] Propagating.", GetErrorMessage(r));
546 _CustomElementModel* __pCustomElementModel = dynamic_cast<_CustomElementModel*>(__pElementBaseModel);
547 SysTryCatch(NID_UI_CTRL, (__pCustomElementModel), , E_SYSTEM, "[E_SYSTEM] A system error has occured. Failed to get _CustomElementModel.");
549 itemStatus = __pCustomElementModel->GetItemStatus();
550 pListElement = __pCustomElementModel->GetData();
554 TableViewItemBase* pParentItem = dynamic_cast<TableViewItemBase*>(GetParent());
555 SysTryCatch(NID_UI_CTRL, pParentItem, , E_SYSTEM, "[E_SYSTEM] Failed to get parent item");
557 Color bgColor = pParentItem->GetBackgroundColor(TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL);
559 pCanvas->SetBackgroundColor(bgColor);
561 pListElement->DrawElement(*pCanvas, Rectangle(0, 0, GetWidth(), GetHeight()), itemStatus);
574 _CustomElementView::SetModel(_CustomElementModel* pCustomElementModel)
576 __pElementBaseModel = static_cast<_ElementBaseModel*>(pCustomElementModel);
579 _CheckElementView::_CheckElementView(void)
580 : __pressedState(false)
582 GET_COLOR_CONFIG(LIST::LISTITEM_DIVIDER_LEFT_HALF_COLOR, __leftHalfDividerColor);
583 GET_COLOR_CONFIG(LIST::LISTITEM_DIVIDER_RIGHT_HALF_COLOR, __rightHalfDividerColor);
586 _CheckElementView::~_CheckElementView(void)
591 _CheckElementView::OnDraw(void)
593 result r = E_SUCCESS;
594 Canvas* pCanvas = GetCanvasN();
597 SysTryReturn(NID_UI_CTRL, (pCanvas), r, r, "[%s] Propagating.", GetErrorMessage(r));
599 Rectangle bitmapBounds;
600 bool isDividerEnabled = false;
601 bool leftDivider = false;
602 bool rightDivider = false;
603 Bitmap* pCheckBitmap = null;
605 _CheckElementModel* __pCheckElementModel = dynamic_cast<_CheckElementModel*>(__pElementBaseModel);
606 SysTryCatch(NID_UI_CTRL, (__pCheckElementModel), , E_SYSTEM, "[E_SYSTEM] A system error has occured. Failed to get _CheckElementModel.");
608 __pCheckElementModel->GetData(bitmapBounds, isDividerEnabled, leftDivider, rightDivider);
610 if (isDividerEnabled)
612 _ListBaseImpl* pListBaseImpl = _CustomListItemImpl::GetListBaseImplFromElement(*this);
618 if (__pressedState == true)
620 GET_COLOR_CONFIG(TABLEVIEW::ITEM_BG_PRESSED, bgColor);
624 bgColor = pListBaseImpl->GetBackgroundColor();
625 Color defaultColor(0, 0, 0, 0);
626 _ContainerImpl* pParent = null;
628 while (bgColor == defaultColor)
630 pParent = pListBaseImpl->GetParent();
634 bgColor = pParent->GetBackgroundColor();
643 pCanvas->SetBackgroundColor(bgColor);
648 pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
651 pCheckBitmap = __pCheckElementModel->GetCheckBitmap();
654 pCanvas->DrawBitmap(bitmapBounds, *pCheckBitmap);
656 if (isDividerEnabled)
660 GET_SHAPE_CONFIG(LIST::CHECK_ELEMENT_DIVIDER_WIDTH, _CONTROL_ORIENTATION_PORTRAIT, lineWidth);
662 Rectangle bounds = GetBounds();
663 int dividerHeight = 0;
665 dividerHeight = bounds.height / 2;
666 bounds.y = bounds.y + ((bounds.height - dividerHeight) / 2);
670 pCanvas->SetLineWidth(lineWidth / 2);
671 pCanvas->SetForegroundColor(__leftHalfDividerColor);
672 pCanvas->DrawLine(Point(0, bounds.y), Point(0, dividerHeight + bounds.y));
674 pCanvas->SetLineWidth(lineWidth / 2);
675 pCanvas->SetForegroundColor(__rightHalfDividerColor);
676 pCanvas->DrawLine(Point(1, bounds.y), Point(1, dividerHeight + bounds.y));
681 pCanvas->SetLineWidth(lineWidth / 2);
682 pCanvas->SetForegroundColor(__leftHalfDividerColor);
683 pCanvas->DrawLine(Point(bounds.width - lineWidth, bounds.y), Point(bounds.width - lineWidth, dividerHeight + bounds.y));
685 pCanvas->SetLineWidth(lineWidth / 2);
686 pCanvas->SetForegroundColor(__rightHalfDividerColor);
687 pCanvas->DrawLine(Point(bounds.width - lineWidth + 1, bounds.y), Point(bounds.width - lineWidth + 1, dividerHeight + bounds.y));
700 _CheckElementView::SetModel(_CheckElementModel* pCheckElementModel)
702 __pElementBaseModel = static_cast<_ElementBaseModel*>(pCheckElementModel);
706 _CheckElementView::SetPressed(bool pressedState)
708 __pressedState = pressedState;
711 }}} //Tizen::Ui::Controls