Class: TCanvasTextGraphicCreationInteractor

Declaration: CanvasText.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TCanvasDragInteractor

Inherited By:

None.

Purpose:

A tool interactor that records the point of the mouse click and uses this information to place a TCanvasEditableTextView (to be edited by the user). The interactor adopts a new TCanvasTextGraphic into a canvas representation before executing a TAdoptCanvasGraphicCmd.

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: TCanvasTextGraphicCreationInteractor::TCanvasTextGraphicCreationInteractor

TCanvasTextGraphicCreationInteractor (MCanvasSelection * adoptTarget, MToolHandler *)

Interface Category:

API.

Purpose:

Creates a new object.

Calling Context:

Created by a TCanvasTextGraphicCreationTool.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TCanvasTextGraphicCreationInteractor::~TCanvasTextGraphicCreationInteractor

virtual ~ TCanvasTextGraphicCreationInteractor ()

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: TCanvasTextGraphicCreationInteractor::StartInteraction

virtual void StartInteraction ()

Interface Category:

API.

Purpose:

Takes the location of the mouse-down event and positions a TCanvasEditableTextView at this point for editing. Also, creates a new canvas text graphic, which is then made visible and populated with text by the TCanvasEditableTextView::HandleDeactivate member function.

Calling Context:

Called by the Graphics Editing framework.

Parameters:

Return Value:

None.

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.