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_IconListItemDrawingProperty.cpp
20 * @brief This is the implementation file for the _IconListItemDrawingProperty class.
24 #include <FBaseSysLog.h>
25 #include <FGrp_BitmapImpl.h>
27 #include "FUi_ResourceManager.h"
28 #include "FUiCtrl_IconListItemDrawingProperty.h"
30 using namespace Tizen::Base;
31 using namespace Tizen::Graphics;
32 using namespace Tizen::Ui;
34 namespace Tizen { namespace Ui { namespace Controls
37 _IconListItemDrawingProperty::_IconListItemDrawingProperty(void)
40 , __normalTextColor(0)
41 , __pressedTextColor(0)
42 , __highlightedTextColor(0)
44 , __bitmapBounds(0, 0, 0, 0)
45 , __pDropShadowBitmap(null)
46 , __pFocusDropShadowBitmap(null)
47 , __pDropShadowBitmapWithReplacementColor(null)
48 , __dropShadowBorderWidth(0)
49 , __dropShadowMargin(0)
50 , __pCheckBitmap(null)
51 , __pCheckedBackgroundBitmap(null)
52 , __pUnCheckedBackgroundBitmap(null)
53 , __pDisabledCheckBitmap(null)
56 , __pressedBackgroundColor(0)
57 , __normalBorderColor(0)
58 , __focusBorderColor(0)
59 , __inTextBackgroundColor(0)
62 , __checkBoxPosition(ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_RIGHT)
63 , __borderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE)
64 , __textHorizontalAlignment(ALIGNMENT_CENTER)
65 , __textVerticalAlignment(ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_INSIDE_BOTTOM)
68 , __asAspectRatio(true)
69 , __checkedStyle(false)
71 , __insideOneLineTextHeight(0)
72 , __insideTwoLineTextHeight(0)
73 , __selectBackgroundMargin(0)
74 , __itemTextHorizontalMargin(0)
75 , __itemTextVerticalMargin(0)
80 _IconListItemDrawingProperty::~_IconListItemDrawingProperty(void)
82 delete __pDropShadowBitmap;
83 __pDropShadowBitmap = null;
85 delete __pFocusDropShadowBitmap;
86 __pFocusDropShadowBitmap = null;
88 delete __pDropShadowBitmapWithReplacementColor;
89 __pDropShadowBitmapWithReplacementColor = null;
91 delete __pCheckBitmap;
92 __pCheckBitmap = null;
94 delete __pCheckedBackgroundBitmap;
95 __pCheckedBackgroundBitmap = null;
97 delete __pUnCheckedBackgroundBitmap;
98 __pUnCheckedBackgroundBitmap = null;
100 delete __pDisabledCheckBitmap;
101 __pDisabledCheckBitmap = null;
104 _IconListItemDrawingProperty*
105 _IconListItemDrawingProperty::CreateInstanceN(void)
107 _IconListItemDrawingProperty* pProperty = new (std::nothrow) _IconListItemDrawingProperty;
108 SysTryReturn(NID_UI_CTRL, (pProperty != null), null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
110 result r = pProperty->Initialize();
111 SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
122 _IconListItemDrawingProperty::Initialize(void)
124 result r = E_SUCCESS;
129 // Load Drop Shadow Bitmap
130 GET_FIXED_VALUE_CONFIG(ICONLIST::DROP_SHADOW_BORDER, _CONTROL_ORIENTATION_PORTRAIT, __dropShadowBorderWidth);
131 GET_FIXED_VALUE_CONFIG(ICONLIST::DROP_SHADOW_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, __dropShadowMargin);
132 GET_FIXED_VALUE_CONFIG(ICONLIST::DROP_SHADOW_WIDTH, _CONTROL_ORIENTATION_PORTRAIT, width);
133 GET_FIXED_VALUE_CONFIG(ICONLIST::DROP_SHADOW_HEIGHT, _CONTROL_ORIENTATION_PORTRAIT, height);
135 if (width > 0 && height > 0)
137 r = GET_BITMAP_CONFIG_N(ICONLIST::ITEM_BORDER_NORMAL, BITMAP_PIXEL_FORMAT_ARGB8888, __pDropShadowBitmap);
140 delete __pDropShadowBitmap;
141 __pDropShadowBitmap = null;
143 SysLogException(NID_UI_CTRL, r, "[%s] Propagating.", GetErrorMessage(r));
147 r = GET_BITMAP_CONFIG_N(ICONLIST::ITEM_BORDER_HIGHLIGHTED, BITMAP_PIXEL_FORMAT_ARGB8888, __pFocusDropShadowBitmap);
150 delete __pFocusDropShadowBitmap;
151 __pFocusDropShadowBitmap = null;
153 SysLogException(NID_UI_CTRL, r, "[%s] Propagating.", GetErrorMessage(r));
159 GET_FIXED_VALUE_CONFIG(ICONLIST::CHECKBOX_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, __checkMargin);
161 Dimension dimension(0, 0);
162 GET_DIMENSION_CONFIG(ICONLIST::CHECKBOX_SIZE, _CONTROL_ORIENTATION_PORTRAIT, dimension);
163 width = dimension.width;
164 height = dimension.height;
166 if (width > 0 && height > 0)
168 r = GET_BITMAP_CONFIG_N(ICONLIST::CHECK_SELECTED, BITMAP_PIXEL_FORMAT_ARGB8888, __pCheckBitmap);
171 delete __pCheckBitmap;
172 __pCheckBitmap = null;
174 SysLogException(NID_UI_CTRL, r, "[%s] Propagating.", GetErrorMessage(r));
178 r = GET_BITMAP_CONFIG_N(ICONLIST::CHECK_BG_SELECTED, BITMAP_PIXEL_FORMAT_ARGB8888, __pCheckedBackgroundBitmap);
181 delete __pCheckedBackgroundBitmap;
182 __pCheckedBackgroundBitmap = null;
184 SysLogException(NID_UI_CTRL, r, "[%s] Propagating.", GetErrorMessage(r));
188 r = GET_BITMAP_CONFIG_N(ICONLIST::CHECK_BG_NORMAL, BITMAP_PIXEL_FORMAT_ARGB8888, __pUnCheckedBackgroundBitmap);
191 delete __pUnCheckedBackgroundBitmap;
192 __pUnCheckedBackgroundBitmap = null;
194 SysLogException(NID_UI_CTRL, r, "[%s] Propagating.", GetErrorMessage(r));
199 // Load overaly bitmap margin
200 GET_FIXED_VALUE_CONFIG(ICONLIST::OVERLAY_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, __overlayMargin);
202 // Load item press state background color
203 GET_COLOR_CONFIG(ICONLIST::ITEM_BG_PRESSED, __pressedBackgroundColor);
204 __pressedBackgroundColor.SetAlpha(0x80);
207 GET_COLOR_CONFIG(ICONLIST::ITEM_BORDER_NORMAL, __normalBorderColor);
208 GET_COLOR_CONFIG(ICONLIST::ITEM_BORDER_HIGHLIGHTED, __focusBorderColor);
210 // Load Drop Shadow Bitmap with Replacement Color
211 if (__pDropShadowBitmap != null)
213 __pDropShadowBitmapWithReplacementColor = _BitmapImpl::GetColorReplacedBitmapN(*__pDropShadowBitmap,
214 Color::GetColor(COLOR_ID_MAGENTA), __normalBorderColor);
215 SysTryReturn(NID_UI_CTRL, (__pDropShadowBitmapWithReplacementColor != null), r, r, "[%s] Propagating.", GetErrorMessage(r));
218 // Load Item Text Size & color
219 GET_SHAPE_CONFIG(ICONLIST::FONT_SIZE, _CONTROL_ORIENTATION_PORTRAIT, __textSize);
221 GET_COLOR_CONFIG(ICONLIST::TEXT_NORMAL, __normalTextColor);
222 GET_COLOR_CONFIG(ICONLIST::TEXT_PRESSED, __pressedTextColor);
223 GET_COLOR_CONFIG(ICONLIST::TEXT_HIGHLIGHTED, __highlightedTextColor);
225 GET_COLOR_CONFIG(ICONLIST::INNER_TEXT_BG_NORMAL, __inTextBackgroundColor);
226 __inTextBackgroundColor.SetAlpha(0x80);
228 // Load Item text height
229 GET_SHAPE_CONFIG(ICONLIST::VERTICAL_EXTENT, _CONTROL_ORIENTATION_PORTRAIT, __verticalExtent);
230 GET_SHAPE_CONFIG(ICONLIST::INSIDE_ONE_LINE_TEXT_HEIGHT, _CONTROL_ORIENTATION_PORTRAIT, __insideOneLineTextHeight);
231 GET_SHAPE_CONFIG(ICONLIST::INSIDE_TWO_LINE_TEXT_HEIGHT, _CONTROL_ORIENTATION_PORTRAIT, __insideTwoLineTextHeight);
234 GET_FIXED_VALUE_CONFIG(ICONLIST::SELECT_BG_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, __selectBackgroundMargin);
235 GET_FIXED_VALUE_CONFIG(ICONLIST::TEXT_HORIZONTAL_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, __itemTextHorizontalMargin);
236 GET_FIXED_VALUE_CONFIG(ICONLIST::TEXT_VERTICAL_MARGIN, _CONTROL_ORIENTATION_PORTRAIT, __itemTextVerticalMargin);
242 _IconListItemDrawingProperty::GetBackgroundColor(IconListViewItemDrawingStatus status) const
244 SysTryReturn(NID_UI_CTRL,
245 (status >= ICON_LIST_VIEW_ITEM_DRAWING_STATUS_NORMAL && status <= ICON_LIST_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED),
246 Color(0), E_INVALID_ARG, "[E_INVALID_ARG] Invalid value of drawing status is used.");
249 if (status == ICON_LIST_VIEW_ITEM_DRAWING_STATUS_PRESSED)
251 return __pressedBackgroundColor;
253 return Color(0, 0, 0, 0);
257 _IconListItemDrawingProperty::SetTextSize(int size)
260 GET_FIXED_VALUE_CONFIG(ICONLIST::MINIMUM_FONT_SIZE, _CONTROL_ORIENTATION_PORTRAIT, minSize);
261 SysTryReturn(NID_UI_CTRL, (size >= minSize), E_INVALID_ARG, E_INVALID_ARG,
262 "[E_INVALID_ARG] Invalid argument is used. Font size should be greater than or equal to the minimum size.");
264 if (__textSize != size)
273 _IconListItemDrawingProperty::GetTextSize(void) const
280 _IconListItemDrawingProperty::SetFont(Font* pFont)
282 SysTryReturn(NID_UI_CTRL, pFont != null, E_INVALID_ARG, E_INVALID_ARG, "[E_INVALID_ARG] Invalid argument is used.");
284 if (pFont == __pFont)
291 int oldVerticalExtent = __verticalExtent;
292 int defaultTextSize = 0;
293 GET_SHAPE_CONFIG(ICONLIST::FONT_SIZE, _CONTROL_ORIENTATION_PORTRAIT, defaultTextSize);
295 if (__textSize != defaultTextSize)
297 int leading = _FontImpl::GetInstance(*__pFont)->GetLeading();
298 __insideOneLineTextHeight = leading + __itemTextVerticalMargin * 2;
299 __insideTwoLineTextHeight = (leading << 1) + __itemTextVerticalMargin * 2;
300 __verticalExtent = __insideTwoLineTextHeight;
304 GET_SHAPE_CONFIG(ICONLIST::VERTICAL_EXTENT, _CONTROL_ORIENTATION_PORTRAIT, __verticalExtent);
305 GET_SHAPE_CONFIG(ICONLIST::INSIDE_ONE_LINE_TEXT_HEIGHT, _CONTROL_ORIENTATION_PORTRAIT, __insideOneLineTextHeight);
306 GET_SHAPE_CONFIG(ICONLIST::INSIDE_TWO_LINE_TEXT_HEIGHT, _CONTROL_ORIENTATION_PORTRAIT, __insideTwoLineTextHeight);
309 if (__textVerticalAlignment >= ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_OUTSIDE_TOP)
311 __size.height -= oldVerticalExtent;
312 __size.height = __size.height + __insideTwoLineTextHeight;
317 // Adjust layout of Item.
318 return SetItemLayout();
322 _IconListItemDrawingProperty::GetFont(void) const
328 _IconListItemDrawingProperty::SetTextColor(IconListViewItemDrawingStatus status, const Color color)
330 SysTryReturn(NID_UI_CTRL,
331 (status >= ICON_LIST_VIEW_ITEM_DRAWING_STATUS_NORMAL && status <= ICON_LIST_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED),
332 E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error has been occurred. Invalid value of drawing status.");
334 if (status == ICON_LIST_VIEW_ITEM_DRAWING_STATUS_NORMAL)
336 __normalTextColor = color;
338 else if (status == ICON_LIST_VIEW_ITEM_DRAWING_STATUS_PRESSED)
340 __pressedTextColor = color;
344 __highlightedTextColor = color;
352 _IconListItemDrawingProperty::GetTextColor(IconListViewItemDrawingStatus status) const
354 SysTryReturn(NID_UI_CTRL,
355 (status >= ICON_LIST_VIEW_ITEM_DRAWING_STATUS_NORMAL && status <= ICON_LIST_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED),
356 Color(0), E_SYSTEM, "[E_SYSTEM] A system error has been occurred. Invalid value of drawing status.");
360 if (status == ICON_LIST_VIEW_ITEM_DRAWING_STATUS_NORMAL)
362 return __normalTextColor;
364 else if (status == ICON_LIST_VIEW_ITEM_DRAWING_STATUS_PRESSED)
366 return __pressedTextColor;
370 return __highlightedTextColor;
375 _IconListItemDrawingProperty::GetTextBackgroundColor(void) const
377 if (__textVerticalAlignment >= ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_OUTSIDE_TOP)
379 return Color(0, 0, 0, 0);
381 return __inTextBackgroundColor;
385 _IconListItemDrawingProperty::GetBorderColor(bool isFocused) const
387 return isFocused ? __focusBorderColor : __normalBorderColor;
391 _IconListItemDrawingProperty::SetItemLayout(void)
395 (__textVerticalAlignment >= ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_INSIDE_TOP && __textVerticalAlignment <=
396 ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_OUTSIDE_BOTTOM), E_SYSTEM, E_SYSTEM,
397 "[E_SYSTEM] A system error has been occurred. The current state of vertical text alignment is not valid.");
399 switch (__textVerticalAlignment)
401 case ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_INSIDE_TOP:
403 __2LineTextYPos = __textYPos;
406 case ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_INSIDE_MIDDLE:
407 __textYPos = (__size.height - __insideOneLineTextHeight) >> 1;
408 __2LineTextYPos = (__size.height - __insideTwoLineTextHeight) >> 1;
411 case ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_INSIDE_BOTTOM:
412 __textYPos = __size.height - __insideOneLineTextHeight;
413 __2LineTextYPos = __size.height - __insideTwoLineTextHeight;
416 case ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_OUTSIDE_TOP:
417 __textYPos = __insideOneLineTextHeight - __itemTextVerticalMargin;
421 case ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_OUTSIDE_BOTTOM:
422 __textYPos = __size.height - __verticalExtent;
423 __2LineTextYPos = __textYPos;
432 _IconListItemDrawingProperty::SetItemBitmapBounds(const Rectangle bounds)
434 SysTryReturn(NID_UI_CTRL, (bounds.x >= 0 && bounds.y >= 0), E_INVALID_ARG, E_INVALID_ARG,
435 "[E_INVALID_ARG] Invalid argument is used. X and Y must be a non negative integer.");
436 SysTryReturn(NID_UI_CTRL, (bounds.width > 0 && bounds.height > 0), E_INVALID_ARG, E_INVALID_ARG,
437 "[E_INVALID_ARG] Invalid argument is used. Width and Height size should be larger than 0.");
439 __bitmapBounds = bounds;
440 __size.width = bounds.width;
441 __size.height = bounds.height;
443 if (__textVerticalAlignment >= ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_OUTSIDE_TOP)
445 __size.height += __insideTwoLineTextHeight;
449 return SetItemLayout();
453 _IconListItemDrawingProperty::GetItemBitmapBounds(void) const
457 Rectangle bounds(__bitmapBounds);
458 if (__textVerticalAlignment == ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_OUTSIDE_TOP)
460 bounds.y += __verticalExtent;
466 const Tizen::Graphics::Dimension
467 _IconListItemDrawingProperty::GetItemBitmapSize(void) const
470 return Dimension(__bitmapBounds.width, __bitmapBounds.height);
474 _IconListItemDrawingProperty::SetItemSize(const Tizen::Graphics::Dimension size)
476 SysTryReturn(NID_UI_CTRL, (size.width > 0 && size.height > 0), E_INVALID_ARG, E_INVALID_ARG,
477 "[E_INVALID_ARG] Invalid argument is used. Width and Height size should be larger than 0.");
483 const Tizen::Graphics::Dimension
484 _IconListItemDrawingProperty::GetItemSize(void) const
491 _IconListItemDrawingProperty::GetTextXPosition(void) const
493 return __itemTextHorizontalMargin;
497 _IconListItemDrawingProperty::GetTextYPosition(void) const
503 _IconListItemDrawingProperty::GetTwoLineTextYPosition(void) const
505 return __2LineTextYPos;
509 _IconListItemDrawingProperty::GetTextAreaWidth(void) const
511 return __bitmapBounds.width - __itemTextHorizontalMargin * 2;
515 _IconListItemDrawingProperty::GetTextVerticalMargin(void) const
517 return __itemTextVerticalMargin;
521 _IconListItemDrawingProperty::SetCheckBoxPosition(IconListViewCheckBoxPosition position)
525 (position >= ICON_LIST_VIEW_CHECK_BOX_POSITION_TOP_LEFT && position <= ICON_LIST_VIEW_CHECK_BOX_POSITION_BOTTOM_RIGHT),
526 E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error has been occurred. Invalid position of CheckBox is used.");
528 __checkBoxPosition = position;
534 IconListViewCheckBoxPosition
535 _IconListItemDrawingProperty::GetCheckBoxPosition(void) const
537 return __checkBoxPosition;
541 _IconListItemDrawingProperty::SetBorderStyle(IconListViewItemBorderStyle style)
543 SysTryReturn(NID_UI_CTRL, (style >= ICON_LIST_VIEW_ITEM_BORDER_STYLE_NONE && style <= ICON_LIST_VIEW_ITEM_BORDER_STYLE_SHADOW),
544 E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error has been occurred. Invalid item border style is used.");
546 __borderStyle = style;
552 IconListViewItemBorderStyle
553 _IconListItemDrawingProperty::GetBorderStyle(void) const
556 return __borderStyle;
560 _IconListItemDrawingProperty::SetTextHorizontalAlignment(HorizontalAlignment alignment)
562 SysTryReturn(NID_UI_CTRL, (alignment >= ALIGNMENT_LEFT && alignment <= ALIGNMENT_RIGHT), E_SYSTEM, E_SYSTEM,
563 "[E_SYSTEM] A system error has been occurred. Invalid horizontal text alignment is used.");
565 __textHorizontalAlignment = alignment;
572 _IconListItemDrawingProperty::GetTextHorizontalAlignment(void) const
574 return __textHorizontalAlignment;
578 _IconListItemDrawingProperty::SetTextVerticalAlignment(IconListViewItemTextVerticalAlignment alignment)
582 (alignment >= ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_INSIDE_TOP && alignment <=
583 ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_OUTSIDE_BOTTOM),
584 E_SYSTEM, E_SYSTEM, "[E_SYSTEM] A system error has been occurred. Invalid vertical text alignment is used.");
586 if (alignment >= ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_OUTSIDE_TOP
587 && __textVerticalAlignment < ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_OUTSIDE_TOP)
589 __size.height = __size.height + __verticalExtent;
591 else if (alignment < ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_OUTSIDE_TOP
592 && __textVerticalAlignment >= ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_OUTSIDE_TOP)
594 __size.height -= __verticalExtent;
597 __textVerticalAlignment = alignment;
600 // Adjust layout of Item.
601 return SetItemLayout();
604 IconListViewItemTextVerticalAlignment
605 _IconListItemDrawingProperty::GetTextVerticalAlignment(void) const
607 return __textVerticalAlignment;
610 const Tizen::Graphics::Bitmap*
611 _IconListItemDrawingProperty::GetDropShadowBitmap(void) const
613 return __pDropShadowBitmapWithReplacementColor;
616 const Tizen::Graphics::Bitmap*
617 _IconListItemDrawingProperty::GetFocusDropShadowBitmap(void) const
619 return __pFocusDropShadowBitmap;
623 _IconListItemDrawingProperty::GetDropShadowBorderWidth(void) const
625 return __dropShadowBorderWidth;
629 _IconListItemDrawingProperty::GetDropShadowMargin(void) const
631 return __dropShadowMargin;
635 _IconListItemDrawingProperty::GetDropShadowBitmapBounds(void) const
637 Rectangle bounds(__bitmapBounds);
638 if (__textVerticalAlignment == ICON_LIST_VIEW_ITEM_TEXT_VERTICAL_ALIGNMENT_OUTSIDE_TOP)
640 bounds.y += __verticalExtent;
646 const Tizen::Graphics::Bitmap*
647 _IconListItemDrawingProperty::GetCheckBitmap(void) const
649 return __pCheckBitmap;
652 const Tizen::Graphics::Bitmap*
653 _IconListItemDrawingProperty::GetCheckedBackgroundBitmap(void) const
655 return __pCheckedBackgroundBitmap;
658 const Tizen::Graphics::Bitmap*
659 _IconListItemDrawingProperty::GetUnCheckedBackgroundBitmap(void) const
661 return __pUnCheckedBackgroundBitmap;
664 const Tizen::Graphics::Bitmap*
665 _IconListItemDrawingProperty::GetDisabledCheckBitmap(void) const
667 return __pDisabledCheckBitmap;
671 _IconListItemDrawingProperty::SetItemCheckedStyle(bool checkStyle)
673 __checkedStyle = checkStyle;
677 _IconListItemDrawingProperty::IsItemCheckedStyle(void) const
679 return __checkedStyle;
683 _IconListItemDrawingProperty::GetCheckMargin(void) const
685 return __checkMargin;
689 _IconListItemDrawingProperty::GetOverlayMargin(void) const
691 return __overlayMargin;
695 _IconListItemDrawingProperty::GetSelectBackgroundMargin(void) const
697 return __selectBackgroundMargin;
701 _IconListItemDrawingProperty::SetDrawingFlag(void)
707 _IconListItemDrawingProperty::IsChanged(void) const
713 _IconListItemDrawingProperty::AddRef(void)
719 _IconListItemDrawingProperty::Release(void)
732 _IconListItemDrawingProperty::SetItemBitmapAsAspectRatio(bool isAspect)
734 __asAspectRatio = isAspect;
738 _IconListItemDrawingProperty::IsItemBitmapAsAspectRatio(void) const
740 return __asAspectRatio;
743 }}} // Tizen::Ui::Controls