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

Definition

Provides label control renderer methods.

Provides label control renderer methods.
Definition label_renderer.h:35
#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::label_renderer
Header
#include <xtd/forms/label_renderer>
Namespace
xtd::forms::style_sheets
Library
xtd.forms

Public Static Methods

static void draw_label (const xtd::forms::style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::label_state label_state, 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, const std::optional< xtd::forms::border_style > &border, xtd::forms::border_sides sides, const std::vector< xtd::forms::shadow > &shadows, bool auto_ellipsis)
 Draws a box in the specified bounds, label style, label state and background color.
 
static void draw_link_label (const xtd::forms::style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::link_label_state link_label_state, const std::optional< xtd::drawing::color > &back_color, const xtd::ustring &text, const std::vector< xtd::forms::link > &links, const std::optional< xtd::forms::content_alignment > &text_align, const std::optional< xtd::drawing::color > &fore_color, const std::optional< xtd::drawing::color > &link_color, const std::optional< xtd::drawing::color > &visited_link_color, const std::optional< xtd::drawing::font > &font, xtd::forms::link_behavior link_behavior, const xtd::drawing::image &image, const std::optional< xtd::forms::content_alignment > &image_align, const std::optional< xtd::forms::border_style > &border, xtd::forms::border_sides sides, const std::vector< xtd::forms::shadow > &shadows, bool auto_ellipsis)
 Draws a box in the specified bounds, label style, label state and background color.
 

Member Function Documentation

◆ draw_label()

static void xtd::forms::label_renderer::draw_label ( const xtd::forms::style_sheets::style_sheet style_sheet,
xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::label_state  label_state,
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,
const std::optional< xtd::forms::border_style > &  border,
xtd::forms::border_sides  sides,
const std::vector< xtd::forms::shadow > &  shadows,
bool  auto_ellipsis 
)
static

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

Parameters
style_sheetThe xtd::forms::style_sheets::style_sheet used to draw a label.
graphicsThe xtd::drawing::graphics used to draw a label.
boundsThe xtd::drawing::rectangle that specifies the bounds of the label.
label_stateThe visual state of a label that is drawn with visual styles.
back_colorThe background color for the label control.
textThe text of the label control.
text_flagsContains the display and layout information for text strings.
fore_colorThe foreground color for the label control.
fontThe font of the text for the label control.
imageThe image of the label control.
image_alignContains the display and layout information for image .
borderContains the border style for the control
sideContains the border sides for the control.
shadowsAn xtd::forms::shadow array used to draw shadows under the text.
auto_ellipsisThe value indicating whether the ellipsis character (...) appears at the right edge of the xtd::forms::label, denoting that the xtd::forms::label text extends beyond the specified length of the xtd::forms::label.
Remarks
The parameter back_color is set only if they are different from its default value; otherwise std::nullopt.

◆ draw_link_label()

static void xtd::forms::label_renderer::draw_link_label ( const xtd::forms::style_sheets::style_sheet style_sheet,
xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::link_label_state  link_label_state,
const std::optional< xtd::drawing::color > &  back_color,
const xtd::ustring text,
const std::vector< xtd::forms::link > &  links,
const std::optional< xtd::forms::content_alignment > &  text_align,
const std::optional< xtd::drawing::color > &  fore_color,
const std::optional< xtd::drawing::color > &  link_color,
const std::optional< xtd::drawing::color > &  visited_link_color,
const std::optional< xtd::drawing::font > &  font,
xtd::forms::link_behavior  link_behavior,
const xtd::drawing::image image,
const std::optional< xtd::forms::content_alignment > &  image_align,
const std::optional< xtd::forms::border_style > &  border,
xtd::forms::border_sides  sides,
const std::vector< xtd::forms::shadow > &  shadows,
bool  auto_ellipsis 
)
static

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

Parameters
style_sheetThe xtd::forms::style_sheets::style_sheet used to draw a label.
graphicsThe xtd::drawing::graphics used to draw a label.
boundsThe xtd::drawing::rectangle that specifies the bounds of the label.
label_stateThe visual state of a label that is drawn with visual styles.
back_colorThe background color for the label control.
textThe text of the label control.
text_flagsContains the display and layout information for text strings.
fore_colorThe foreground color for the label control.
fontThe font of the text for the label control.
imageThe image of the label control.
image_alignContains the display and layout information for image .
borderContains the border style for the control
sideContains the border sides for the control.
shadowsAn xtd::forms::shadow array used to draw shadows under the text.
auto_ellipsisThe value indicating whether the ellipsis character (...) appears at the right edge of the xtd::forms::label, denoting that the xtd::forms::label text extends beyond the specified length of the xtd::forms::label.
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: