xtd 0.2.0
Loading...
Searching...
No Matches
graphics.h
Go to the documentation of this file.
1
4#pragma once
5#include "../drawing_export.h"
12#include "drawing_2d/matrix.h"
17#include "brush.h"
19#include "solid_brush.h"
20#include "color.h"
21#include "font.h"
22#include "graphics_unit.h"
23#include "pen.h"
24#include "point.h"
25#include "point_f.h"
26#include "rectangle.h"
27#include "rectangle_f.h"
28#include "region.h"
29#include "size.h"
30#include "string_format.h"
31#include "size_f.h"
32#include <xtd/object>
33#include <xtd/ustring>
34#include <cstdint>
35#include <limits>
36#include <ostream>
37
38
40namespace xtd {
41 namespace forms {
42 class control;
43 class control_paint;
44 class paint_event_args;
45 class region;
46 class screen;
47 }
48}
50
52namespace xtd {
54 namespace drawing {
56 class icon;
57 class image;
71 struct data;
72
73 public:
75 graphics(const graphics& value);
76 graphics& operator =(const graphics& value);
77 ~graphics();
79
81
86 xtd::drawing::region clip() const noexcept;
91 graphics& clip(const xtd::drawing::region value);
92
97 xtd::drawing::rectangle_f clip_bounds() const noexcept;
98
103 xtd::drawing::drawing_2d::compositing_mode compositing_mode() const noexcept;
109 graphics& compositing_mode(xtd::drawing::drawing_2d::compositing_mode value);
110
114 xtd::drawing::drawing_2d::compositing_quality compositing_quality() const noexcept;
119 graphics& compositing_quality(xtd::drawing::drawing_2d::compositing_quality value);
120
123 float dpi_x() const noexcept;
124
127 float dpi_y() const noexcept;
128
131 intptr handle() const noexcept;
132
136 xtd::drawing::drawing_2d::interpolation_mode interpolation_mode() const noexcept;
141 graphics& interpolation_mode(xtd::drawing::drawing_2d::interpolation_mode value) noexcept;
142
145 float page_scale() const noexcept;
149 graphics& page_scale(float value) noexcept;
150
154 xtd::drawing::graphics_unit page_unit() const noexcept;
160 graphics& page_unit(xtd::drawing::graphics_unit value);
161
165 xtd::drawing::drawing_2d::pixel_offset_mode pixel_offset_mode() const noexcept;
170 graphics& pixel_offset_mode(xtd::drawing::drawing_2d::pixel_offset_mode value) noexcept;
171
175 xtd::drawing::drawing_2d::smoothing_mode smoothing_mode() const noexcept;
180 graphics& smoothing_mode(xtd::drawing::drawing_2d::smoothing_mode value) noexcept;
181
185 int32 text_contrast() const noexcept;
190 graphics& text_contrast(int32 value) noexcept;
191
196 xtd::drawing::text::text_rendering_hint text_rendering_hint() const noexcept;
202 graphics& text_rendering_hint(xtd::drawing::text::text_rendering_hint value);
203
208 xtd::drawing::drawing_2d::matrix transform() const noexcept;
214 graphics& transform(const xtd::drawing::drawing_2d::matrix& value) noexcept;
215
220 xtd::drawing::rectangle_f visible_clip_bounds() const noexcept;
222
224
228 void clear(const color& color);
229
236 void copy_from_graphics(const graphics& source, const xtd::drawing::point& upper_left_source, const xtd::drawing::point& upper_left_destination, const xtd::drawing::size& block_region_size);
244 void copy_from_graphics(const graphics& source, const xtd::drawing::point& upper_left_source, const xtd::drawing::point& upper_left_destination, const xtd::drawing::size& block_region_size, xtd::drawing::copy_pixel_operation copy_pixel_operation);
253 void copy_from_graphics(const graphics& source, int32 source_x, int32 source_y, int32 destination_x, int32 destination_y, const xtd::drawing::size& block_region_size);
263 void copy_from_graphics(const graphics& source, int32 source_x, int32 source_y, int32 destination_x, int32 destination_y, const xtd::drawing::size& block_region_size, xtd::drawing::copy_pixel_operation copy_pixel_operation);
264
270 void copy_from_screen(const xtd::drawing::point& upper_left_source, const xtd::drawing::point& upper_left_destination, const xtd::drawing::size& block_region_size);
277 void copy_from_screen(const xtd::drawing::point& upper_left_source, const xtd::drawing::point& upper_left_destination, const xtd::drawing::size& block_region_size, xtd::drawing::copy_pixel_operation copy_pixel_operation);
285 void copy_from_screen(int32 source_x, int32 source_y, int32 destination_x, int32 destination_y, const xtd::drawing::size& block_region_size);
294 void copy_from_screen(int32 source_x, int32 source_y, int32 destination_x, int32 destination_y, const xtd::drawing::size& block_region_size, xtd::drawing::copy_pixel_operation copy_pixel_operation);
295
302 void draw_arc(const xtd::drawing::pen& pen, const xtd::drawing::rectangle& rect, float start_angle, float sweep_angle);
309 void draw_arc(const xtd::drawing::pen& pen, const xtd::drawing::rectangle_f& rect, float start_angle, float sweep_angle);
319 void draw_arc(const xtd::drawing::pen& pen, int32 x, int32 y, int32 width, int32 height, int32 start_angle, int32 sweep_angle);
329 void draw_arc(const xtd::drawing::pen& pen, float x, float y, float width, float height, float start_angle, float sweep_angle);
330
338 void draw_bezier(const xtd::drawing::pen& pen, const xtd::drawing::point& pt1, const xtd::drawing::point& pt2, const xtd::drawing::point& pt3, const xtd::drawing::point& pt4);
346 void draw_bezier(const xtd::drawing::pen& pen, const xtd::drawing::point_f& pt1, const xtd::drawing::point_f& pt2, const xtd::drawing::point_f& pt3, const xtd::drawing::point_f& pt4);
358 void draw_bezier(const pen& pen, int32 x1, int32 y1, int32 x2, int32 y2, int32 x3, int32 y3, int32 x4, int32 y4);
370 void draw_bezier(const pen& pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4);
371
376 void draw_beziers(const pen& pen, const std::vector<xtd::drawing::point>& points);
381 void draw_beziers(const pen& pen, const std::vector<xtd::drawing::point_f>& points);
382
389 void draw_closed_curve(const pen& pen, const std::vector<xtd::drawing::point>& points);
396 void draw_closed_curve(const pen& pen, const std::vector<xtd::drawing::point_f>& points);
404 void draw_closed_curve(const pen& pen, const std::vector<xtd::drawing::point>& points, float tension);
412 void draw_closed_curve(const pen& pen, const std::vector<xtd::drawing::point_f>& points, float tension);
413
420 void draw_curve(const pen& pen, const std::vector<xtd::drawing::point>& points);
427 void draw_curve(const pen& pen, const std::vector<xtd::drawing::point_f>& points);
435 void draw_curve(const pen& pen, const std::vector<xtd::drawing::point>& points, float tension);
443 void draw_curve(const pen& pen, const std::vector<xtd::drawing::point_f>& points, float tension);
455 void draw_curve(const pen& pen, const std::vector<xtd::drawing::point>& points, size_t offset, size_t number_of_segments);
467 void draw_curve(const pen& pen, const std::vector<xtd::drawing::point_f>& points, size_t offset, size_t number_of_segments);
479 void draw_curve(const pen& pen, const std::vector<xtd::drawing::point>& points, size_t offset, size_t number_of_segments, float tension);
491 void draw_curve(const pen& pen, const std::vector<xtd::drawing::point_f>& points, size_t offset, size_t number_of_segments, float tension);
492
497 void draw_ellipse(const xtd::drawing::pen& pen, const xtd::drawing::rectangle& rect);
502 void draw_ellipse(const xtd::drawing::pen& pen, const xtd::drawing::rectangle_f& rect);
510 void draw_ellipse(const xtd::drawing::pen& pen, int32 x, int32 y, int32 width, int32 height);
518 void draw_ellipse(const xtd::drawing::pen& pen, float x, float y, float width, float height);
519
524 void draw_icon(const xtd::drawing::icon& icon, int32 x, int32 y);
528 void draw_icon(const xtd::drawing::icon& icon, const xtd::drawing::rectangle& rect);
529
533 void draw_icon_unstretched(const xtd::drawing::icon& icon, const xtd::drawing::rectangle& rect);
534
539 void draw_image(const xtd::drawing::image& image, const xtd::drawing::rectangle& rect);
544 void draw_image(const xtd::drawing::image& image, const xtd::drawing::rectangle_f& rect);
550 void draw_image(const xtd::drawing::image& image, const xtd::drawing::point& point);
556 void draw_image(const xtd::drawing::image& image, const xtd::drawing::point_f& point);
564 void draw_image(const xtd::drawing::image& image, int32 x, int32 y, int32 width, int32 height);
572 void draw_image(const xtd::drawing::image& image, float x, float y, float width, float height);
579 void draw_image(const xtd::drawing::image& image, int32 x, int32 y);
586 void draw_image(const xtd::drawing::image& image, float x, float y);
587
592 void draw_image(const xtd::drawing::image& image, const xtd::drawing::rectangle& dest_rect, const xtd::drawing::rectangle& src_rect);
597 void draw_image(const xtd::drawing::image& image, const xtd::drawing::rectangle_f& dest_rect, const xtd::drawing::rectangle_f& src_rect);
603 void draw_image(const xtd::drawing::image& image, const xtd::drawing::point& dest_point, const xtd::drawing::rectangle& src_rect);
609 void draw_image(const xtd::drawing::image& image, const xtd::drawing::point_f& dest_point, const xtd::drawing::rectangle_f& src_rect);
614 void draw_image(const xtd::drawing::image& image, const xtd::drawing::rectangle& dest_rect, int32 src_x, int32 src_y, int32 srd_width, int32 src_height);
619 void draw_image(const xtd::drawing::image& image, const xtd::drawing::rectangle_f& dest_rect, float src_x, float src_y, float srd_width, float src_height);
625 void draw_image(const xtd::drawing::image& image, const xtd::drawing::point& dest_point, int32 src_x, int32 src_y, int32 srd_width, int32 src_height);
631 void draw_image(const xtd::drawing::image& image, const xtd::drawing::point_f& dest_point, float src_x, float src_y, float srd_width, float src_height);
632
638 void draw_image_unscaled(const xtd::drawing::image& image, const xtd::drawing::point& point);
645 void draw_image_unscaled(const xtd::drawing::image& image, int32 x, int32 y);
651 void draw_image_unscaled(const xtd::drawing::image& image, const xtd::drawing::rectangle& rect);
660 void draw_image_unscaled(const xtd::drawing::image& image, int32 x, int32 y, int32 width, int32 height);
661
665 void draw_image_unscaled_and_clipped(const xtd::drawing::image& image, const xtd::drawing::rectangle& rect);
666
671 void draw_line(const xtd::drawing::pen& pen, const xtd::drawing::point& pt1, const point& pt2);
676 void draw_line(const xtd::drawing::pen& pen, const xtd::drawing::point_f& pt1, const point_f& pt2);
684 void draw_line(const xtd::drawing::pen& pen, int32 x1, int32 y1, int32 x2, int32 y2);
692 void draw_line(const xtd::drawing::pen& pen, float x1, float y1, float x2, float y2);
693
698 void draw_lines(const xtd::drawing::pen& pen, const std::vector<xtd::drawing::point>& points);
703 void draw_lines(const xtd::drawing::pen& pen, const std::vector<xtd::drawing::point_f>& points);
704
709 void draw_path(const xtd::drawing::pen& pen, const xtd::drawing::drawing_2d::graphics_path& path);
710
718 void draw_pie(const xtd::drawing::pen& pen, const xtd::drawing::rectangle& rect, float start_angle, float sweep_angle);
726 void draw_pie(const xtd::drawing::pen& pen, const xtd::drawing::rectangle_f& rect, float start_angle, float sweep_angle);
737 void draw_pie(const xtd::drawing::pen& pen, int32 x, int32 y, int32 width, int32 height, int32 start_angle, int32 sweep_angle);
748 void draw_pie(const xtd::drawing::pen& pen, float x, float y, float width, float height, float start_angle, float sweep_angle);
749
754 void draw_polygon(const xtd::drawing::pen& pen, const std::vector<xtd::drawing::point>& points);
759 void draw_polygon(const xtd::drawing::pen& pen, const std::vector<xtd::drawing::point_f>& points);
760
764 void draw_point(const xtd::drawing::pen& pen, const xtd::drawing::point& point);
768 void draw_point(const xtd::drawing::pen& pen, const xtd::drawing::point_f& point);
773 void draw_point(const xtd::drawing::pen& pen, int32 x, int32 y);
778 void draw_point(const xtd::drawing::pen& pen, float x, float y);
779
783 void draw_rectangle(const xtd::drawing::pen& pen, const xtd::drawing::rectangle& rect);
787 void draw_rectangle(const xtd::drawing::pen& pen, const xtd::drawing::rectangle_f& rect);
794 void draw_rectangle(const xtd::drawing::pen& pen, int32 x, int32 y, int32 width, int32 height);
801 void draw_rectangle(const xtd::drawing::pen& pen, float x, float y, float width, float height);
802
806 void draw_rectangles(const xtd::drawing::pen& pen, const std::vector<xtd::drawing::rectangle>& rects);
810 void draw_rectangles(const xtd::drawing::pen& pen, const std::vector<xtd::drawing::rectangle_f>& rects);
811
818 void draw_rotated_string(const xtd::ustring& s, const xtd::drawing::font& font, const xtd::drawing::brush& brush, const xtd::drawing::point_f& point, float angle);
826 void draw_rotated_string(const xtd::ustring& s, const xtd::drawing::font& font, const xtd::drawing::brush& brush, float x, float y, float angle);
827
832 void draw_rounded_rectangle(const xtd::drawing::pen& pen, const xtd::drawing::rectangle& rect, int32 radius);
837 void draw_rounded_rectangle(const xtd::drawing::pen& pen, const xtd::drawing::rectangle_f& rect, float radius);
845 void draw_rounded_rectangle(const xtd::drawing::pen& pen, int32 x, int32 y, int32 width, int32 height, int32 radius);
853 void draw_rounded_rectangle(const xtd::drawing::pen& pen, float x, float y, float width, float height, float radius);
854
861 void draw_string(const xtd::ustring& s, const xtd::drawing::font& font, const xtd::drawing::brush& brush, const xtd::drawing::rectangle_f& layout_rectangle);
869 void draw_string(const xtd::ustring& s, const xtd::drawing::font& font, const xtd::drawing::brush& brush, const xtd::drawing::rectangle_f& layout_rectangle, const xtd::drawing::string_format& format);
875 void draw_string(const xtd::ustring& s, const xtd::drawing::font& font, const xtd::drawing::brush& brush, const xtd::drawing::point_f& point);
882 void draw_string(const xtd::ustring& s, const xtd::drawing::font& font, const xtd::drawing::brush& brush, const xtd::drawing::point_f& point, const xtd::drawing::string_format& format);
889 void draw_string(const xtd::ustring& s, const xtd::drawing::font& font, const xtd::drawing::brush& brush, float x, float y);
897 void draw_string(const xtd::ustring& s, const xtd::drawing::font& font, const xtd::drawing::brush& brush, float x, float y, const xtd::drawing::string_format& format);
898
902 void exclude_clip(const xtd::drawing::region& region);
906 void exclude_clip(const xtd::drawing::rectangle& rect);
910 void exclude_clip(const xtd::drawing::rectangle_f& rect);
911
918 void fill_closed_curve(const xtd::drawing::brush& brush, const std::vector<xtd::drawing::point>& points);
925 void fill_closed_curve(const xtd::drawing::brush& brush, const std::vector<xtd::drawing::point_f>& points);
933 void fill_closed_curve(const xtd::drawing::brush& brush, const std::vector<xtd::drawing::point>& points, xtd::drawing::drawing_2d::fill_mode fill_mode);
941 void fill_closed_curve(const xtd::drawing::brush& brush, const std::vector<xtd::drawing::point_f>& points, xtd::drawing::drawing_2d::fill_mode fill_mode);
950 void fill_closed_curve(const xtd::drawing::brush& brush, const std::vector<xtd::drawing::point>& points, xtd::drawing::drawing_2d::fill_mode fill_mode, float tension);
959 void fill_closed_curve(const xtd::drawing::brush& brush, const std::vector<xtd::drawing::point_f>& points, xtd::drawing::drawing_2d::fill_mode fill_mode, float tension);
960
965 void fill_ellipse(const xtd::drawing::brush& brush, const xtd::drawing::rectangle& rect);
970 void fill_ellipse(const xtd::drawing::brush& brush, const xtd::drawing::rectangle_f& rect);
978 void fill_ellipse(const xtd::drawing::brush& brush, int32 x, int32 y, int32 width, int32 height);
986 void fill_ellipse(const xtd::drawing::brush& brush, float x, float y, float width, float height);
987
992 void fill_path(const xtd::drawing::brush& brush, const xtd::drawing::drawing_2d::graphics_path& path);
993
1001 void fill_pie(const xtd::drawing::brush& brush, const xtd::drawing::rectangle& rect, float start_angle, float sweep_angle);
1009 void fill_pie(const xtd::drawing::brush& brush, const xtd::drawing::rectangle_f& rect, float start_angle, float sweep_angle);
1020 void fill_pie(const xtd::drawing::brush& brush, int32 x, int32 y, int32 width, int32 height, int32 start_angle, int32 sweep_angle);
1031 void fill_pie(const xtd::drawing::brush& brush, float x, float y, float width, float height, float start_angle, float sweep_angle);
1032
1037 void fill_polygon(const xtd::drawing::brush& brush, const std::vector<xtd::drawing::point>& points);
1042 void fill_polygon(const xtd::drawing::brush& brush, const std::vector<xtd::drawing::point_f>& points);
1048 void fill_polygon(const xtd::drawing::brush& brush, const std::vector<xtd::drawing::point>& points, xtd::drawing::drawing_2d::fill_mode fill_mode);
1054 void fill_polygon(const xtd::drawing::brush& brush, const std::vector<xtd::drawing::point_f>& points, xtd::drawing::drawing_2d::fill_mode fill_mode);
1055
1060 void fill_rectangle(const xtd::drawing::brush& brush, const xtd::drawing::rectangle& rect);
1065 void fill_rectangle(const xtd::drawing::brush& brush, const xtd::drawing::rectangle_f& rect);
1073 void fill_rectangle(const xtd::drawing::brush& brush, int32 x, int32 y, int32 width, int32 height);
1081 void fill_rectangle(const xtd::drawing::brush& brush, float x, float y, float width, float height);
1082
1086 void fill_rectangles(const xtd::drawing::brush& brush, const std::vector<xtd::drawing::rectangle>& rects);
1090 void fill_rectangles(const xtd::drawing::brush& brush, const std::vector<xtd::drawing::rectangle_f>& rects);
1091
1096 void fill_region(const xtd::drawing::brush& brush, const xtd::drawing::region& region);
1097
1103 void fill_rounded_rectangle(const xtd::drawing::brush& brush, const xtd::drawing::rectangle& rect, int32 radius);
1109 void fill_rounded_rectangle(const xtd::drawing::brush& brush, const xtd::drawing::rectangle_f& rect, float radius);
1118 void fill_rounded_rectangle(const xtd::drawing::brush& brush, int32 x, int32 y, int32 width, int32 height, int32 radius);
1127 void fill_rounded_rectangle(const xtd::drawing::brush& brush, float x, float y, float width, float height, float radius);
1128
1131 void flush();
1135 void flush(xtd::drawing::drawing_2d::flush_intention intention);
1136
1141 intptr get_hdc() const;
1142
1146 xtd::drawing::color get_nearest_color(const xtd::drawing::color& color) const;
1147
1151 void intersect_clip(const xtd::drawing::region& region);
1155 void intersect_clip(const xtd::drawing::rectangle& rect);
1159 void intersect_clip(const xtd::drawing::rectangle_f& rect);
1160
1164 bool is_visible(const xtd::drawing::rectangle& rect);
1168 bool is_visible(const xtd::drawing::rectangle_f& rect);
1175 bool is_visible(int32 x, int32 y, int32 width, int32 height);
1182 bool is_visible(float x, float y, float width, float height);
1186 bool is_visible(const xtd::drawing::point& point);
1190 bool is_visible(const xtd::drawing::point_f& point);
1195 bool is_visible(int32 x, int32 y);
1200 bool is_visible(float x, float y);
1201
1206 size_f measure_string(const xtd::ustring& text, const xtd::drawing::font& font);
1212 size_f measure_string(const xtd::ustring& text, const xtd::drawing::font& font, const xtd::drawing::size_f& layout_area);
1218 size_f measure_string(const xtd::ustring& text, const xtd::drawing::font& font, int32 width);
1225 size_f measure_string(const xtd::ustring& text, const xtd::drawing::font& font, const xtd::drawing::point_f& origin, const xtd::drawing::string_format& format);
1232 size_f measure_string(const xtd::ustring& text, const xtd::drawing::font& font, const xtd::drawing::size_f& layout_area, const xtd::drawing::string_format& format);
1239 size_f measure_string(const xtd::ustring& text, const xtd::drawing::font& font, int32 width, const xtd::drawing::string_format& format);
1248 size_f measure_string(const xtd::ustring& text, const xtd::drawing::font& font, const xtd::drawing::size_f& layout_area, const xtd::drawing::string_format& format, size_t characters_fitted, size_t lines_filled);
1249
1253 void multiply_transform(const xtd::drawing::drawing_2d::matrix& matrix);
1258 void multiply_transform(const xtd::drawing::drawing_2d::matrix& matrix, xtd::drawing::drawing_2d::matrix_order order);
1259
1264 void release_hdc(intptr hdc);
1265
1268 void reset_clip();
1269
1272 void reset_transform();
1273
1278 void restore(const xtd::drawing::drawing_2d::graphics_state& gstate);
1279
1283 void rotate_transform(float angle);
1288 void rotate_transform(float angle, xtd::drawing::drawing_2d::matrix_order order);
1289
1294 xtd::drawing::drawing_2d::graphics_state save();
1295
1300 void scale_transform(float sx, float sy);
1306 void scale_transform(float sx, float sy, xtd::drawing::drawing_2d::matrix_order order);
1307
1311 void translate_clip(int32 dx, int32 dy);
1315 void translate_clip(float dx, float dy);
1316
1321 void translate_transform(float dx, float dy);
1327 void translate_transform(float dx, float dy, xtd::drawing::drawing_2d::matrix_order order);
1328
1334 xtd::ustring trim_string(const xtd::ustring& text, const xtd::drawing::font& font, float width, xtd::drawing::string_trimming trimming);
1335
1336 xtd::ustring to_string() const noexcept override {return get_type().full_name();}
1338
1340
1354 static graphics from_hdc(intptr hdc, intptr hdevice);
1355
1360
1376
1377 private:
1378 friend xtd::drawing::image;
1379 friend xtd::drawing::region;
1380 float to_page_unit(float value) const;
1381 static float to_page_unit(float value, xtd::drawing::graphics_unit page_unit, float page_scale, float dpi);
1382 int32 to_pixels(int32 value) const;
1383 float to_pixels(float value) const;
1384 static float to_pixels(float value, xtd::drawing::graphics_unit page_unit, float page_scale, float dpi);
1385 friend xtd::forms::control;
1388 friend xtd::forms::screen;
1389
1390 explicit graphics(intptr handle);
1391 graphics(intptr handle, const drawing::region& region);
1392 void draw_image_disabled(const xtd::drawing::image& image, float x, float y, float width, float height, float brightness);
1393
1394 std::shared_ptr<data> data_;
1395 };
1396 }
1397}
Contains xtd::drawing::brush class.
Defines objects used to fill the interiors of graphical shapes such as rectangles,...
Definition brush.h:33
Represents an ARGB (alpha, red, green, blue) color.
Definition color.h:49
Defines a particular format for text, including font face, size, and style attributes....
Definition font.h:45
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.h:70
static graphics from_hdc(intptr hdc)
Creates a new xtd::drawing::graphics from the specified handle to a device context.
static graphics from_hdc(intptr hdc, intptr hdevice)
Creates a new xtd::drawing::graphics from the specified handle to a device contextand handle to a dev...
static graphics from_hwnd(intptr hwnd)
Creates a new xtd::drawing::graphics from the specified handle to a window.
xtd::drawing::region clip() const noexcept
Gets a xtd::drawing::region that limits the drawing region of this xtd::drawing::graphics.
static graphics from_image(const xtd::drawing::image &image)
Creates a new xtd::drawing::graphics from the specified xtd::drawing::image.
Represents a Windows icon, which is a small bitmap image that is used to represent an object....
Definition icon.h:28
An abstract base class that provides functionality for the bitmap and metafile descended classes.
Definition image.h:49
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition pen.h:35
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimen...
Definition point_f.h:35
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.h:54
Stores a set of four floating-point numbers that represent the location and size of a rectangle....
Definition rectangle_f.h:34
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.h:44
Describes the interior of a graphics shape composed of rectangles and paths. This class cannot be inh...
Definition region.h:32
Stores an ordered pair of floating-point, which specify a height and width.
Definition size_f.h:31
Stores an ordered pair of integers, which specify a height and width.
Definition size.h:31
Encapsulates text layout information (such as alignment, orientation and tab stops) display manipulat...
Definition string_format.h:30
Provides methods used to paint common Windows controls and their elements. This class cannot be inher...
Definition control_paint.h:37
Defines the base class for controls, which are components with visual representation.
Definition control.h:79
Provides data for the xtd::forms::control::paint event.
Definition paint_event_args.h:28
Represents a display device or multiple display devices on a single system.
Definition screen.h:30
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
Contains xtd::drawing::color class.
Contains xtd::drawing::drawing_2d::compositing_mode enum class.
Contains xtd::drawing::drawing_2d::compositing_quality enum class.
Contains xtd::drawing::copy_pixel_operation enum class.
Contains xtd::drawing::drawing_2d::flush_intention enum class.
Contains xtd::drawing::font class.
Contains xtd::drawing::drawing_2d::graphics_path class.
Contains xtd::drawing::drawing_2d::graphics_state class.
Contains xtd::drawing::graphics_unit enum class.
#define drawing_export_
Define shared library export.
Definition drawing_export.h:13
string_trimming
Specifies how to trim characters from a string that does not completely fit into a layout shape.
Definition string_trimming.h:17
int_least32_t int32
Represents a 32-bit signed integer.
Definition types.h:131
intmax_t intptr
Represent a pointer or a handle.
Definition types.h:153
@ control
The left or right CTRL modifier key.
graphics_unit
Specifies the unit of measure for the given data. This enumeration has a flags attribute that allows ...
Definition graphics_unit.h:17
copy_pixel_operation
Determines how the source color in a copy pixel operation is combined with the destination color to r...
Definition copy_pixel_operation.h:18
Contains xtd::drawing::drawing_2d::interpolation_mode enum class.
Contains xtd::drawing::drawing_2d::matrix class.
Contains xtd::drawing::drawing_2d::matrix_order enum class.
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::drawing::pen class.
Contains xtd::drawing::drawing_2d::pixel_offset_mode enum class.
Contains xtd::drawing::point class.
Contains xtd::drawing::point_f class.
Contains xtd::drawing::rectangle class.
Contains xtd::drawing::rectangle_f class.
Contains xtd::drawing::region class.
Contains xtd::drawing::size_f class.
Contains xtd::drawing::drawing_2d::smoothing_mode enum class.
Contains xtd::drawing::solid_brush class.
Contains xtd::drawing::string_format class.
Contains xtd::drawing::text::text_rendering_hint enum class.
Contains xtd::drawing::size class.