Go to the documentation of this file.
3 #ifndef _LIBGNOMECANVASMM_PATH_DEF_H
4 #define _LIBGNOMECANVASMM_PATH_DEF_H
32 #include <glibmm/containers.h>
33 #include <libgnomecanvas/gnome-canvas-path-def.h>
34 #include <libart_lgpl/art_bpath.h>
35 #include <libart_lgpl/art_point.h>
36 #include <libart_lgpl/art_bpath.h>
48 #ifndef DOXYGEN_SHOULD_SKIP_THIS
50 typedef GnomeCanvasPathDef BaseObjectType;
53 static Glib::RefPtr<PathDef>
create();
60 GnomeCanvasPathDef*
gobj();
63 const GnomeCanvasPathDef*
gobj()
const;
71 void operator delete(
void*, size_t);
103 static Glib::RefPtr<PathDef>
create(ArtBpath& bpath);
183 void curveto(
double x1,
double y1,
double x2,
double y2,
double x3,
double y3);
283 Glib::RefPtr<Gnome::Canvas::PathDef>
wrap(GnomeCanvasPathDef*
object,
bool take_copy =
false);
bool is_empty() const
This function is a boolean test to see if the path is empty, meaning containing no line segments.
bool has_currentpoint() const
This function is a boolean test checking to see if the path has a current point defined.
void ensure_space(int space)
This function ensures that enough space for space points is allocated at the end of the path.
static Glib::RefPtr< PathDef > create(ArtBpath &bpath)
This function constructs a new #gnome_canvas_path_def and uses the passed bpath as the contents.
void finish()
Trims dynamic point array to exact length of path.
Glib::RefPtr< PathDef > close_all()
This function closes all of the open segments in the passed path and returns a new GnomeCanvasPathDef...
Definition: affinetrans.h:30
ArtBpath * last_bpath() const
This function returns pointer to the last ArtBpath segment in the path definition.
const GnomeCanvasPathDef * gobj() const
Provides access to the underlying C instance.
void closepath_current()
This function closes the last subpath by setting the coordinates of the endpoint of the last segment ...
static Glib::RefPtr< PathDef > create()
void moveto(double x, double y)
This function adds starts new subpath on path, and sets its starting point to x and y.
static Glib::RefPtr< PathDef > create(int length)
This funtion creates a new #gnome_canvas_path_def with length number of points allocated.
bool any_closed() const
This function returns a boolean valid indicating if the path has any closed segements.
void curveto(double x1, double y1, double x2, double y2, double x3, double y3)
This function adds a bezier curve segment to the path definition.
Definition: path-def.h:46
GnomeCanvasPathDef * gobj()
Provides access to the underlying C instance.
bool any_open() const
This function returns a boolean value indicating if the path has any open segments.
Wrapper for ArtPoint struct.
Definition: point.h:40
int length() const
This function returns the length of the path definition.
void lineto(double x, double y)
This function add a line segment to the passed path with the specified x and y coordinates.
Glib::RefPtr< PathDef > closed_parts()
This function returns a new GnomeCanvasPathDef that contains the all of close parts of passed path.
bool all_open() const
This function returns a boolean value indicating if the path only contains open segments.
void lineto_moving(double x, double y)
This functions adds a new line segment with loose endpoint to the path, or if endpoint is already loo...
Glib::RefPtr< Gnome::Canvas::PathDef > wrap(GnomeCanvasPathDef *object, bool take_copy=false)
A Glib::wrap() method for this object.
GnomeCanvasPathDef * gobj_copy() const
Provides access to the underlying C instance. The caller is responsible for unrefing it....
void reset()
This function clears the contents of the passed path.
Glib::RefPtr< PathDef > open_parts()
This function creates a new GnomeCanvasPathDef that contains all of the open segments on the passed p...
Gnome::Art::Point currentpoint() const
ArtBpath * get_bpath() const
This function returns a ArtBpath that consists of the path definition.
bool all_closed() const
This function returns a boolean value indicating if the path only contains closed segments.
ArtBpath * first_bpath() const
This function returns the first ArtBpath point in the definition.
void closepath()
This function closes the last subpath of path, adding a ART_LINETO to subpath starting point,...