xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::button_renderer Class Referencefinal
Inheritance diagram for xtd::forms::button_renderer:
xtd::static_object

Definition

Provides button control renderer methods.

Provides button control renderer methods.
Definition button_renderer.hpp:43
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
Inheritance
xtd::static → xtd::forms::button_renderer
Header
#include <xtd/forms/button_renderer>
Namespace
xtd::forms:
Library
xtd.forms

Public Static Methods

static void draw_button (xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds)
 Draws a button in the specified bounds.
 
static void draw_button (const style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds)
 Draws a button in the specified bounds.
 
static void draw_button (xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::push_button_state button_state, bool default_button)
 Draws a button in the specified bounds, button style and button state.
 
static void draw_button (const style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::push_button_state button_state, bool default_button)
 Draws a button in the specified bounds, button style and button state.
 
static void draw_button (xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::push_button_state button_state, bool default_button, const std::optional< xtd::drawing::color > &back_color)
 Draws a button in the specified bounds, button style, button state and background color.
 
static void draw_button (const style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::push_button_state button_state, bool default_button, const std::optional< xtd::drawing::color > &back_color)
 Draws a button in the specified bounds, button style, button state and background color.
 
static void draw_button (xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::push_button_state button_state, bool default_button, const std::optional< xtd::drawing::color > &back_color, const xtd::string &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)
 Draws a button in the specified bounds, button style, button state, background color, text, optional text flags, optional foreground color and optional font.
 
static void draw_button (const style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::push_button_state button_state, bool default_button, const std::optional< xtd::drawing::color > &back_color, const xtd::string &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)
 Draws a button in the specified bounds, button style, button state, background color, text, optional text flags, optional foreground color and optional font.
 
static void draw_button (xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::push_button_state button_state, bool default_button, const std::optional< xtd::drawing::color > &back_color, const xtd::string &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 button in the specified bounds, button style, button state, background color, text, optional text flags, optional foreground color and optional font.
 
static void draw_button (const style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::push_button_state button_state, bool default_button, const std::optional< xtd::drawing::color > &back_color, const xtd::string &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 button in the specified bounds, button style, button state, background color, text, optional text flags, optional foreground color and optional font.
 
static void draw_flat_button (const style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::push_button_state button_state, bool default_button, const std::optional< xtd::drawing::color > &back_color, const flat_button_appearance &appearance, const xtd::string &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 flat button in the specified bounds, button style, button state, background color, text, optional text flags, optional foreground color and optional font.
 
static void draw_popup_button (const style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::push_button_state button_state, bool default_button, const std::optional< xtd::drawing::color > &back_color, const flat_button_appearance &appearance, const xtd::string &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 popup button in the specified bounds, button style, button state, background color, text, optional text flags, optional foreground color and optional font.
 

Member Function Documentation

◆ draw_button() [1/10]

static void xtd::forms::button_renderer::draw_button ( xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds 
)
static

Draws a button in the specified bounds.

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

◆ draw_button() [2/10]

static void xtd::forms::button_renderer::draw_button ( const style_sheets::style_sheet style_sheet,
xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds 
)
static

Draws a button in the specified bounds.

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

◆ draw_button() [3/10]

static void xtd::forms::button_renderer::draw_button ( xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::push_button_state  button_state,
bool  default_button 
)
static

Draws a button in the specified bounds, button style and button state.

Parameters
graphicsThe xtd::drawing::graphics used to draw a button.
boundsThe xtd::drawing::rectangle that specifies the bounds of the button.
button_stateThe visual state of a button that is drawn with visual styles.

◆ draw_button() [4/10]

static void xtd::forms::button_renderer::draw_button ( const style_sheets::style_sheet style_sheet,
xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::push_button_state  button_state,
bool  default_button 
)
static

Draws a button in the specified bounds, button style and button state.

Parameters
graphicsThe xtd::drawing::graphics used to draw a button.
boundsThe xtd::drawing::rectangle that specifies the bounds of the button.
button_stateThe visual state of a button that is drawn with visual styles.
default_buttonSets to tru if the buffon is default; otherwise false.

◆ draw_button() [5/10]

static void xtd::forms::button_renderer::draw_button ( xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::push_button_state  button_state,
bool  default_button,
const std::optional< xtd::drawing::color > &  back_color 
)
static

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

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

◆ draw_button() [6/10]

static void xtd::forms::button_renderer::draw_button ( const style_sheets::style_sheet style_sheet,
xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::push_button_state  button_state,
bool  default_button,
const std::optional< xtd::drawing::color > &  back_color 
)
static

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

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

◆ draw_button() [7/10]

static void xtd::forms::button_renderer::draw_button ( xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::push_button_state  button_state,
bool  default_button,
const std::optional< xtd::drawing::color > &  back_color,
const xtd::string 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 
)
static

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

Parameters
graphicsThe xtd::drawing::graphics used to draw a button.
boundsThe xtd::drawing::rectangle that specifies the bounds of the button.
button_stateThe visual state of a button that is drawn with visual styles.
default_buttonSets to tru if the buffon is default; otherwise false.
back_colorThe background color for the button control.
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.
Remarks
The parameter back_color is set only if they are different from its default value; otherwise std::nullopt.

◆ draw_button() [8/10]

static void xtd::forms::button_renderer::draw_button ( const style_sheets::style_sheet style_sheet,
xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::push_button_state  button_state,
bool  default_button,
const std::optional< xtd::drawing::color > &  back_color,
const xtd::string 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 
)
static

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

Parameters
graphicsThe xtd::drawing::graphics used to draw a button.
boundsThe xtd::drawing::rectangle that specifies the bounds of the button.
button_stateThe visual state of a button that is drawn with visual styles.
default_buttonSets to tru if the buffon is default; otherwise false.
back_colorThe background color for the button control.
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.
Remarks
The parameter back_color is set only if they are different from its default value; otherwise std::nullopt.

◆ draw_button() [9/10]

static void xtd::forms::button_renderer::draw_button ( xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::push_button_state  button_state,
bool  default_button,
const std::optional< xtd::drawing::color > &  back_color,
const xtd::string 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 button in the specified bounds, button style, button state, background color, text, optional text flags, optional foreground color and optional font.

Parameters
graphicsThe xtd::drawing::graphics used to draw a button.
boundsThe xtd::drawing::rectangle that specifies the bounds of the button.
button_stateThe visual state of a button that is drawn with visual styles.
default_buttonSets to tru if the buffon is default; otherwise false.
back_colorThe background color for the button control.
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.

◆ draw_button() [10/10]

static void xtd::forms::button_renderer::draw_button ( const style_sheets::style_sheet style_sheet,
xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::push_button_state  button_state,
bool  default_button,
const std::optional< xtd::drawing::color > &  back_color,
const xtd::string 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 button 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.
button_stateThe visual state of a button that is drawn with visual styles.
default_buttonSets to tru if the buffon is default; otherwise false.
back_colorThe background color for the button control.
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.

◆ draw_flat_button()

static void xtd::forms::button_renderer::draw_flat_button ( const style_sheets::style_sheet style_sheet,
xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::push_button_state  button_state,
bool  default_button,
const std::optional< xtd::drawing::color > &  back_color,
const flat_button_appearance appearance,
const xtd::string 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 flat button 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.
button_stateThe visual state of a button that is drawn with visual styles.
default_buttonSets to tru if the buffon is default; otherwise false.
back_colorThe background color for the button control.
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.

◆ draw_popup_button()

static void xtd::forms::button_renderer::draw_popup_button ( const style_sheets::style_sheet style_sheet,
xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::push_button_state  button_state,
bool  default_button,
const std::optional< xtd::drawing::color > &  back_color,
const flat_button_appearance appearance,
const xtd::string 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 popup button 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.
button_stateThe visual state of a button that is drawn with visual styles.
default_buttonSets to tru if the buffon is default; otherwise false.
back_colorThe background color for the button control.
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: