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

Definition

Provides xtd::forms::toggle_button renderer methods.

Provides xtd::forms::toggle_button renderer methods.
Definition toggle_button_renderer.hpp:34
#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::toggle_button_renderer
Header
#include <xtd/forms/toggle_button_renderer>
Namespace
xtd::forms::style_sheets
Library
xtd.forms

Public Static Methods

static void draw_toggle_button (const style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::toggle_button_state toggle_state, 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 box in the specified style_sheet, bounds, control state and background color.
 
static void draw_flat_toggle_button (const style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::toggle_button_state toggle_state, const std::optional< xtd::drawing::color > &back_color, const flat_button_appearance &flat_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 void draw_popup_toggle_button (const style_sheets::style_sheet &style_sheet, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &bounds, xtd::forms::visual_styles::toggle_button_state toggle_state, const std::optional< xtd::drawing::color > &back_color, const flat_button_appearance &flat_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)
 

Member Function Documentation

◆ draw_toggle_button()

static void xtd::forms::toggle_button_renderer::draw_toggle_button ( const style_sheets::style_sheet style_sheet,
xtd::drawing::graphics graphics,
const xtd::drawing::rectangle bounds,
xtd::forms::visual_styles::toggle_button_state  toggle_state,
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 box in the specified style_sheet, bounds, control state and background color.

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