![]() Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Manager interactor class. More...
#include <ilviews/manager/geointer.h>
Public Member Functions | |
| IlvMakeMoveInteractor (IlvManager *manager, IlvView *view, unsigned short button=IlvLeftButton) | |
| Constructor. | |
| virtual void | doIt (IlvPos dx, IlvPos dy) |
| Action performed to finalize the interaction. | |
| virtual void | drawGhost () |
| Visual feedback during interaction. | |
| IlUShort | getButton () const |
| Gets the button used by the interactor. | |
| virtual void | handleEvent (IlvEvent &event) |
| Handles keyboard and mouse events. | |
| void | setButton (IlUShort b) |
| Sets the button used by the interactor. | |
| void | useDefaultTransitionScheduler (IlBoolean value=IlTrue, IlUInt duration=1000) |
| Tells the interactor whether to use the default transition scheduler to translate the view. | |
Manager interactor class.
Library: ilvmgr
Use this class to translate a view.
IlvManager, IlvView, IlvTransformer. | IlvMakeMoveInteractor::IlvMakeMoveInteractor | ( | IlvManager * | manager, | |
| IlvView * | view, | |||
| unsigned short | button = IlvLeftButton | |||
| ) |
Constructor.
Initializes a new instance of the IlvMakeMoveInteractor class. Lets you specify the mouse button to use during the interaction.
| manager | The manager. | |
| view | The manager view. | |
| button | The mouse button to use. |
Action performed to finalize the interaction.
Translates the view by the specified offsets.
| dx | Horizontal translation offset. | |
| dy | Vertical translation offset. |
| virtual void IlvMakeMoveInteractor::drawGhost | ( | ) | [virtual] |
Visual feedback during interaction.
Draws a rectangle in XOR mode. The rectangle has the size of the client area of the view, showing where the translated view would be.
Reimplemented from IlvManagerViewInteractor.
| virtual void IlvMakeMoveInteractor::handleEvent | ( | IlvEvent & | event | ) | [virtual] |
Handles keyboard and mouse events.
| event | The event to handle. |
Implements IlvManagerViewInteractor.
| void IlvMakeMoveInteractor::setButton | ( | IlUShort | b | ) |
Sets the button used by the interactor.
| button | Specifies the button to use. |
| void IlvMakeMoveInteractor::useDefaultTransitionScheduler | ( | IlBoolean | value = IlTrue, |
|
| IlUInt | duration = 1000 | |||
| ) |
Tells the interactor whether to use the default transition scheduler to translate the view.
| value | A Boolean value specifying whether to use or not the default transition scheduler to translate the view. If value is IlFalse, no transition scheduler will be used. | |
| duration | The duration that the transition will take to complete. The value is a number of milliseconds. |
© Copyright 2012, 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.