UT/UT_Rect.h File Reference
#include <math.h>
#include <SYS/SYS_Types.h>
#include <iostream.h>
#include "UT_Algorithm.h"
Go to the source code of this file.
Define Documentation
| #define UT_RECT_COPY_TO_DIM |
( |
T1, |
|
|
T2 |
|
) |
|
Value:
inline T1::T1( const T2 &r ) \
: UT_BaseRectImpl( r.x(), r.y(), r.width(), r.height() ) { } \
inline T1 & T1::operator=(const T2 &r) \
{ set( r.x(), r.y(), r.width(), r.height() ); return *this; }
Definition at line 476 of file UT_Rect.h.
| #define UT_RECT_COPY_TO_EXCLUSIVE |
( |
T1, |
|
|
T2 |
|
) |
|
Value:
inline T1::T1( const T2 &r ) \
: UT_BaseRectImpl( r.x1(), r.y1(), r.x2e(), r.y2e() ) { } \
inline T1 & T1::operator=(const T2 &r) \
{ set( r.x1(), r.y1(), r.x2e(), r.y2e() ); return *this; }
Definition at line 486 of file UT_Rect.h.
| #define UT_RECT_COPY_TO_INCLUSIVE |
( |
T1, |
|
|
T2 |
|
) |
|
Value:
inline T1::T1( const T2 &r ) \
: UT_BaseRectImpl( r.x1(), r.y1(), r.x2(), r.y2() ) { } \
inline T1 & T1::operator=(const T2 &r) \
{ set( r.x1(), r.y1(), r.x2(), r.y2() ); return *this; }
Definition at line 481 of file UT_Rect.h.
| #define UT_RECT_OP_EQUALS |
( |
T1, |
|
|
T2 |
|
) |
|
Value:
inline bool operator==( const T1 &r1, const T2 &r2 ) \
{ return (r1.x() == r2.x() && r1.y() == r2.y() \
&& r1.width() == r2.width() \
&& r1.height() == r2.height()); }
Definition at line 444 of file UT_Rect.h.
| #define UT_RECT_OP_NOT_EQUALS |
( |
T1, |
|
|
T2 |
|
) |
|
Value:
inline bool operator!=( const T1 &r1, const T2 &r2 ) \
{ return !(r1 == r2); }
Definition at line 461 of file UT_Rect.h.
Typedef Documentation
Function Documentation
| ostream & operator<< |
( |
ostream & |
os, |
|
|
const UT_DimRect & |
r | |
|
) |
| | [inline] |
| int UTinclusiveFlip |
( |
int |
v, |
|
|
int |
d | |
|
) |
| | [inline] |