xtd - Reference Guide 0.2.0
xtd::forms::user_control_renderer Class Reference

#include <user_control_renderer.h>

Definition

Provides control renderer methods.

class forms_export_ user_control_renderer static_
Inheritance
xtd::static → xtd::forms::user_control_renderer
Namespace
xtd::forms::style_sheets
Library
xtd.forms

Static Public Member Functions

static void draw_user_control (xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds)
 Draws a box in the specified bounds. More...
 
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. More...
 
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. More...
 
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. More...
 

Member Function Documentation

◆ draw_user_control() [1/4]

static void xtd::forms::user_control_renderer::draw_user_control ( xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds 
)
static

Draws a box in the specified bounds.

Parameters
graphicsThe Graphics used to draw a control.
boundsThe xtd::drawing::rectangle that specifies the bounds of the control.
graphicsThe Graphics used to draw a control.
boundsThe xtd::drawing::rectangle that specifies the bounds of the control.

◆ draw_user_control() [2/4]

static void xtd::forms::user_control_renderer::draw_user_control ( xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::control_state  control_state 
)
static

Draws a box in the specified bounds and control state.

Parameters
graphicsThe Graphics used to draw a control.
boundsThe xtd::drawing::rectangle that specifies the bounds of the control.
graphicsThe Graphics used to draw a control.
boundsThe xtd::drawing::rectangle that specifies the bounds of the control.
control_stateThe visual state of a control that is drawn with visual styles.

◆ draw_user_control() [3/4]

static void xtd::forms::user_control_renderer::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 
)
static

Draws a box in the specified bounds, control state and background color.

Parameters
graphicsThe Graphics used to draw a control.
boundsThe xtd::drawing::rectangle that specifies the bounds of the control.
graphicsThe Graphics used to draw a control.
boundsThe xtd::drawing::rectangle that specifies the bounds of the control.
control_stateThe visual state of a control that is drawn with visual styles.
back_colorThe background color for the control.
Remarks
The parameter back_color is set only if they are different from its default value; otherwise std::nullopt.

◆ draw_user_control() [4/4]

static void xtd::forms::user_control_renderer::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 
)
static

Draws a box in the specified style_sheet, bounds, control state and background color.

Parameters
graphicsThe Graphics used to draw a control.
boundsThe xtd::drawing::rectangle that specifies the bounds of the control.
graphicsThe Graphics used to draw a control.
boundsThe xtd::drawing::rectangle that specifies the bounds of the control.
control_stateThe visual state of a control that is drawn with visual styles.
back_colorThe background color for the control.
Remarks
The parameter back_color is set only if they are different from its default value; otherwise std::nullopt.

The documentation for this class was generated from the following file: