#include "kernel.h"
#include <stdio.h>
#include <stdarg.h>
Functions | |
void | PointAssign (TPoint *p, l_int x, l_int y) |
Assign a point with the specified x and y coordinates. | |
l_bool | PointInRect (TPoint p, TRect r) |
Calculates wherever a point is located in the specified rectangle. | |
void | RectAssign (TRect *r, l_int ax, l_int ay, l_int bx, l_int by) |
Assigns the specified coordinates to a rectangle structure. | |
void | RectMove (TRect *d, TRect r, TPoint p) |
Moves a rectangle using a point to define x and y move. | |
void | RectUnMove (TRect *d, TRect r, TPoint p) |
Moves a rectangle back from a prevoius call of RectMove. | |
l_int | GetXDelta (TRect r) |
Calculates the position of the x coordinate of the rectangle. | |
l_int | GetYDelta (TRect r) |
Calculates the position of the y coordinate of the rectangle. | |
l_int | GetWidth (TRect r) |
Calculates the width of the rectangle. | |
l_int | GetHeight (TRect r) |
Calculates the height of the rectangle. | |
l_bool | RectOverlay (TRect r, TRect d) |
Dertermines if rects r and d has a common part. | |
void | RectIntersept (TRect *i, TRect r, TRect d) |
Calculate the common part of r and d ans assign it into i. |