xtd.forms - Reference Guide  0.1.0
Modern c++17 library containing classes for creating Windows-based applications that take full advantage of the rich user interface features available in the Microsoft Windows, Apple macOS and Linux like Ubuntu operating system.
xtd::forms::renderer Class Reference

Public Types

using button_renderer = xtd::delegate< void(xtd::drawing::graphics, const xtd::drawing::rectangle &, const std::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 > &)>
 
using check_box_renderer = xtd::delegate< void(xtd::drawing::graphics, const xtd::drawing::rectangle &, const std::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 > &)>
 
using radio_button_renderer = xtd::delegate< void(xtd::drawing::graphics, const xtd::drawing::rectangle &, const std::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 > &)>
 

Public Member Functions

 renderer (const std::string &name)
 
button_renderer button_render () const
 
void button_render (button_renderer button_renderer)
 
check_box_renderer check_box_render () const
 
void check_box_render (check_box_renderer check_box_renderer)
 
void draw_button (xtd::drawing::graphics g, const xtd::drawing::rectangle &bounds, const std::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)
 
void draw_check_box (xtd::drawing::graphics g, const xtd::drawing::rectangle &bounds, const std::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)
 
void draw_radio_button (xtd::drawing::graphics g, const xtd::drawing::rectangle &bounds, const std::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)
 
virtual const std::string & name () const
 
renderername (const std::string &name)
 
radio_button_renderer radio_button_render () const
 
void radio_button_render (radio_button_renderer radio_button_renderer)
 
std::string to_string () const
 

Static Public Attributes

static const renderer empty
 

The documentation for this class was generated from the following file: