xtd 0.2.0
Loading...
Searching...
No Matches
xtd::drawing::drawing_2d::graphics_path Class Referencefinal
Inheritance diagram for xtd::drawing::drawing_2d::graphics_path:
xtd::object xtd::iequatable< graphics_path >

Definition

Defines an object used to draw lines and curves. This class cannot be inherited.

class drawing_export_ graphics_path final : public object
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics_path.h:35
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
#define drawing_export_
Define shared library export.
Definition drawing_export.h:13
Inheritance
xtd::objectxtd::drawing::drawing_2d::graphics_path
Namespace
xtd::drawing::drawing_2d
Library
xtd.drawing
Examples
circular_form.cpp.

Public Constructors

 graphics_path ()
 Initializes a new instance of the xtd::drawing::drawing_2d::graphics_path class with a xtd::drawing::drawing_2d::graphics_path::fill_mode value of xtd::drawing::drawing_2d::fill_mode::alternate.
 
 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 xtd::drawing::drawing_2d::fil_mode enumeration.
 

Public Properties

intptr handle () const noexcept
 Gets the handle of the graphics path.
 
xtd::drawing::drawing_2d::fill_mode fill_mode () const noexcept
 Gets a xtd::drawing::drawing_2d::fill_mode enumeration that determines how the interiors of shapes in this xtd::drawing::drawing_2d::graphics_path are filled.
 
graphics_pathfill_mode (xtd::drawing::drawing_2d::fill_mode value) noexcept
 Sets a xtd::drawing::drawing_2d::fill_mode enumeration that determines how the interiors of shapes in this xtd::drawing::drawing_2d::graphics_path are filled.
 

Public Methods

void add_arc (const xtd::drawing::rectangle &rect, float start_angle, float sweep_angle)
 Appends an elliptical arc to the current figure.
 
void add_arc (const xtd::drawing::rectangle_f &rect, float start_angle, float sweep_angle)
 Appends an elliptical arc to the current figure.
 
void add_arc (int32 x, int32 y, int32 width, int32 height, float start_angle, float sweep_angle)
 Appends an elliptical arc to the current figure.
 
void add_arc (float x, float y, float width, float height, float start_angle, float sweep_angle)
 Appends an elliptical arc to the current figure.
 
void add_bezier (const xtd::drawing::point &pt1, const xtd::drawing::point &pt2, const xtd::drawing::point &pt3, const xtd::drawing::point &pt4)
 Adds a cubic Bézier curve to the current figure.
 
void add_bezier (const xtd::drawing::point_f &pt1, const xtd::drawing::point_f &pt2, const xtd::drawing::point_f &pt3, const xtd::drawing::point_f &pt4)
 Adds a cubic Bézier curve to the current figure.
 
void add_bezier (int32 x1, int32 y1, int32 x2, int32 y2, int32 x3, int32 y3, int32 x4, int32 y4)
 Adds a cubic Bézier curve to the current figure.
 
void add_bezier (float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
 Adds a cubic Bézier curve to the current figure.
 
void add_beziers (const std::vector< xtd::drawing::point > &points)
 Adds a sequence of connected cubic Bézier curves to the current figure.
 
void add_beziers (const std::vector< xtd::drawing::point_f > &points)
 Adds a sequence of connected cubic Bézier curves to the current figure.
 
void add_closed_curve (const std::vector< xtd::drawing::point > &points)
 Adds a closed curve to this path. A cardinal spline curve is used because the curve travels through each of the points in the array.
 
void add_closed_curve (const std::vector< xtd::drawing::point_f > &points)
 Adds a closed curve to this path. A cardinal spline curve is used because the curve travels through each of the points in the array.
 
void add_closed_curve (const std::vector< xtd::drawing::point > &points, float tension)
 Adds a closed curve to this path. A cardinal spline curve is used because the curve travels through each of the points in the array.
 
void add_closed_curve (const std::vector< xtd::drawing::point_f > &points, float tension)
 Adds a closed curve to this path. A cardinal spline curve is used because the curve travels through each of the points in the array.
 
void add_curve (const std::vector< xtd::drawing::point > &points)
 Adds a spline curve to the current figure.
 
void add_curve (const std::vector< xtd::drawing::point_f > &points)
 Adds a spline curve to the current figure.
 
void add_curve (const std::vector< xtd::drawing::point > &points, float tension)
 Adds a spline curve to the current figure.
 
void add_curve (const std::vector< xtd::drawing::point_f > &points, float tension)
 Adds a spline curve to the current figure.
 
void add_curve (const std::vector< xtd::drawing::point > &points, size_t offset, size_t number_of_segments, float tension)
 Adds a spline curve to the current figure.
 
void add_curve (const std::vector< xtd::drawing::point_f > &points, size_t offset, size_t number_of_segments, float tension)
 Adds a spline curve to the current figure.
 
void add_ellipse (const xtd::drawing::rectangle &rect)
 Adds an ellipse to the current path.
 
void add_ellipse (const xtd::drawing::rectangle_f &rect)
 Adds an ellipse to the current path.
 
void add_ellipse (int32 x, int32 y, int32 width, int32 height)
 Adds an ellipse to the current path.
 
void add_ellipse (float x, float y, float width, float height)
 Adds an ellipse to the current path.
 
void add_line (const xtd::drawing::point &pt1, const xtd::drawing::point &pt2)
 Appends a line segment to this xtd::drawing::drawing_2d::graphics_path.
 
void add_line (const xtd::drawing::point_f &pt1, const xtd::drawing::point_f &pt2)
 Appends a line segment to this xtd::drawing::drawing_2d::graphics_path.
 
void add_line (int32 x1, int32 y1, int32 x2, int32 y2)
 Appends a line segment to this xtd::drawing::drawing_2d::graphics_path.
 
void add_line (float x1, float y1, float x2, float y2)
 Appends a line segment to this xtd::drawing::drawing_2d::graphics_path.
 
void add_lines (const std::vector< xtd::drawing::point > &points)
 Appends a series of connected line segments to the end of this xtd::drawing::drawing_2d::graphics_path.
 
void add_lines (const std::vector< xtd::drawing::point_f > &points)
 Appends a series of connected line segments to the end of this xtd::drawing::drawing_2d::graphics_path.
 
void add_path (const graphics_path &adding_path, bool connect)
 Appends the specified xtd::drawing::drawing_2d::graphics_path to this path.
 
void add_pie (const xtd::drawing::rectangle &rect, float start_angle, float sweep_angle)
 Adds the outline of a pie shape to this path.
 
void add_pie (const xtd::drawing::rectangle_f &rect, float start_angle, float sweep_angle)
 Adds the outline of a pie shape to this path.
 
void add_pie (int32 x, int32 y, int32 width, int32 height, float start_angle, float sweep_angle)
 Adds the outline of a pie shape to this path.
 
void add_pie (float x, float y, float width, float height, float start_angle, float sweep_angle)
 Adds the outline of a pie shape to this path.
 
void add_polygon (const std::vector< xtd::drawing::point > &points)
 Adds a polygon to this path.
 
void add_polygon (const std::vector< xtd::drawing::point_f > &points)
 Adds a polygon to this path.
 
void add_rectangle (const xtd::drawing::rectangle &rect)
 Adds a rectangle to this path.
 
void add_rectangle (const xtd::drawing::rectangle_f &rect)
 Adds a rectangle to this path.
 
void add_rectangle (int32 x, int32 y, int32 width, int32 height)
 Adds a rectangle to this path.
 
void add_rectangle (float x, float y, float width, float height)
 Adds a rectangle to this path.
 
void add_rectangles (const std::vector< xtd::drawing::rectangle > &rects)
 Adds a series of rectangles to this path.
 
void add_rectangles (const std::vector< xtd::drawing::rectangle_f > &rects)
 Adds a series of rectangles to this path.
 
void add_rounded_rectangle (const xtd::drawing::rectangle &rect, float radius)
 Adds a rounded rectangle to this path.
 
void add_rounded_rectangle (const xtd::drawing::rectangle_f &rect, float radius)
 Adds a rounded rectangle to this path.
 
void add_rounded_rectangle (int32 x, int32 y, int32 width, int32 height, float radius)
 Adds a rounded rectangle to this path.
 
void add_rounded_rectangle (float x, float y, float width, float height, float radius)
 Adds a rounded rectangle to this path.
 
void 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)
 Adds a text string to this path.
 
void add_string (const xtd::string &s, const xtd::drawing::font_family &family, xtd::drawing::font_style style, float em_size, const xtd::drawing::point_f &origin, const xtd::drawing::string_format &format)
 Adds a text string to this path.
 
void add_string (const xtd::string &s, const xtd::drawing::font_family &family, xtd::drawing::font_style style, float em_size, const xtd::drawing::rectangle &layout_rect, const xtd::drawing::string_format &format)
 Adds a text string to this path.
 
void add_string (const xtd::string &s, const xtd::drawing::font_family &family, xtd::drawing::font_style style, float em_size, const xtd::drawing::rectangle_f &layout_rect, const xtd::drawing::string_format &format)
 Adds a text string to this path.
 
void close_all_figures ()
 Closes all open figures in this path and starts a new figure. It closes each open figure by connecting a line from its endpoint to its starting point.
 
void close_figure ()
 Closes the current figure and starts a new figure. If the current figure contains a sequence of connected lines and curves, the method closes the loop by connecting a line from the endpoint to the starting point.
 
bool equals (const xtd::drawing::drawing_2d::graphics_path &value) const noexcept override
 
void flatten ()
 Converts each curve in this path into a sequence of connected line segments.
 
xtd::drawing::rectangle_f get_bounds () const
 Returns a rectangle that bounds this xtd::drawing::drawing_2d::graphics_path.
 
xtd::drawing::point_f get_lat_point () const
 Gets the last point of this xtd::drawing::drawing_2d::graphics_path.
 
bool is_vsible (const xtd::drawing::point &point) const
 Indicates whether the specified point is contained within this xtd::drawing::drawing_2d::graphics_path.
 
bool is_vsible (const xtd::drawing::point_f &point) const
 Indicates whether the specified point is contained within this xtd::drawing::drawing_2d::graphics_path.
 
bool is_vsible (int32 x, int32 y) const
 Indicates whether the specified point is contained within this xtd::drawing::drawing_2d::graphics_path.
 
bool is_vsible (float x, float y) const
 Indicates whether the specified point is contained within this xtd::drawing::drawing_2d::graphics_path.
 
void reset ()
 Empties the xtd::drawing::drawing_2d::graphics_path::path_points and xtd::drawing::drawing_2d::graphics_path::path_types arrays and sets the xtd::drawing::drawing_2d::graphics_path::fill_mode to xtd::drawing::drawing_2d::fill_mode::alternate.
 
void reverse ()
 Reverses the order of points in the xtd::drawing::drawing_2d::graphics_path::path_points array of this xtd::drawing::drawing_2d::graphics_path.
 
void start_figure ()
 Starts a new figure without closing the current figure. All subsequent points added to the path are added to this new figure.
 
xtd::string to_string () const noexcept override
 Returns a xtd::string that represents the current object.
 
virtual bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
 
template<typename object_a_t , typename object_b_t >
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 

Additional Inherited Members

- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type.
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance.
 
template<typename object_t >
xtd::uptr< object_t > memberwise_clone () const
 Creates a shallow copy of the current object.
 
- Static Public Member Functions inherited from xtd::object
template<typename object_a_t , typename object_b_t >
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
template<typename object_a_t , typename object_b_t >
static bool reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

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