Rogue Wave Views Manager Package API Reference Guide |
Rogue Wave Views Documentation Home |
Manager view interactor class. More...
#include <ilviews/gadmgr/txtinter.h>
Public Member Functions | |
IlvManagerMakeListLabelInteractor (IlvManager *manager, IlvView *view) | |
Constructor. | |
virtual IlBoolean | accept (IlvPoint &p) |
Starts the text interaction at the specified location. More... | |
virtual void | doIt (const char *const *lines, IlUShort count) |
Finalizes the interaction. More... | |
Public Member Functions inherited from IlvManagerMakeTextInteractor | |
IlvManagerMakeTextInteractor (IlvManager *manager, IlvView *view) | |
Constructor. More... | |
virtual void | abort () |
Aborts the interaction. More... | |
const char *const * | getLines (IlUShort &count) const |
Returns the array of character strings being edited. More... | |
IlBoolean | handleEvent (IlvEvent &event) |
Handles events for the manager view. More... | |
void | handleExpose (IlvRegion *clip) |
Called when the manager view receives an expose event. More... | |
void | reDraw () |
Redraws the text object. | |
void | setLines (const char *const *lines, IlUShort count, IlBoolean redraw=IlTrue) |
Sets the contents of the text object to the specified array of strings. More... | |
Public Member Functions inherited from IlvManagerViewInteractor | |
IlvManagerViewInteractor (IlvManager *manager, IlvView *view) | |
Initializes a new IlvManagerViewInteractor . More... | |
virtual void | drawGhost () |
Visual feedback during the interaction. More... | |
virtual void | ensureVisible (const IlvPoint &point) |
Ensures the visibility of a given location. More... | |
IlvDisplay * | getDisplay () const |
Returns the display of the manager view. More... | |
IlvManager * | getManager () const |
Returns the manager. More... | |
IlvTransformer * | getTransformer () const |
Returns the transformer used with the manager view. More... | |
IlvView * | getView () const |
Returns the manager view. More... | |
virtual void | init () |
Initialization, when the interactor is attached to a view. More... | |
Manager view interactor class.
Library: ilvgadmgr
Use this interactor to edit or create the IlvListLabel
instances and subtypes.
Starts the text interaction at the specified location.
Called when the user presses the left mouse button in the working view. The default implementation creates the text object at location p and returns IlTrue
. If p is contained in a graphic object subclass of IlvListLabel
, the text object is initialized with the same geometry filled with the same textual contents.
IlTrue
if the interactor accepts the point as a valid position to start the interaction. p | The position of the event that initiated the interaction. |
Reimplemented from IlvManagerMakeTextInteractor.
|
virtual |
Finalizes the interaction.
Called when the user validates the text entry. The text contents are passed to this function. The action performed is to create a new IlvListLabel
graphic object or to modify the contents of an existing one.
lines | The array of strings stored by the interactor. |
count | The number of strings in the array. |
Implements IlvManagerMakeTextInteractor.
© Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.