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);
Wrapper for ArtPoint struct.
Definition: point.h:40
Definition: path-def.h:46
GnomeCanvasPathDef * gobj()
Provides access to the underlying C instance.
Glib::RefPtr< Gnome::Canvas::PathDef > wrap(GnomeCanvasPathDef *object, bool take_copy=false)
A Glib::wrap() method for this object.
static Glib::RefPtr< PathDef > create(ArtBpath &bpath)
This function constructs a new #gnome_canvas_path_def and uses the passed bpath as the contents.
bool is_empty() const
This function is a boolean test to see if the path is empty, meaning containing no line segments.
bool any_closed() const
This function returns a boolean valid indicating if the path has any closed segements.
Gnome::Art::Point currentpoint() const
void reset()
This function clears the contents of the passed path.
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...
const GnomeCanvasPathDef * gobj() const
Provides access to the underlying C instance.
static Glib::RefPtr< PathDef > create(int length)
This funtion creates a new #gnome_canvas_path_def with length number of points allocated.
void finish()
Trims dynamic point array to exact length of path.
static Glib::RefPtr< PathDef > create()
ArtBpath * last_bpath() const
This function returns pointer to the last ArtBpath segment in the path definition.
bool any_open() const
This function returns a boolean value indicating if the path has any open segments.
int length() const
This function returns the length of the path definition.
Glib::RefPtr< PathDef > open_parts()
This function creates a new GnomeCanvasPathDef that contains all of the open segments on the passed p...
ArtBpath * first_bpath() const
This function returns the first ArtBpath point in the definition.
Glib::RefPtr< PathDef > close_all()
This function closes all of the open segments in the passed path and returns a new GnomeCanvasPathDef...
void moveto(double x, double y)
This function adds starts new subpath on path, and sets its starting point to x and y.
bool has_currentpoint() const
This function is a boolean test checking to see if the path has a current point defined.
Glib::RefPtr< PathDef > closed_parts()
This function returns a new GnomeCanvasPathDef that contains the all of close parts of passed path.
void ensure_space(int space)
This function ensures that enough space for space points is allocated at the end of the path.
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.
bool all_open() const
This function returns a boolean value indicating if the path only contains open segments.
GnomeCanvasPathDef * gobj_copy() const
Provides access to the underlying C instance. The caller is responsible for unrefing it....
void lineto(double x, double y)
This function add a line segment to the passed path with the specified x and y coordinates.
void closepath_current()
This function closes the last subpath by setting the coordinates of the endpoint of the last segment ...
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.
void closepath()
This function closes the last subpath of path, adding a ART_LINETO to subpath starting point,...
Definition: affinetrans.h:30