105 auto
add_arc(
float x,
float y,
float width,
float height,
float start_angle,
float sweep_angle) ->
void;
146 auto
add_bezier(
float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4) ->
void;
231 auto
add_ellipse(
float x,
float y,
float width,
float height) ->
void;
256 auto
add_line(
float x1,
float y1,
float x2,
float y2) ->
void;
301 auto
add_pie(
float x,
float y,
float width,
float height,
float start_angle,
float sweep_angle) ->
void;
399 bool equals(const
object& obj) const noexcept override;
434 [[nodiscard]] auto
is_vsible(
float x,
float y) const ->
bool;
451 auto recreate_handle() ->
void;
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics_path.hpp:33
auto close_figure() -> void
Closes the current figure and starts a new figure. If the current figure contains a sequence of conne...
auto add_lines(const xtd::array< xtd::drawing::point > &points) -> void
Appends a series of connected line segments to the end of this xtd::drawing::drawing_2d::graphics_pat...
auto get_bounds() const -> xtd::drawing::rectangle_f
Returns a rectangle that bounds this xtd::drawing::drawing_2d::graphics_path.
auto add_string(const xtd::string &s, const xtd::drawing::font_family &family, xtd::drawing::font_style style, float em_size, const xtd::drawing::point &origin, const xtd::drawing::string_format &format) -> void
Adds a text string to this path.
auto reverse() -> void
Reverses the order of points in the xtd::drawing::drawing_2d::graphics_path::path_points array of thi...
auto add_curve(const xtd::array< xtd::drawing::point > &points) -> void
Adds a spline curve to the current figure.
auto add_rounded_rectangle(const xtd::drawing::rectangle &rect, float radius) -> void
Adds a rounded rectangle to this path.
auto start_figure() -> void
Starts a new figure without closing the current figure. All subsequent points added to the path are a...
auto fill_mode() const noexcept -> xtd::drawing::drawing_2d::fill_mode
Gets a xtd::drawing::drawing_2d::fill_mode enumeration that determines how the interiors of shapes in...
auto flatten() -> void
Converts each curve in this path into a sequence of connected line segments.
graphics_path()
Initializes a new instance of the xtd::drawing::drawing_2d::graphics_path class with a xtd::drawing::...
auto is_vsible(const xtd::drawing::point &point) const -> bool
Indicates whether the specified point is contained within this xtd::drawing::drawing_2d::graphics_pat...
auto add_beziers(const xtd::array< xtd::drawing::point > &points) -> void
Adds a sequence of connected cubic Bézier curves to the current figure.
auto add_pie(const xtd::drawing::rectangle &rect, float start_angle, float sweep_angle) -> void
Adds the outline of a pie shape to this path.
auto add_closed_curve(const xtd::array< xtd::drawing::point > &points) -> void
Adds a closed curve to this path. A cardinal spline curve is used because the curve travels through e...
auto add_arc(const xtd::drawing::rectangle &rect, float start_angle, float sweep_angle) -> void
Appends an elliptical arc to the current figure.
auto handle() const noexcept -> xtd::intptr
Gets the handle of the graphics path.
auto add_line(const xtd::drawing::point &pt1, const xtd::drawing::point &pt2) -> void
Appends a line segment to this xtd::drawing::drawing_2d::graphics_path.
graphics_path(xtd::drawing::drawing_2d::fill_mode mode)
Initializes a new instance of the xtd::drawing::drawing_2d::graphics_path class with the specified xt...
bool equals(const object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
auto reset() -> void
Empties the xtd::drawing::drawing_2d::graphics_path::path_points and xtd::drawing::drawing_2d::graphi...
auto add_ellipse(const xtd::drawing::rectangle &rect) -> void
Adds an ellipse to the current path.
auto add_polygon(const xtd::array< xtd::drawing::point > &points) -> void
Adds a polygon to this path.
auto add_path(const graphics_path &adding_path, bool connect) -> void
Appends the specified xtd::drawing::drawing_2d::graphics_path to this path.
auto add_rectangles(const xtd::array< xtd::drawing::rectangle > &rects) -> void
Adds a series of rectangles to this path.
auto get_lat_point() const -> xtd::drawing::point_f
Gets the last point of this xtd::drawing::drawing_2d::graphics_path.
auto close_all_figures() -> void
Closes all open figures in this path and starts a new figure. It closes each open figure by connectin...
auto add_bezier(const xtd::drawing::point &pt1, const xtd::drawing::point &pt2, const xtd::drawing::point &pt3, const xtd::drawing::point &pt4) -> void
Adds a cubic Bézier curve to the current figure.
auto add_rectangle(const xtd::drawing::rectangle &rect) -> void
Adds a rectangle to this path.
auto to_string() const noexcept -> xtd::string override
Returns a xtd::string that represents the current object.
Defines a group of type faces having a similar basic design and certain variations in styles....
Definition font_family.hpp:33
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
Contains drawing_export_ keyword.
Contains xtd::drawing::drawing_2d::fill_mode enum class.
Contains xtd::drawing::font_family class.
Contains xtd::drawing::font_style enum class.
font_style
Specifies style information applied to text. This enumeration has a flags attribute that allows a bit...
Definition font_style.hpp:17
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
std::intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
fill_mode
Specifies how the interior of a closed path is filled.
Definition fill_mode.hpp:23
The xtd::drawing::drawing_2d namespace provides advanced two-dimensional and vector graphics function...
Definition compositing_mode.hpp:12
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 auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197
Contains xtd::drawing::rectangle struct.
Contains xtd::drawing::rectangle_f struct.
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimen...
Definition point_f.hpp:35
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.hpp:54
Stores a set of four floating-point numbers that represent the location and size of a rectangle....
Definition rectangle_f.hpp:34
Stores a set of four integers that represent the location and size of a rectangle.
Definition rectangle.hpp:44