xtd - Reference Guide 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 {
24  class forms_export_ box_renderer static_ {
25  public:
30  static void draw_box(xtd::drawing::graphics& graphics, const xtd::drawing::rectangle& bounds, const xtd::forms::style_sheets::ibox_model& box_model);
31 
32  private:
33  static xtd::drawing::dash_style border_type_to_dash_style(xtd::forms::style_sheets::border_type value);
35  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);
36  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);
37  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);
38  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);
39  };
40  }
41 }
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:29
#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:19
The radius is used to add rounded borders to an element.
Definition: border_radius.h:29
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:41
Provides methods used to render a box with or without style sheets.
Definition: box_renderer.h:24
The style specifies what kind of borders to display.
Definition: border_style.h:29
Stores a set of four integers that represent the location and size of a rectangle.
Definition: rectangle.h:44
border_style
Specifies the border style for a control.
Definition: border_style.h:18
xtd::forms::style_sheets::lengths border_width
The width specifies the width of the borders.
Definition: border_width.h:22
The length specifies the length of the borders.
Definition: lengths.h:29
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:50
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition: graphics.h:70
Contains xtd::drawing::graphics class.