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