#include <ugeom.hpp>
Inheritance diagram for ubit::URegion:

Public Member Functions | |
| URegion (int _x, int _y, int _w, int _h) | |
| void | set (const URegion &r) |
| void | set (int _x, int _y, int _w, int _h) |
| bool | inter (const URegion &rect2) |
| bool | inter (int x, int y, int w, int h) |
| returns the intersection with the rectangle that is given as an argument. | |
| void | closure (const URegion &rect2) |
| void | closure (int x, int y, int w, int h) |
| returns the union with the rectangle that is given as an argument. | |
Public Attributes | |
| int | x |
| int | y |
| int | width |
| int | height |
| void ubit::URegion::closure | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) |
returns the union with the rectangle that is given as an argument.
this function modifies this but leaves rect2 unchanged. Note: empty regions are not taken into account.
| bool ubit::URegion::inter | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) |
returns the intersection with the rectangle that is given as an argument.
this function modifies this but leaves rect2 unchanged. renvoie:
1.4.7