Class: TCanvasTextGraphicCreationTool

Declaration: CanvasText.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TSimpleMouseTool

Inherited By:

None.

Purpose:

A cursor tool that creates canvas graphics that allows for the drawing and manipulation of text.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Intended to be used as is, but can also be derived.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TCanvasTextGraphicCreationTool::TCanvasTextGraphicCreationTool

  1. TCanvasTextGraphicCreationTool ()
  2. TCanvasTextGraphicCreationTool (const TCanvasTextGraphicCreationTool &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.

Calling Context:

  1. Called to create a new object and by the stream-in operators.
  2. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCanvasTextGraphicCreationTool::~TCanvasTextGraphicCreationTool

virtual ~ TCanvasTextGraphicCreationTool ()

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: TCanvasTextGraphicCreationTool::operator=

TCanvasTextGraphicCreationTool & operator =(const TCanvasTextGraphicCreationTool &)

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:

Not multithread safe.

Other Considerations:

None.

Member Function: TCanvasTextGraphicCreationTool::operator>>=

virtual TStream & operator >>=(TStream &) 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.

Member Function: TCanvasTextGraphicCreationTool::operator<<=

virtual TStream & operator <<= (TStream &)

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 TInvalidVersionError if streaming in a version other than kOriginalVersion. Passes all other exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCanvasTextGraphicCreationTool::GetPaletteText

virtual void GetPaletteText (TText &) const

Interface Category:

API.

Purpose:

Produces the text to represent the tool in a menu or palette.

Calling Context:

Called by clients creating menus or palettes.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Derived classes override to produce different text to represent the tool.

Member Function: TCanvasTextGraphicCreationTool::CreatePaletteGraphic

virtual MGraphic * CreatePaletteGraphic () const

Interface Category:

API.

Purpose:

Creates a graphic to represent the tool in a menu or palette.

Calling Context:

Called by clients creating menus or palettes.

Parameters:

Return Value:

MGraphic * -Currently returns NIL.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Derived classes override to create and return a different graphic.

Member Function: TCanvasTextGraphicCreationTool::CreateCursorGraphic

virtual MGraphic * CreateCursorGraphic () const

Interface Category:

API.

Purpose:

Creates a graphic to be used to represent the tool as a cursor.

Calling Context:

Called by the Cursor Tools framework.

Parameters:

Return Value:

MGraphic * -A text eye beam graphic.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Derived classes override to create and return a different graphic.

Member Function: TCanvasTextGraphicCreationTool::CreateInteractor

virtual TToolInteractor * CreateInteractor (MToolTarget * target) const

Interface Category:

API.

Purpose:

Creates an interactor to manage the interaction of creating a canvas polygon for the tool.

Calling Context:

Called by the Cursor Tools framework.

Parameters:

Return Value:

TToolInteractor * -A new TCanvasTextGraphicCreationTool.

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.