rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Manager Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvMakeMoveInteractor Class Reference

Manager interactor class. More...

#include <ilviews/manager/geointer.h>

Inheritance diagram for IlvMakeMoveInteractor:
IlvManagerViewInteractor

List of all members.

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.

Detailed Description

Manager interactor class.

Library: ilvmgr

Use this class to translate a view.

See also:
IlvManager, IlvView, IlvTransformer.

Constructor & Destructor Documentation

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.

Parameters:
manager The manager.
view The manager view.
button The mouse button to use.

Member Function Documentation

virtual void IlvMakeMoveInteractor::doIt ( IlvPos  dx,
IlvPos  dy 
) [virtual]

Action performed to finalize the interaction.

Translates the view by the specified offsets.

Parameters:
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.

Parameters:
event The event to handle.

Implements IlvManagerViewInteractor.

void IlvMakeMoveInteractor::setButton ( IlUShort  b  ) 

Sets the button used by the interactor.

Parameters:
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.

Parameters:
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.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© 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.