27      int32_t 
thickness()
 const override {
return thickness_.value_or(size_.height() < 20 ? 1 : (size_.height() / 20 + ((size_.height() / 20) % 2 ? 0 : 1)));}
 
   60            graphics.draw_line(
drawing::pen(color), 2 + 
thickness() / 2 + abs(offset), size_.height() / 2 + offset, size_.width() / 2 - 1 - abs(offset), size_.height() / 2 + offset);
 
   63            graphics.draw_line(
drawing::pen(color), 2 + abs(2 * offset), size_.height() / 2 + offset, size_.width() / 2 - 1 - abs(offset), size_.height() / 2 + offset);
 
   66            graphics.draw_line(
drawing::pen(color), 2 + 
thickness() / 2 + abs(offset), size_.height() / 2 + offset, size_.width() / 2 - 1 - abs(offset), size_.height() / 2 + offset);
 
   69            graphics.draw_line(
drawing::pen(color), 2 + 
thickness() / 2 + abs(offset), size_.height() / 2 + offset, size_.width() /2 - 1 - abs(offset), size_.height() / 2 + offset);
 
   72            graphics.draw_line(
drawing::pen(color), 2 + 
thickness() / 2 + abs(offset), size_.height() / 2 + offset, size_.width() /2 - 1 - abs(offset), size_.height() / 2 + offset);
 
   75            graphics.draw_line(
drawing::pen(color), 2 + 
thickness(), size_.height() / 2 + offset, size_.width() / 2 - 1 - abs(offset), size_.height() / 2 + offset);
 
   85            graphics.draw_line(
drawing::pen(color), size_.width() / 2 + 1 + abs(offset), size_.height() / 2 + offset, size_.width() - 3 - 
thickness() / 2 - abs(offset), size_.height() / 2 + offset);
 
   88            graphics.draw_line(
drawing::pen(color), size_.width() / 2 + 1 + abs(offset), size_.height() / 2 + offset, size_.width() - 3 - abs(2 * offset), size_.height() / 2 + offset);
 
   91            graphics.draw_line(
drawing::pen(color), size_.width() / 2 + 1 + abs(offset), size_.height() / 2 + offset, size_.width() - 3 - 
thickness() / 2 - abs(offset), size_.height() / 2 + offset);
 
   94            graphics.draw_line(
drawing::pen(color), size_.width() / 2 + 1 + abs(offset), size_.height() / 2 + offset, size_.width() - 3 - 
thickness() / 2 - abs(offset), size_.height() / 2 + offset);
 
   97            graphics.draw_line(
drawing::pen(color), size_.width() / 2 + 1 + abs(offset), size_.height() / 2 + offset, size_.width() - 3 - 
thickness() / 2 - abs(offset), size_.height() / 2 + offset);
 
  100            graphics.draw_line(
drawing::pen(color), size_.width() / 2 + 1 + abs(offset), size_.height() / 2 + offset, size_.width() - 3 - 
thickness(), size_.height() / 2 + offset);
 
  119          graphics.draw_line(
drawing::pen(color), size_.width() / 2 - offset, 2 + 
thickness(), size_.width() / 2 - offset, size_.height() / 2 - 1 - abs(offset));
 
  147          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
 
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
 
Contains xtd::forms::seven_segment_display control.