Let the user choose between elliptical, square, and diamond shaped brushes

1999-02-02  Owen Taylor  <otaylor@gtk.org>

	* app/blob.[ch] app/ink.c: Let the user choose between
	elliptical, square, and diamond shaped brushes for
	the ink tool.
This commit is contained in:
Owen Taylor
1999-02-03 04:29:08 +00:00
committed by Owen Taylor
parent 672cfafb02
commit 02b111b8ce
13 changed files with 1250 additions and 128 deletions

View File

@ -25,9 +25,15 @@
#ifndef __BLOB_H__
#define __BLOB_H__
typedef struct _BlobPoint BlobPoint;
typedef struct _BlobSpan BlobSpan;
typedef struct _Blob Blob;
struct _BlobPoint {
int x;
int y;
};
struct _BlobSpan {
int left;
int right;
@ -41,6 +47,9 @@ struct _Blob {
Blob *blob_convex_union (Blob *b1, Blob *b2);
Blob *blob_polygon (BlobPoint *points, int npoints);
Blob *blob_square (double xc, double yc, double xp, double yp, double xq, double yq);
Blob *blob_diamond (double xc, double yc, double xp, double yp, double xq, double yq);
Blob *blob_ellipse (double xc, double yc, double xp, double yp, double xq, double yq);
void blob_bounds(Blob *b, int *x, int *y, int *width, int *height);