void
MutateTaskPointRenderer::OnPaintItem(Canvas &canvas, PixelRect rc,
                                     unsigned DrawListIndex)
{
  assert(DrawListIndex < point_types.size());

  if (point_types[DrawListIndex] == current_type)
    rc.left = row_renderer.DrawColumn(canvas, rc, _T("*"));

  row_renderer.DrawTextRow(canvas, rc,
                           OrderedTaskPointName(point_types[DrawListIndex]));
}
Example #2
0
void
AddFileListItemRenderer::OnPaintItem(Canvas &canvas, const PixelRect rc,
                                     unsigned i)
{
  assert(i < list.size());

  const AvailableFile &file = list[i];

  const UTF8ToWideConverter name(file.GetName());
  if (name.IsValid())
    row_renderer.DrawTextRow(canvas, rc, name);
}
 unsigned CalculateLayout(const DialogLook &look) {
   return row_renderer.CalculateLayout(*look.list.font);
 }
Example #4
0
 virtual void OnPaintItem(Canvas &canvas, const PixelRect rc,
                          unsigned i) override {
   row_renderer.DrawTextRow(canvas, rc, rasp_providers[i].name);
 }