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

#include <form_renderer.h>

Definition

Provides form control renderer methods.

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

Static Public Member Functions

static void draw_form (const xtd::forms::style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::form_state form_state, const std::optional< xtd::drawing::color > &back_color)
 Draws a box in the specified bounds, form state and background color. More...
 

Member Function Documentation

◆ draw_form()

static void xtd::forms::form_renderer::draw_form ( const xtd::forms::style_sheets::style_sheet style_sheet,
xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::form_state  form_state,
const std::optional< xtd::drawing::color > &  back_color 
)
static

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

Parameters
graphicsThe xtd::drawing::graphics used to draw a form control.
boundsThe xtd::drawing::rectangle that specifies the bounds of the form control.
form_stateThe visual state of a form that is drawn with visual styles.
back_colorThe background color for the form 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: