Provides xtd::forms::toggle_button renderer methods.
class forms_export_ toggle_button_renderer
static_ - Inheritance
- xtd::static → xtd::forms::toggle_button_renderer
- Header
#include <xtd/forms/toggle_button_renderer>
- Namespace
- xtd::forms::style_sheets
- Library
- xtd.forms
|
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::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 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::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 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::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 box in the specified style_sheet, bounds, control state and background color. More...
|
|
◆ 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::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 box in the specified style_sheet, bounds, control state and background color.
- Parameters
-
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. |
The documentation for this class was generated from the following file: