Provides methods used to paint common Windows controls and their elements. This class cannot be inherited.
- Header
#include <xtd/forms/control_paint>
- Namespace
- xtd::forms
- Library
- xtd.forms
|
static xtd::drawing::color | average (const xtd::drawing::color &color1, const xtd::drawing::color &color2, double weight, bool average_alpha) |
| Returns the weighted average color between the two given colors.
|
|
static xtd::drawing::color | average (const xtd::drawing::color &color1, const xtd::drawing::color &color2, double weight) |
| Returns the weighted average color between the two given colors.
|
|
static xtd::drawing::color | dark (const xtd::drawing::color &base_color) |
| Creates a new dark color object for the control from the specified color.
|
|
static xtd::drawing::color | dark (const xtd::drawing::color &base_color, double perc_of_dark_dark) |
| Creates a new dark color object for the control from the specified color and darkens it by the specified percentage.
|
|
static xtd::drawing::color | dark_dark (const xtd::drawing::color &base_color) |
| Creates a new dark color object for the control from the specified color.
|
|
static void | draw_button (const xtd::forms::control &control, xtd::drawing::graphics &graphics, const xtd::drawing::rectangle &rectangle, xtd::forms::button_state state) |
|
static void | draw_button (const xtd::forms::control &control, xtd::drawing::graphics &graphics, int32 x, int32 y, int32 width, int32 height, xtd::forms::button_state state) |
|
static void | draw_border (const xtd::forms::control &control, xtd::drawing::graphics &graphics, xtd::forms::border_style border, xtd::forms::border_sides sides, const xtd::drawing::color &color, const xtd::drawing::rectangle &rect) |
|
static void | draw_border (const xtd::forms::control &control, xtd::drawing::graphics &graphics, xtd::forms::border_style border, xtd::forms::border_sides sides, const xtd::drawing::color &color, const xtd::drawing::rectangle &rect, bool light) |
|
static void | draw_border_from_back_color (const xtd::forms::control &control, xtd::drawing::graphics &graphics, xtd::forms::border_style border, xtd::forms::border_sides sides, const xtd::drawing::color &back_color, const xtd::drawing::rectangle &rect) |
|
static void | draw_image (xtd::drawing::graphics &graphics, const xtd::drawing::image &image, const xtd::drawing::rectangle &rectangle, xtd::forms::image_layout image_layout) |
| Draws the specified image in a specified rectangle with specified layout.
|
|
static void | draw_image (xtd::drawing::graphics &graphics, const xtd::drawing::image &image, int32 x, int32 y, int32 width, int32 height, xtd::forms::image_layout image_layout) |
| Draws the specified image in a specified rectangle with specified layout.
|
|
static void | draw_image_disabled (xtd::drawing::graphics &graphics, const xtd::drawing::image &image, int32 x, int32 y, float brightness) |
| Draws the specified image in a disabled state.
|
|
static void | draw_image_disabled (xtd::drawing::graphics &graphics, const xtd::drawing::image &image, int32 x, int32 y, const xtd::drawing::color &background) |
| Draws the specified image in a disabled state.
|
|
static void | draw_image_disabled (xtd::drawing::graphics &graphics, const xtd::drawing::image &image, const xtd::drawing::point &location, float brightness) |
| Draws the specified image in a disabled state.
|
|
static void | draw_image_disabled (xtd::drawing::graphics &graphics, const xtd::drawing::image &image, const xtd::drawing::point &location, const xtd::drawing::color &background) |
| Draws the specified image in a disabled state.
|
|
static xtd::drawing::color | light (const xtd::drawing::color &base_color) |
| Creates a new light color object for the control from the specified color.
|
|
static xtd::drawing::color | light (const xtd::drawing::color &base_color, double perc_of_light_light) |
| Creates a new light color object for the control from the specified color and lightens it by the specified percentage.
|
|
static xtd::drawing::color | light_light (const xtd::drawing::color &base_color) |
| Creates a new light color object for the control from the specified color.
|
|
static xtd::drawing::string_format | string_format (xtd::forms::text_format_flags flags) |
| Convert xtd::forms::text_format_flags to xtd::drawing::string_format.
|
|