xtd 0.2.0
control_renderer.h
Go to the documentation of this file.
1 #pragma once
6 #include "box_renderer.h"
7 #include "flat_style.h"
8 #include <xtd/static>
9 #include <xtd/drawing/graphics>
10 
12 namespace xtd {
14  namespace forms {
29  public:
35  static void draw_control(xtd::drawing::graphics& graphics, const xtd::drawing::rectangle& bounds);
51  static void draw_control(xtd::drawing::graphics& graphics, const xtd::drawing::rectangle& bounds, xtd::forms::visual_styles::control_state control_state, const std::optional<xtd::drawing::color>& back_color);
60  static void draw_control(const style_sheets::style_sheet& style_sheet, xtd::drawing::graphics& graphics, const xtd::drawing::rectangle& bounds, xtd::forms::visual_styles::control_state control_state, const std::optional<xtd::drawing::color>& back_color);
61  };
62  }
63 }
#define static_
This keyword is use to represent a static object. A static object can&#39;t be instantiated (constructors...
Definition: static.h:37
Contains xtd::forms::box_renderer static class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Provides control renderer methods.
Definition: control_renderer.h:28
control_state
Specifies the visual state of a control that is drawn with visual styles.
Definition: control_state.h:22
static void draw_control(xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds)
Draws a box in the specified bounds.
Stores a set of four integers that represent the location and size of a rectangle.
Definition: rectangle.h:44
Contains xtd::forms::visual_styles::control_state enum class.
Contains xtd::forms::flat_style enum class.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition: graphics.h:70
The xtd::forms::style_sheets::style_sheet allows you to specify an xtd style sheet.
Definition: style_sheet.h:62