xtd 0.2.0
box_renderer.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/static.h>
6 #include <xtd/drawing/graphics.h>
8 
10 namespace xtd {
12  namespace forms {
26  class forms_export_ box_renderer static_ {
27  public:
32  static void draw_box(xtd::drawing::graphics& graphics, const xtd::drawing::rectangle& bounds, const xtd::forms::style_sheets::ibox_model& box_model);
33 
34  private:
35  static xtd::drawing::dash_style border_type_to_dash_style(xtd::forms::style_sheets::border_type value);
37  static void draw_line_right(xtd::drawing::graphics& graphics, const xtd::drawing::rectangle& bounds, const xtd::forms::style_sheets::border_color& border_color, const xtd::forms::style_sheets::border_radius& border_radius, const xtd::forms::style_sheets::border_style& border_style, const xtd::forms::style_sheets::border_width& border_width);
38  static void draw_line_bottom(xtd::drawing::graphics& graphics, const xtd::drawing::rectangle& bounds, const xtd::forms::style_sheets::border_color& border_color, const xtd::forms::style_sheets::border_radius& border_radius, const xtd::forms::style_sheets::border_style& border_style, const xtd::forms::style_sheets::border_width& border_width);
39  static void draw_line_left(xtd::drawing::graphics& graphics, const xtd::drawing::rectangle& bounds, const xtd::forms::style_sheets::border_color& border_color, const xtd::forms::style_sheets::border_radius& border_radius, const xtd::forms::style_sheets::border_style& border_style, const xtd::forms::style_sheets::border_width& border_width);
40  static void fill_box(xtd::drawing::graphics& graphics, const xtd::drawing::brush& brush, const xtd::drawing::rectangle& bounds, const xtd::forms::style_sheets::ibox_model& box_model);
41  };
42  }
43 }
dash_style
Specifies the style of dashed lines drawn with a xtd::drawing::pen object.
Definition: dash_style.h:18
Contains xtd::static_object class.
The xtd::forms::style_sheets::border_color is used to set the color of the borders.
Definition: border_color.h:31
#define static_
This keyword is use to represent a static object. A static object can&#39;t be instantiated (constructors...
Definition: static.h:38
border_type
The border_type enum class specifies what kind of border to display.
Definition: border_type.h:21
The radius is used to add rounded borders to an element.
Definition: border_radius.h:31
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::forms::style_sheets::ibox_model class.
The box model allows you to specify the margin, borders, padding, background color, width and height of a box.
Definition: ibox_model.h:43
Provides methods used to render a box with or without style sheets.
Definition: box_renderer.h:26
The style specifies what kind of borders to display.
Definition: border_style.h:31
Stores a set of four integers that represent the location and size of a rectangle.
Definition: rectangle.h:45
border_style
Specifies the border style for a control.
Definition: border_style.h:20
xtd::forms::style_sheets::lengths border_width
The width specifies the width of the borders.
Definition: border_width.h:24
The length specifies the length of the borders.
Definition: lengths.h:31
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Defines objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths.
Definition: brush.h:33
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition: graphics.h:70
Contains xtd::drawing::graphics class.