Class: TLineInformationIterator

Declaration: TextDisplay.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

Provides access to information about the lines of text drawn by a TTextDisplay object.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

This class should be derived only if you are deriving TTextDisplay itself. Any TTextDisplay deriving using other than the default mechanism for breaking lines should derive TLineInformationIterator.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TLineInformationIterator::TLineInformationIterator

  1. TLineInformationIterator (const TTextDisplay *)
  2. TLineInformationIterator (const TLineInformationIterator &)

Interface Category:

API.

Purpose:

  1. Creates a TLineInformationIterator from a TTextDisplay.
  2. Copy constructor.

Calling Context:

  1. Used by TTextDisplay to create a TLineInformationIterator.
  2. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLineInformationIterator::operator=

TLineInformationIterator & operator =(const TLineInformationIterator &)

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.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLineInformationIterator::~TLineInformationIterator

virtual ~ TLineInformationIterator ()

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:

Multithread safe.

Other Considerations:

None.

Member Function: TLineInformationIterator::First

virtual bool First (TTextRange & textRange, TGRect & textboundary, GCoordinate & baselineOffset)

Interface Category:

API.

Purpose:

Provides positioning information for the first line of text drawn by a TTextDisplay object.

Calling Context:

Called to obtain positioning information for the first line of text drawn by a TTextDisplay object.

Parameters:

Return Value:

Returns true if there is at least one line of text drawn by the TTextDisplay object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLineInformationIterator::Last

virtual bool Last (TTextRange & textRange, TGRect & textboundary, GCoordinate & baselineOffset)

Interface Category:

API.

Purpose:

Provides positioning information for the last line of text drawn by a TTextDisplay object.

Calling Context:

Called to obtain positioning information for the last line of text drawn by a TTextDisplay object.

Parameters:

Return Value:

Returns true if there is at least one line of text drawn by the TTextDisplay object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLineInformationIterator::Next

virtual bool Next (TTextRange & textRange, TGRect & textboundary, GCoordinate & baselineOffset)

Interface Category:

API.

Purpose:

Provides positioning information for the line of text drawn by a TTextDisplay object following the current line.

Calling Context:

Called to obtain positioning information for the line of text drawn by a TTextDisplay object following the current line.

Parameters:

Return Value:

Returns true if the current line is not the last line of text drawn by the TTextDisplay object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TLineInformationIterator::Previous

virtual bool Previous (TTextRange & textRange, TGRect & textboundary, GCoordinate & baselineOffset)

Interface Category:

API.

Purpose:

Provides positioning information for the line of text drawn by a TTextDisplay object preceding the current line.

Calling Context:

Called to obtain positioning information for the line of text drawn by a TTextDisplay object preceding the current line.

Parameters:

Return Value:

Returns true if the current line is not the first line of text drawn by the TTextDisplay object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

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.