Class: TULongRect

Declaration: PrintPrimitives.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

TULongRect is a simple structure that represents a rectangle in an unsigned long coordinate space. Its fields are reminiscent of TGRects and can be accessed similarly.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Clients should not derive from this class.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TULongRect::TULongRect

  1. TULongRect ()
  2. TULongRect (const TULongRect &)
  3. TULongRect (const TULongPair & leftTop, const TULongPair & rightBottom)

Interface Category:

API.

Purpose:

  1. Default constructor. Fields are valid but undefined.
  2. Copy constructor.
  3. Constructor from TULongPair points specifying top left and bottom right.

Calling Context:

  1. Called by the stream-in operators and clients with no specific default requirements.
  2. Called to copy an object.
  3. Set from TULongPair points (top left and bottom right).

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TULongRect::~TULongRect

~ TULongRect ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TULongRect::Set

  1. void Set (const TULongPair & leftTop, const TULongPair & rightBottom)
  2. void Set (unsigned long l, unsigned long t, unsigned long r, unsigned long b)

Interface Category:

API.

Purpose:

  1. Sets the left-top and right-bottom coordinates of the rectangle.
  2. Sets the rectangle boundaries by left, top, right, and bottom sides.

Calling Context:

  1. Called to set top-left and bottom-right corners.
  2. Called to set each boundary of the rectangle.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TULongRect::GetSize

TULongPair GetSize () const

Interface Category:

API.

Purpose:

Returns the size of the rectangle as a TULongPair.

Calling Context:

Called to obtain the size of the rectangle.

Parameters:

Return Value:

Returns a TULongPair whose fields represent the size of the rectangle.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TULongRect::operator==

bool operator ==(const TULongRect & Src) const

Interface Category:

API.

Purpose:

Compares itself with the parameter input.

Calling Context:

Called to compare rectangles.

Parameters:

Return Value:

Returns true if the source rectangle is equal to itself.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TULongRect::operator!=

bool operator != (const TULongRect & Src) const

Interface Category:

API.

Purpose:

Determines if the rectangles are unequal.

Calling Context:

Called to compare rectangles.

Parameters:

Return Value:

Returns true if the source rectangle is not equal to itself.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TULongRect::operator=

TULongRect & operator =(const TULongRect &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object. Returns the result of the assignment.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TULongRect::operator<<=

TStream & operator <<= (TStream & towhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TULongRect::operator>>=

TStream & operator >>=(TStream & fromwhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.