Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Interface used to create selection objects. More...
#include <ilviews/intrface/select.h>
Public Member Functions | |
virtual IlvDrawSelection * | makeSelection (IlvDisplay *dpy, IlvGraphic *obj) const =0 |
Returns the selection object for a given graphic object. |
Interface used to create selection objects.
Library: views
This abstract class provides an interface to create the selection object that must be associated with a graphic object. The selection object is used to highlight and manipulate the selected object.
Each subclass must provide an implementation for the IlvSelectionInterface::makeSelection
method. Each graphic class can then be associated with a specific IlvSelectionInterface
subclass using the DeclareInterface
and IlvRegisterInterface
macros.
First, add the following in the class declaration:
class MyGraphicClass : public IlvSimpleGraphic {
.....
DeclareInterface(Selection);
.....
};
Then, add the following in the implementation file, outside the body of a function:
IlvRegisterInterface(Selection,MyGraphicClass,MySelectionInterfaceClass);
virtual IlvDrawSelection* IlvSelectionInterface::makeSelection | ( | IlvDisplay * | dpy, | |
IlvGraphic * | obj | |||
) | const [pure virtual] |
Returns the selection object for a given graphic object.
obj | The display connection used to draw the selection object. | |
obj | The graphic object being considered. |
© 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.