xtd - Reference Guide 0.2.0
xtd::forms::status_bar_panel_renderer Class Referencefinal

#include <status_bar_panel_renderer.h>

Definition

Provides status bar panel renderer methods.

class forms_export_ status_bar_panel_renderer final static_
Inheritance
xtd::static → xtd::forms::status_bar_panel_renderer
Namespace
xtd::forms:
Library
xtd.forms

Methods

static void draw_status_bar_panel (const style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, const std::optional< xtd::drawing::color > &back_color, const xtd::ustring &text, const std::optional< xtd::forms::content_alignment > &text_align, const std::optional< xtd::drawing::color > &fore_color, const std::optional< xtd::drawing::font > &font, const xtd::drawing::image &image, const std::optional< xtd::forms::content_alignment > &image_align)
 Draws a status bar panel in the specified bounds, button style, button state, background color, text, optional text flags, optional foreground color and optional font. More...
 

Member Function Documentation

◆ draw_status_bar_panel()

static void xtd::forms::status_bar_panel_renderer::draw_status_bar_panel ( const style_sheets::style_sheet style_sheet,
xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
const std::optional< xtd::drawing::color > &  back_color,
const xtd::ustring text,
const std::optional< xtd::forms::content_alignment > &  text_align,
const std::optional< xtd::drawing::color > &  fore_color,
const std::optional< xtd::drawing::font > &  font,
const xtd::drawing::image image,
const std::optional< xtd::forms::content_alignment > &  image_align 
)
static

Draws a status bar panel in the specified bounds, button style, button state, background color, text, optional text flags, optional foreground color and optional font.

Parameters
style_sheetThe xtd::forms::style_sheets::style_sheet used to draw a button.
graphicsThe xtd::drawing::graphics used to draw a button.
boundsThe xtd::drawing::rectangle that specifies the bounds of the button.
back_colorThe background color for the button control.
appearanceThe xtd::forms::flat_appearance that represents the flat appearance of the status bar panel.
textThe text of the button control.
text_flagsContains the display and layout information for text strings.
fore_colorThe foreground color for the button control.
fontThe font of the text for the button control.
imageThe image of the button control.
image_alignContains the display and layout information for image .
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: