2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://floralicense.org/license/
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file PhnCustomItemBgElement.cpp
19 * @brief Custom Background element class
21 #include "PhnCustomItemBgElement.h"
22 #include "PhnSettingsConstants.h"
24 using namespace Tizen::Graphics;
25 using namespace Tizen::Ui::Controls;
27 CustomItemBgElement::CustomItemBgElement(void)
31 CustomItemBgElement::~CustomItemBgElement(void)
36 CustomItemBgElement::OnDraw(Canvas& canvas, const Rectangle& rect, ListItemDrawingStatus itemStatus)
38 //drawing boundary for all items.
39 canvas.SetBackgroundColor(Color(142,154,163));
40 canvas.DrawRectangle(rect);
43 Rectangle blueHeaderRect(0,0,W_LEFT_HEADER_EXPAND_ITEMS,rect.height);
44 canvas.FillRectangle(COLOR_LEFT_HEADER_EXPAND_ITEMS, blueHeaderRect);