Rect ListViewLayoutThumbnails::get_icon_rect(const Rect &cell_content_rect, ListViewItem item, int offset_x) { int icon_x = cell_content_rect.get_center().x - size_icon.width/2; int icon_y = cell_content_rect.top - icon_sel_shrink_box.top; Rect rect_icon(Point(icon_x, icon_y), size_icon); return rect_icon; }
CL_Rect CL_ListViewLayoutIcons::get_icon_rect(const CL_Rect &cell_content_rect, CL_ListViewItem item, int offset_x) { int icon_x = cell_content_rect.get_center().x - size_icon.width/2; int icon_y = cell_content_rect.get_center().y - size_icon.height/2; CL_Rect rect_icon(CL_Point(icon_x, icon_y), size_icon); return rect_icon; }