27      int32_t 
thickness()
 const override {
return thickness_.value_or(size_.height() < 20 ? 1 : (size_.height() / 20 + ((size_.height() / 20) % 2 ? 0 : 1)));}
 
   54          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
   55            graphics.draw_line(
drawing::pen(color), 2 + offset, 1 + offset, size_.width() / 2 - 1 - abs(offset / 2), 1 + offset);
 
   60          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
   63          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
   66          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
   67            graphics.draw_line(
drawing::pen(color), 2 + 
thickness(), 1 + offset, size_.width() / 2 - 1, 1 + offset);
 
   79          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
   80            graphics.draw_line(
drawing::pen(color), size_.width() / 2 + 1 + abs(offset / 2), 1 + offset, size_.width() - 3 - offset, 1 + offset);
 
   85          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
   88          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
   91          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
   92            graphics.draw_line(
drawing::pen(color), size_.width() / 2 + 1, 1 + offset, size_.width() - 3 - 
thickness(), 1 + offset);
 
  102            graphics.draw_line(
drawing::pen(color), 2 + 
thickness() / 2 + abs(offset), size_.height() - 2 - 
thickness() / 2 - offset, size_.width() / 2 - 1 - abs(offset), size_.height() - 2 - 
thickness() / 2 - offset);
 
  104          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
  105            graphics.draw_line(
drawing::pen(color), 2 + offset, size_.height() - 2 - offset, size_.width() / 2 - 1 - abs(offset / 2), size_.height() - 2 - offset);
 
  108            graphics.draw_line(
drawing::pen(color), 2 + 
thickness() / 2 + offset, size_.height() - 2 - 
thickness() / 2 - offset, size_.width() / 2 - 1 - abs(offset), size_.height() - 2 - 
thickness() / 2 - offset);
 
  110          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
  111            graphics.draw_line(
drawing::pen(color), 2 + offset, size_.height() - 2 - offset, size_.width() / 2 + 
thickness() / 2 - 1 - (offset > 
thickness() / 2 ? offset : 
thickness() / 2), size_.height() - 2 - offset);
 
  113          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
  116          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
  117            graphics.draw_line(
drawing::pen(color), 2 + 
thickness(), size_.height() - 2 - offset, size_.width() / 2 - 1, size_.height() - 2 - offset);
 
  127            graphics.draw_line(
drawing::pen(color), size_.width() / 2 + 1 + abs(offset), size_.height() - 2 - 
thickness() / 2 - offset, size_.width() - 3 - 
thickness() / 2 - abs(offset), size_.height() - 2 - 
thickness() / 2 - offset);
 
  129          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
  130            graphics.draw_line(
drawing::pen(color), size_.width() / 2 + 1 + abs(offset / 2), size_.height() - 2 - offset, size_.width() - 3 - offset, size_.height() - 2 - offset);
 
  133            graphics.draw_line(
drawing::pen(color), size_.width() / 2 + 1 + abs(offset), size_.height() - 2 - 
thickness() / 2 - offset, size_.width() - 3 - 
thickness() / 2 - offset, size_.height() - 2 - 
thickness() / 2 - offset);
 
  135          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
  136            graphics.draw_line(
drawing::pen(color), size_.width() / 2 + 1 - 
thickness() / 2 + (offset > 
thickness() / 2 ? offset : 
thickness() / 2), size_.height() - 2 - offset, size_.width() - 3 - offset, size_.height() - 2 - offset);
 
  138          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
  141          for (int32_t offset = 0; offset < 
thickness(); offset++)
 
  142            graphics.draw_line(
drawing::pen(color), size_.width() / 2 + 1, size_.height() - 2 - offset, size_.width() - 3 - 
thickness(), size_.height() - 2 - offset);
 
  152            graphics.draw_line(
drawing::pen(color), size_.width() / 2 - offset, 2 + 
thickness() / 2 + abs(offset), size_.width() / 2 - offset, size_.height() / 2 - 1 - abs(offset));
 
  155            graphics.draw_line(
drawing::pen(color), size_.width() / 2 - offset, 2 + abs(2 * offset), size_.width() / 2 - offset, size_.height() / 2 - 1 - abs(offset));
 
  158            graphics.draw_line(
drawing::pen(color), size_.width() / 2 - offset, 2 + 
thickness() / 2 + abs(offset), size_.width() / 2 - offset, size_.height() / 2 - 1 - abs(offset));
 
  161            graphics.draw_line(
drawing::pen(color), size_.width() / 2 - offset, 2 + 
thickness() / 2 + abs(offset), size_.width() / 2 - offset, size_.height() / 2 - 1 - abs(offset));
 
  164            graphics.draw_line(
drawing::pen(color), size_.width() / 2 - offset, 2 + 
thickness() / 2 + abs(offset), size_.width() / 2 - offset, size_.height() / 2 - 1 - abs(offset));
 
  167            graphics.draw_line(
drawing::pen(color), size_.width() / 2 - offset, 2 + 
thickness(), size_.width() / 2 - offset, size_.height() / 2 - 1 - abs(offset));
 
  177            graphics.draw_line(
drawing::pen(color), size_.width() / 2 - offset, size_.height() / 2 + 1 - 
thickness() / 2 + 
thickness() / 2 + abs(offset), size_.width() / 2 - offset, size_.height() - 3 - 
thickness() / 2 - abs(offset));
 
  180            graphics.draw_line(
drawing::pen(color), size_.width() / 2 - offset, size_.height() / 2 + 1 - 
thickness() / 2 + 
thickness() / 2 + abs(offset), size_.width() / 2 - offset, size_.height() - 3 - abs(2 * offset));
 
  183            graphics.draw_line(
drawing::pen(color), size_.width() / 2 - offset, size_.height() / 2 + 1 - 
thickness() / 2 + 
thickness() / 2 + abs(offset), size_.width() / 2 - offset, size_.height() - 3 - 
thickness() / 2 - abs(offset));
 
  186            graphics.draw_line(
drawing::pen(color), size_.width() / 2 - offset, size_.height() / 2 + 1 - 
thickness() / 2 + 
thickness() / 2 + abs(offset), size_.width() / 2 - offset, size_.height() - 3 - 
thickness() / 2 - abs(offset));
 
  189            graphics.draw_line(
drawing::pen(color), size_.width() / 2 - offset, size_.height() / 2 + 1 - 
thickness() / 2 + 
thickness() / 2 + abs(offset), size_.width() / 2 - offset, size_.height() - 3 - 
thickness() / 2 - abs(offset));
 
  192            graphics.draw_line(
drawing::pen(color), size_.width() / 2 - offset, size_.height() / 2 + 1 - 
thickness() / 2 + 
thickness() / 2 + abs(offset), size_.width() / 2 - offset, size_.height() - 3 - 
thickness());
 
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:39
 
static color average(const color &color1, const color &color2, double weight, bool average_alpha)
Returns the weighted average color between the two given colors.
Definition: color.h:592
 
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition: graphics.h:48
 
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition: pen.h:29
 
Contains xtd::forms::fourteen_segment_display control.
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17