xtd 0.2.0
Loading...
Searching...
No Matches
user_control_renderer.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "border_sides.hpp"
7#include "border_style.hpp"
8#include "box_renderer.hpp"
9#include <xtd/drawing/graphics>
10#include <xtd/static>
11
13namespace xtd {
15 namespace forms {
32 public:
34
57 static void draw_user_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);
66 static void draw_user_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, const std::optional<xtd::forms::border_style>& border, xtd::forms::border_sides sides);
68 };
69 }
70}
Contains xtd::forms::border_sides enum class.
Contains xtd::forms::box_renderer static class.
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.hpp:70
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.hpp:44
The xtd::forms::style_sheets::style_sheet allows you to specify an xtd style sheet.
Definition style_sheet.hpp:64
Provides control renderer methods.
Definition user_control_renderer.hpp:31
static void draw_user_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, const std::optional< xtd::forms::border_style > &border, xtd::forms::border_sides sides)
Draws a box in the specified style_sheet, bounds, control state and background color.
static void draw_user_control(xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds)
Draws a box in the specified bounds.
static void draw_user_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)
Draws a box in the specified bounds, control state and background color.
static void draw_user_control(xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::control_state control_state)
Draws a box in the specified bounds and control state.
Contains xtd::forms::visual_styles::control_state enum class.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
border_sides
Specifies how a control anchors to the edges of its container.
Definition border_sides.hpp:23
control_state
Specifies the visual state of a control that is drawn with visual styles.
Definition control_state.hpp:24
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::forms::style_sheets::border_style class.