GimpVectors

GimpVectors

Synopsis

                    GimpVectors;
GimpVectors *       gimp_vectors_new                    (GimpImage *image,
                                                         const gchar *name);
GimpVectors *       gimp_vectors_get_parent             (GimpVectors *vectors);
void                gimp_vectors_freeze                 (GimpVectors *vectors);
void                gimp_vectors_thaw                   (GimpVectors *vectors);
void                gimp_vectors_copy_strokes           (const GimpVectors *src_vectors,
                                                         GimpVectors *dest_vectors);
void                gimp_vectors_add_strokes            (const GimpVectors *src_vectors,
                                                         GimpVectors *dest_vectors);
GimpAnchor *        gimp_vectors_anchor_get             (const GimpVectors *vectors,
                                                         const GimpCoords *coord,
                                                         GimpStroke **ret_stroke);
GimpAnchor *        gimp_vectors_anchor_get_next        (const GimpVectors *vectors,
                                                         const GimpAnchor *prev);
void                gimp_vectors_anchor_move_relative   (GimpVectors *vectors,
                                                         GimpAnchor *anchor,
                                                         const GimpCoords *deltacoord,
                                                         gint type);
void                gimp_vectors_anchor_move_absolute   (GimpVectors *vectors,
                                                         GimpAnchor *anchor,
                                                         const GimpCoords *coord,
                                                         gint type);
void                gimp_vectors_anchor_delete          (GimpVectors *vectors,
                                                         GimpAnchor *anchor);
void                gimp_vectors_anchor_select          (GimpVectors *vectors,
                                                         GimpStroke *target_stroke,
                                                         GimpAnchor *anchor,
                                                         gboolean selected,
                                                         gboolean exclusive);
void                gimp_vectors_stroke_add             (GimpVectors *vectors,
                                                         GimpStroke *stroke);
void                gimp_vectors_stroke_remove          (GimpVectors *vectors,
                                                         GimpStroke *stroke);
GimpStroke *        gimp_vectors_stroke_get             (const GimpVectors *vectors,
                                                         const GimpCoords *coord);
GimpStroke *        gimp_vectors_stroke_get_next        (const GimpVectors *vectors,
                                                         const GimpStroke *prev);
gdouble             gimp_vectors_stroke_get_length      (const GimpVectors *vectors,
                                                         const GimpStroke *stroke);
GimpStroke *        gimp_vectors_stroke_get_by_ID       (const GimpVectors *vectors,
                                                         gint id);
gdouble             gimp_vectors_get_length             (const GimpVectors *vectors,
                                                         const GimpAnchor *start);
gdouble             gimp_vectors_get_distance           (const GimpVectors *vectors,
                                                         const GimpCoords *coord);
gint                gimp_vectors_get_n_strokes          (const GimpVectors *vectors);
gint                gimp_vectors_interpolate            (const GimpVectors *vectors,
                                                         const GimpStroke *stroke,
                                                         gdouble precision,
                                                         gint max_points,
                                                         GimpCoords *ret_coords);
gboolean            gimp_vectors_bounds                 (GimpVectors *vectors,
                                                         gdouble *x1,
                                                         gdouble *y1,
                                                         gdouble *x2,
                                                         gdouble *y2);
const GimpBezierDesc * gimp_vectors_get_bezier          (GimpVectors *vectors);

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpViewable
               +----GimpItem
                     +----GimpVectors

Implemented Interfaces

GimpVectors implements GimpConfigInterface.

Signals

  "freeze"                                         : Run Last
  "thaw"                                           : Run First

Description

Details

GimpVectors

typedef struct _GimpVectors GimpVectors;


gimp_vectors_new ()

GimpVectors *       gimp_vectors_new                    (GimpImage *image,
                                                         const gchar *name);


gimp_vectors_get_parent ()

GimpVectors *       gimp_vectors_get_parent             (GimpVectors *vectors);


gimp_vectors_freeze ()

void                gimp_vectors_freeze                 (GimpVectors *vectors);


gimp_vectors_thaw ()

void                gimp_vectors_thaw                   (GimpVectors *vectors);


gimp_vectors_copy_strokes ()

void                gimp_vectors_copy_strokes           (const GimpVectors *src_vectors,
                                                         GimpVectors *dest_vectors);


gimp_vectors_add_strokes ()

void                gimp_vectors_add_strokes            (const GimpVectors *src_vectors,
                                                         GimpVectors *dest_vectors);


gimp_vectors_anchor_get ()

GimpAnchor *        gimp_vectors_anchor_get             (const GimpVectors *vectors,
                                                         const GimpCoords *coord,
                                                         GimpStroke **ret_stroke);


gimp_vectors_anchor_get_next ()

GimpAnchor *        gimp_vectors_anchor_get_next        (const GimpVectors *vectors,
                                                         const GimpAnchor *prev);


gimp_vectors_anchor_move_relative ()

void                gimp_vectors_anchor_move_relative   (GimpVectors *vectors,
                                                         GimpAnchor *anchor,
                                                         const GimpCoords *deltacoord,
                                                         gint type);


gimp_vectors_anchor_move_absolute ()

void                gimp_vectors_anchor_move_absolute   (GimpVectors *vectors,
                                                         GimpAnchor *anchor,
                                                         const GimpCoords *coord,
                                                         gint type);


gimp_vectors_anchor_delete ()

void                gimp_vectors_anchor_delete          (GimpVectors *vectors,
                                                         GimpAnchor *anchor);


gimp_vectors_anchor_select ()

void                gimp_vectors_anchor_select          (GimpVectors *vectors,
                                                         GimpStroke *target_stroke,
                                                         GimpAnchor *anchor,
                                                         gboolean selected,
                                                         gboolean exclusive);


gimp_vectors_stroke_add ()

void                gimp_vectors_stroke_add             (GimpVectors *vectors,
                                                         GimpStroke *stroke);


gimp_vectors_stroke_remove ()

void                gimp_vectors_stroke_remove          (GimpVectors *vectors,
                                                         GimpStroke *stroke);


gimp_vectors_stroke_get ()

GimpStroke *        gimp_vectors_stroke_get             (const GimpVectors *vectors,
                                                         const GimpCoords *coord);


gimp_vectors_stroke_get_next ()

GimpStroke *        gimp_vectors_stroke_get_next        (const GimpVectors *vectors,
                                                         const GimpStroke *prev);


gimp_vectors_stroke_get_length ()

gdouble             gimp_vectors_stroke_get_length      (const GimpVectors *vectors,
                                                         const GimpStroke *stroke);


gimp_vectors_stroke_get_by_ID ()

GimpStroke *        gimp_vectors_stroke_get_by_ID       (const GimpVectors *vectors,
                                                         gint id);


gimp_vectors_get_length ()

gdouble             gimp_vectors_get_length             (const GimpVectors *vectors,
                                                         const GimpAnchor *start);


gimp_vectors_get_distance ()

gdouble             gimp_vectors_get_distance           (const GimpVectors *vectors,
                                                         const GimpCoords *coord);


gimp_vectors_get_n_strokes ()

gint                gimp_vectors_get_n_strokes          (const GimpVectors *vectors);


gimp_vectors_interpolate ()

gint                gimp_vectors_interpolate            (const GimpVectors *vectors,
                                                         const GimpStroke *stroke,
                                                         gdouble precision,
                                                         gint max_points,
                                                         GimpCoords *ret_coords);


gimp_vectors_bounds ()

gboolean            gimp_vectors_bounds                 (GimpVectors *vectors,
                                                         gdouble *x1,
                                                         gdouble *y1,
                                                         gdouble *x2,
                                                         gdouble *y2);


gimp_vectors_get_bezier ()

const GimpBezierDesc * gimp_vectors_get_bezier          (GimpVectors *vectors);

Signal Details

The "freeze" signal

void                user_function                      (GimpVectors *gimpvectors,
                                                        gpointer     user_data)        : Run Last

gimpvectors :

the object which received the signal.

user_data :

user data set when the signal handler was connected.

The "thaw" signal

void                user_function                      (GimpVectors *gimpvectors,
                                                        gpointer     user_data)        : Run First

gimpvectors :

the object which received the signal.

user_data :

user data set when the signal handler was connected.