xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::status_bar_renderer Class Reference
Inheritance diagram for xtd::forms::status_bar_renderer:
xtd::static_object

Definition

Provides status_bar control renderer methods.

Provides status_bar control renderer methods.
Definition status_bar_renderer.h:32
#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
Inheritance
xtd::static → xtd::forms::status_bar_renderer
Header
#include <xtd/forms/status_bar_renderer>
Namespace
xtd::forms::style_sheets
Library
xtd.forms

Public Static Methods

static void draw_status_bar (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, const std::optional< xtd::forms::border_style > &border, xtd::forms::border_sides sides)
 Draws a box in the specified bounds, form state and background color.
 
static void draw_text_status_bar (const style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, const xtd::ustring &text, const std::optional< xtd::drawing::color > &fore_color, const std::optional< xtd::drawing::font > &font)
 

Member Function Documentation

◆ draw_status_bar()

static void xtd::forms::status_bar_renderer::draw_status_bar ( 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,
const std::optional< xtd::forms::border_style > &  border,
xtd::forms::border_sides  sides 
)
static

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

Parameters
graphicsThe Graphics used to draw a form.
boundsThe xtd::drawing::rectangle that specifies the bounds of the form.
graphicsThe 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: