OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TPointL Class Reference

TPointL is similar to TPoint, but uses long rather than int variables. More...

#include <owl/geometry.h>

Inheritance diagram for owl::TPointL:

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.
 
TPointLOffset (long dx, long dy)
 Returns the point (x+dx, y+dy), shifting the point by the offset.
 
TPointLoperator+= (const TSize &size)
 Return the point (x+cx, y+cy).
 
TPointLoperator-= (const TSize &size)
 Return the point (x-cx, y-cy).
 

Detailed Description

TPointL is similar to TPoint, but uses long rather than int variables.

Todo
Do we really need this? Isn't long same as int for 32-bit? What about 64-bit

Definition at line 132 of file geometry.h.

Constructor & Destructor Documentation

◆ TPointL() [1/4]

owl::TPointL::TPointL ( )
inline

Default constructor that does nothing.

Definition at line 590 of file geometry.h.

◆ TPointL() [2/4]

owl::TPointL::TPointL ( long _x,
long _y )
inline

Constructs the point to a specific location.

Definition at line 600 of file geometry.h.

◆ TPointL() [3/4]

owl::TPointL::TPointL ( const POINTL & point)
inline

Alias constructor that initializes from an existing point.

Definition at line 610 of file geometry.h.

◆ TPointL() [4/4]

owl::TPointL::TPointL ( const TPointL & point)
inline

Copy constructor. Makes a copy of the location.

Definition at line 620 of file geometry.h.

Member Function Documentation

◆ Offset()

TPointL & owl::TPointL::Offset ( long dx,
long dy )
inline

Returns the point (x+dx, y+dy), shifting the point by the offset.

Definition at line 712 of file geometry.h.

◆ OffsetBy()

TPointL owl::TPointL::OffsetBy ( long dx,
long dy ) const
inline

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().

◆ operator!=()

bool owl::TPointL::operator!= ( const TPointL & other) const
inline

Returns true if the positions are not the same.

Definition at line 676 of file geometry.h.

References owl::ToBool().

◆ operator+()

TPointL owl::TPointL::operator+ ( const TSize & size) const
inline

Returns the new point (x+cx, y+cy).

Definition at line 685 of file geometry.h.

References TPointL().

◆ operator+=()

TPointL & owl::TPointL::operator+= ( const TSize & size)
inline

Return the point (x+cx, y+cy).

Definition at line 723 of file geometry.h.

◆ operator-() [1/3]

TPointL owl::TPointL::operator- ( ) const
inline

Returns the negative of the point.

Definition at line 658 of file geometry.h.

References TPointL().

◆ operator-() [2/3]

TPointL owl::TPointL::operator- ( const TPointL & point) const
inline

Returns the difference between the two points.

Definition at line 694 of file geometry.h.

References TPointL().

◆ operator-() [3/3]

TPointL owl::TPointL::operator- ( const TSize & size) const
inline

Return the new point (x-cx, y-cy).

Definition at line 703 of file geometry.h.

References TPointL().

◆ operator-=()

TPointL & owl::TPointL::operator-= ( const TSize & size)
inline

Return the point (x-cx, y-cy).

Definition at line 734 of file geometry.h.

◆ operator==()

bool owl::TPointL::operator== ( const TPointL & other) const
inline

Returns true if positions are the same.

Definition at line 667 of file geometry.h.

References owl::ToBool().

◆ X()

long owl::TPointL::X ( ) const
inline

Returns the X component of the point.

Definition at line 630 of file geometry.h.

◆ Y()

long owl::TPointL::Y ( ) const
inline

Returns the Y component of the point.

Definition at line 639 of file geometry.h.


The documentation for this class was generated from the following file: