1 #ifndef MYPAINTRECTANGLE_H
2 #define MYPAINTRECTANGLE_H
#define G_END_DECLS
Definition: mypaint-glib-compat.h:14
#define G_BEGIN_DECLS
Definition: mypaint-glib-compat.h:13
Representation of a rectangle, integer values: (x, y, w, h)
Definition: mypaint-rectangle.h:33
int width
The width of the rectangle.
Definition: mypaint-rectangle.h:39
int y
The x-coordinate of the rectangle's top-left corner.
Definition: mypaint-rectangle.h:37
int height
The height of the rectangle.
Definition: mypaint-rectangle.h:41
int x
The x-coordinate of the rectangle's top-left corner.
Definition: mypaint-rectangle.h:35
void mypaint_rectangle_expand_to_include_point(MyPaintRectangle *r, int x, int y)
Minimally expand a rectangle so that it contains a given point (x, y).
MyPaintRectangle * mypaint_rectangle_copy(MyPaintRectangle *r)
Create a copy of the given rectangle.
void mypaint_rectangle_expand_to_include_rect(MyPaintRectangle *r, MyPaintRectangle *other)
Minimally expand a rectangle so that it fully contains another.
Holds the size and location of a MyPaintRectangle array.
Definition: mypaint-rectangle.h:51
int num_rectangles
The number of rectangles.
Definition: mypaint-rectangle.h:58
MyPaintRectangle * rectangles
Pointer to a single, or an array of, MyPaintRectangles.
Definition: mypaint-rectangle.h:65