OWLNext 7.0
Borland's Object Windows Library for the modern age
|
TPointL is similar to TPoint, but uses long rather than int variables. More...
#include <owl/geometry.h>
Public Member Functions | |
TPointL () | |
Default constructor that does nothing. | |
TPointL (long _x, long _y) | |
Constructs the point to a specific location. | |
TPointL (const POINTL &point) | |
Alias constructor that initializes from an existing point. | |
TPointL (const TPointL &point) | |
Copy constructor. Makes a copy of the location. | |
bool | operator== (const TPointL &other) const |
Returns true if positions are the same. | |
bool | operator!= (const TPointL &other) const |
Returns true if the positions are not the same. | |
long | X () const |
Returns the X component of the point. | |
long | Y () const |
Returns the Y component of the point. | |
TPointL | OffsetBy (long dx, long dy) const |
Returns the new point (x+dx, y+dy). | |
TPointL | operator+ (const TSize &size) const |
Returns the new point (x+cx, y+cy). | |
TPointL | operator- (const TPointL &point) const |
Returns the difference between the two points. | |
TPointL | operator- (const TSize &size) const |
Return the new point (x-cx, y-cy). | |
TPointL | operator- () const |
Returns the negative of the point. | |
TPointL & | Offset (long dx, long dy) |
Returns the point (x+dx, y+dy), shifting the point by the offset. | |
TPointL & | operator+= (const TSize &size) |
Return the point (x+cx, y+cy). | |
TPointL & | operator-= (const TSize &size) |
Return the point (x-cx, y-cy). | |
TPointL is similar to TPoint, but uses long rather than int variables.
Definition at line 132 of file geometry.h.
|
inline |
Default constructor that does nothing.
Definition at line 590 of file geometry.h.
Constructs the point to a specific location.
Definition at line 600 of file geometry.h.
|
inline |
Alias constructor that initializes from an existing point.
Definition at line 610 of file geometry.h.
|
inline |
Copy constructor. Makes a copy of the location.
Definition at line 620 of file geometry.h.
Returns the point (x+dx, y+dy), shifting the point by the offset.
Definition at line 712 of file geometry.h.
Returns the new point (x+dx, y+dy).
Creates a new point shifted by the offset, preserving the original point.
Definition at line 649 of file geometry.h.
References TPointL().
Returns true if the positions are not the same.
Definition at line 676 of file geometry.h.
References owl::ToBool().
Returns the new point (x+cx, y+cy).
Definition at line 685 of file geometry.h.
References TPointL().
Return the point (x+cx, y+cy).
Definition at line 723 of file geometry.h.
|
inline |
Returns the difference between the two points.
Definition at line 694 of file geometry.h.
References TPointL().
Return the point (x-cx, y-cy).
Definition at line 734 of file geometry.h.
Returns true if positions are the same.
Definition at line 667 of file geometry.h.
References owl::ToBool().
|
inline |
Returns the X component of the point.
Definition at line 630 of file geometry.h.
|
inline |
Returns the Y component of the point.
Definition at line 639 of file geometry.h.