xtd 0.2.0
Loading...
Searching...
No Matches
box_renderer.h
Go to the documentation of this file.
1
4#pragma once
6#include <xtd/static>
7#include <xtd/drawing/graphics>
8
10namespace xtd {
12 namespace forms {
27 public:
29
37
38 private:
39 static xtd::drawing::dash_style border_type_to_dash_style(xtd::forms::style_sheets::border_type value);
44 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);
45 };
46 }
47}
Defines objects used to fill the interiors of graphical shapes such as rectangles,...
Definition brush.h:33
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.h:70
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.h:44
Provides methods used to render a box with or without style sheets.
Definition box_renderer.h:26
static void draw_box(xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, const xtd::forms::style_sheets::ibox_model &box_model)
Draws a box in the specified bounds and style.
The xtd::forms::style_sheets::border_color is used to set the color of the borders.
Definition border_color.h:31
The radius is used to add rounded borders to an element.
Definition border_radius.h:31
The style specifies what kind of borders to display.
Definition border_style.h:31
The box model allows you to specify the margin, borders, padding, background color,...
Definition ibox_model.h:43
The length specifies the length of the borders.
Definition lengths.h:31
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
#define forms_export_
Define shared library export.
Definition forms_export.h:13
border_type
The border_type enum class specifies what kind of border to display.
Definition border_type.h:21
dash_style
Specifies the style of dashed lines drawn with a xtd::drawing::pen object.
Definition dash_style.h:18
border_style
Specifies the border style for a control.
Definition border_style.h:20
Contains xtd::forms::style_sheets::ibox_model class.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10