xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Classes | Enumerations
xtd::drawing::drawing2d Namespace Reference

Definition

The xtd::.drawing::drawing2d namespace provides advanced two-dimensional and vector graphics functionality.

Classes

class  hatch_brush
 Defines a rectangular brush with a hatch style, a foreground color, and a background color. This class cannot be inherited. More...
 
class  linear_gradient_brush
 Encapsulates a xtd::drawing::brush with a linear gradient. This class cannot be inherited. More...
 

Enumerations

enum  hatch_style {
  hatch_style::horizontal = 0,
  hatch_style::vertical = 1,
  hatch_style::forward_diagonal = 2,
  hatch_style::backward_diagonal = 3,
  hatch_style::cross = 4,
  hatch_style::diagonal_cross = 5,
  hatch_style::percent_05 = 6,
  hatch_style::percent_10 = 7,
  hatch_style::percent_20 = 8,
  hatch_style::percent_25 = 9,
  hatch_style::percent_30 = 10,
  hatch_style::percent_40 = 11,
  hatch_style::percent_50 = 12,
  hatch_style::percent_60 = 13,
  hatch_style::percent_70 = 14,
  hatch_style::percent_75 = 15,
  hatch_style::percent_80 = 16,
  hatch_style::percent_90 = 17,
  hatch_style::light_downward_diagonal = 18,
  hatch_style::light_upward_diagonal = 19,
  hatch_style::dark_downward_diagonal = 20,
  hatch_style::dark_upward_diagonal = 21,
  hatch_style::wide_downward_diagonal = 22,
  hatch_style::wide_upward_diagonal = 23,
  hatch_style::light_vertical = 24,
  hatch_style::light_horizontal = 25,
  hatch_style::narrow_vertical = 26,
  hatch_style::narrow_horizontal = 27,
  hatch_style::dark_vertical = 28,
  hatch_style::dark_horizontal = 29,
  hatch_style::dashed_downward_diagonal = 30,
  hatch_style::dashed_upward_diagonal = 31,
  hatch_style::dashed_horizontal = 32,
  hatch_style::dashed_vertical = 33,
  hatch_style::small_confetti = 34,
  hatch_style::large_confetti = 35,
  hatch_style::zig_zag = 36,
  hatch_style::wave = 37,
  hatch_style::diagonal_brick = 38,
  hatch_style::horizontal_brick = 39,
  hatch_style::weave = 40,
  hatch_style::plaid = 41,
  hatch_style::divot = 42,
  hatch_style::dotted_grid = 43,
  hatch_style::dotted_diamond = 44,
  hatch_style::shingle = 45,
  hatch_style::trellis = 46,
  hatch_style::sphere = 47,
  hatch_style::small_grid = 48,
  hatch_style::small_checker_board = 49,
  hatch_style::large_checker_board = 50,
  hatch_style::outlined_diamond = 51,
  hatch_style::solid_diamond = 52
}
 Specifies the different patterns available for xtd::drawing::drawing2d::hatch_brush objects. More...
 
enum  linear_gradient_mode {
  linear_gradient_mode::horizontal = 0,
  linear_gradient_mode::vertical = 1,
  linear_gradient_mode::forward_diagonal = 2,
  linear_gradient_mode::backward_diagonal = 3
}
 Specifies the direction of a linear gradient. More...
 
enum  pen_alignment {
  pen_alignment::center = 0,
  pen_alignment::inset = 1,
  pen_alignment::outset = 2,
  pen_alignment::left = 3,
  pen_alignment::right = 4
}
 SSpecifies the alignment of a xtd::drawing::pen object in relation to the theoretical, zero-width line. More...
 
enum  pen_type {
  pen_type::solid_color = 0,
  pen_type::hatch_fill = 1,
  pen_type::texture_fill = 2,
  pen_type::path_gradient = 3,
  pen_type::linear_gradient = 4
}
 Specifies the type of fill a xtd::drawing::pen object uses to fill lines. More...