Provides xtd::forms::toggle_button renderer methods.
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) |
|
static |
Draws a box in the specified style_sheet, bounds, control state and background color.
graphics | The Graphics used to draw a control. |
bounds | The xtd::drawing::rectangle that specifies the bounds of the control. |
graphics | The Graphics used to draw a control. |
bounds | The xtd::drawing::rectangle that specifies the bounds of the control. |
toggle_state | The visual state of a control that is drawn with visual styles. |
back_color | The background color for the control. |