xtd 0.2.0
Loading...
Searching...
No Matches
toggle_button_renderer.h
Go to the documentation of this file.
1
4#pragma once
6#include "border_sides.h"
7#include "border_style.h"
8#include "box_renderer.h"
9#include "content_alignment.h"
11#include "flat_style.h"
12#include <xtd/drawing/graphics>
13#include <xtd/static>
14
16namespace xtd {
18 namespace forms {
33 public:
35
45 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);
46 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);
47 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);
49 };
50 }
51}
Contains xtd::forms::border_sides enum class.
Contains xtd::forms::box_renderer static class.
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.h:70
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.h:49
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.h:44
Provides properties that specify the appearance of xtd::forms::button controls whose xtd::forms::flat...
Definition flat_button_appearance.h:22
The xtd::forms::style_sheets::style_sheet allows you to specify an xtd style sheet.
Definition style_sheet.h:62
Provides xtd::forms::toggle_button renderer methods.
Definition toggle_button_renderer.h:32
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.
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
Contains xtd::forms::content_alignment enum class.
Contains xtd::forms::flat_button_appearance class.
Contains xtd::forms::flat_style enum class.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
toggle_button_state
Specifies the visual state of a check box that is drawn with visual styles.
Definition toggle_button_state.h:22
@ text
The xtd::forms::status_bar_panel displays text in the standard font.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::forms::style_sheets::border_style class.
Contains xtd::forms::visual_styles::toggle_button_state enum class.