10#include <xtd/drawing/color>
11#include <xtd/drawing/font>
12#include <xtd/drawing/graphics>
13#include <xtd/drawing/image>
14#include <xtd/drawing/rectangle>
15#include <xtd/optional>
16#include <xtd/delegate>
17#include <xtd/iequatable>
42 using button_renderer = xtd::delegate<void(
xtd::drawing::graphics,
const xtd::drawing::rectangle&,
const xtd::string&,
const xtd::drawing::font&,
xtd::forms::text_format_flags,
const xtd::drawing::image&,
const xtd::drawing::rectangle&,
bool focused,
xtd::forms::visual_styles::push_button_state,
const std::optional<xtd::drawing::color>&,
const std::optional<xtd::drawing::color>&)>;
43 using check_box_renderer = xtd::delegate<void(
xtd::drawing::graphics,
const xtd::drawing::rectangle&,
const xtd::string&,
const xtd::drawing::font&,
xtd::forms::text_format_flags,
const xtd::drawing::image&,
const xtd::drawing::rectangle&,
bool focused,
xtd::forms::visual_styles::check_box_state,
const std::optional<xtd::drawing::color>&,
const std::optional<xtd::drawing::color>&)>;
44 using radio_button_renderer = xtd::delegate<void(
xtd::drawing::graphics,
const xtd::drawing::rectangle&,
const xtd::string&,
const xtd::drawing::font&,
xtd::forms::text_format_flags,
const xtd::drawing::image&,
const xtd::drawing::rectangle&,
bool focused,
xtd::forms::visual_styles::radio_button_state,
const std::optional<xtd::drawing::color>&,
const std::optional<xtd::drawing::color>&)>;
50 static const renderer empty;
61 renderer(
const renderer&);
62 renderer& operator =(
const renderer&);
71 button_renderer button_render()
const noexcept;
72 void button_render(button_renderer button_renderer);
74 check_box_renderer check_box_render()
const noexcept;
75 void check_box_render(check_box_renderer check_box_renderer);
77 radio_button_renderer radio_button_render()
const noexcept;
78 void radio_button_render(radio_button_renderer radio_button_renderer);
84 void draw_button(
xtd::drawing::graphics g,
const xtd::drawing::rectangle& bounds,
const xtd::string&
text,
const xtd::drawing::font& font,
xtd::forms::text_format_flags flags,
const xtd::drawing::image& image,
const xtd::drawing::rectangle& image_bounds,
bool focused,
xtd::forms::visual_styles::push_button_state state,
const std::optional<xtd::drawing::color>& back_color,
const std::optional<xtd::drawing::color>& fore_color);
85 void draw_check_box(
xtd::drawing::graphics g,
const xtd::drawing::rectangle& bounds,
const xtd::string&
text,
const xtd::drawing::font& font,
xtd::forms::text_format_flags flags,
const xtd::drawing::image& image,
const xtd::drawing::rectangle& image_bounds,
bool focused,
xtd::forms::visual_styles::check_box_state state,
const std::optional<xtd::drawing::color>& back_color,
const std::optional<xtd::drawing::color>& fore_color);
86 void draw_radio_button(
xtd::drawing::graphics g,
const xtd::drawing::rectangle& bounds,
const xtd::string&
text,
const xtd::drawing::font& font,
xtd::forms::text_format_flags flags,
const xtd::drawing::image& image,
const xtd::drawing::rectangle& image_bounds,
bool focused,
xtd::forms::visual_styles::radio_button_state state,
const std::optional<xtd::drawing::color>& back_color,
const std::optional<xtd::drawing::color>& fore_color);
107 static
void default_button_renderer(
xtd::
drawing::graphics
g, const
xtd::
drawing::rectangle& bounds, const
xtd::
string&
text, const
xtd::
drawing::font& font,
xtd::
forms::
text_format_flags flags, const
xtd::
drawing::image& image, const
xtd::
drawing::rectangle& image_bounds,
bool focused,
xtd::
forms::
visual_styles::push_button_state state, const std::
optional<
xtd::
drawing::color>& back_color, const std::
optional<
xtd::
drawing::color>& fore_color);
108 static
void default_check_box_renderer(
xtd::
drawing::graphics
g, const
xtd::
drawing::rectangle& bounds, const
xtd::
string&
text, const
xtd::
drawing::font& font,
xtd::
forms::
text_format_flags flags, const
xtd::
drawing::image& image, const
xtd::
drawing::rectangle& image_bounds,
bool focused,
xtd::
forms::
visual_styles::check_box_state state, const std::
optional<
xtd::
drawing::color>& back_color, const std::
optional<
xtd::
drawing::color>& fore_color);
109 static
void default_radio_button_renderer(
xtd::
drawing::graphics
g, const
xtd::
drawing::rectangle& bounds, const
xtd::
string&
text, const
xtd::
drawing::font& font,
xtd::
forms::
text_format_flags flags, const
xtd::
drawing::image& image, const
xtd::
drawing::rectangle& image_bounds,
bool focused,
xtd::
forms::
visual_styles::radio_button_state state, const std::
optional<
xtd::
drawing::color>& back_color, const std::
optional<
xtd::
drawing::color>& fore_color);
Contains xtd::forms::visual_styles::check_box_state enum class.
Defines a particular format for text, including font face, size, and style attributes....
Definition font.hpp:45
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.hpp:67
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.hpp:49
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
object()=default
Create a new instance of the ultimate base class object.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
std::optional< type_t > optional
Represents the optional alias on std::optional.
Definition optional.hpp:25
@ flags
Enum flags attribute.
Definition enum_attribute.hpp:26
@ other
The operating system is other.
Definition platform_id.hpp:58
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.hpp:44
Contains xtd::forms::text_format_flags enum class.