5 #include "../../drawing_export.h" 6 #include "../font_family.h" 7 #include "../font_style.h" 8 #include "../rectangle.h" 9 #include "../rectangle_f.h" 10 #include "../string_format.h" 14 #include <xtd/ustring> 24 namespace drawing_2d {
60 intptr handle()
const noexcept;
107 void add_arc(
float x,
float y,
float width,
float height,
float start_angle,
float sweep_angle);
148 void add_bezier(
float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4);
154 void add_beziers(
const std::vector<xtd::drawing::point>& points);
159 void add_beziers(
const std::vector<xtd::drawing::point_f>& points);
164 void add_closed_curve(
const std::vector<xtd::drawing::point>& points);
168 void add_closed_curve(
const std::vector<xtd::drawing::point_f>& points);
173 void add_closed_curve(
const std::vector<xtd::drawing::point>& points,
float tension);
178 void add_closed_curve(
const std::vector<xtd::drawing::point_f>& points,
float tension);
184 void add_curve(
const std::vector<xtd::drawing::point>& points);
188 void add_curve(
const std::vector<xtd::drawing::point_f>& points);
193 void add_curve(
const std::vector<xtd::drawing::point>& points,
float tension);
198 void add_curve(
const std::vector<xtd::drawing::point_f>& points,
float tension);
206 void add_curve(
const std::vector<xtd::drawing::point>& points,
size_t offset,
size_t number_of_segments,
float tension);
214 void add_curve(
const std::vector<xtd::drawing::point_f>& points,
size_t offset,
size_t number_of_segments,
float tension);
233 void add_ellipse(
float x,
float y,
float width,
float height);
258 void add_line(
float x1,
float y1,
float x2,
float y2);
263 void add_lines(
const std::vector<xtd::drawing::point>& points);
267 void add_lines(
const std::vector<xtd::drawing::point_f>& points);
272 void add_path(
const graphics_path& adding_path,
bool connect);
294 void add_pie(
int32 x,
int32 y,
int32 width,
int32 height,
float start_angle,
float sweep_angle);
303 void add_pie(
float x,
float y,
float width,
float height,
float start_angle,
float sweep_angle);
308 void add_polygon(
const std::vector<xtd::drawing::point>& points);
312 void add_polygon(
const std::vector<xtd::drawing::point_f>& points);
331 void add_rectangle(
float x,
float y,
float width,
float height);
335 void add_rectangles(
const std::vector<xtd::drawing::rectangle>& rects);
338 void add_rectangles(
const std::vector<xtd::drawing::rectangle_f>& rects);
361 void add_rounded_rectangle(
float x,
float y,
float width,
float height,
float radius);
393 void close_all_figures();
429 bool is_vsible(
float x,
float y)
const;
446 void recreate_handle();
448 std::shared_ptr<data> data_;
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
Defines a group of type faces having a similar basic design and certain variations in styles...
Definition: font_family.h:38
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition: point.h:54
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Stores a set of four floating-point numbers that represent the location and size of a rectangle...
Definition: rectangle_f.h:34
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1063
fill_mode
Specifies how the interior of a closed path is filled.
Definition: fill_mode.h:24
Contains xtd::drawing::drawing_2d/::fill_mode enum class.
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimen...
Definition: point_f.h:35
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
Stores a set of four integers that represent the location and size of a rectangle.
Definition: rectangle.h:44
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
font_style
Specifies style information applied to text. This enumeration has a flags attribute that allows a bit...
Definition: font_style.h:17
Contains xtd::drawing::drawing_2d/::matrix class.
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition: graphics_path.h:36