rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvSelectionInterface Class Reference

Interface used to create selection objects. More...

#include <ilviews/intrface/select.h>

List of all members.

Public Member Functions

virtual IlvDrawSelectionmakeSelection (IlvDisplay *dpy, IlvGraphic *obj) const =0
 Returns the selection object for a given graphic object.

Detailed Description

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);

See also:
IlvGraphic.

Member Function Documentation

virtual IlvDrawSelection* IlvSelectionInterface::makeSelection ( IlvDisplay dpy,
IlvGraphic obj 
) const [pure virtual]

Returns the selection object for a given graphic object.

Parameters:
obj The display connection used to draw the selection object.
obj The graphic object being considered.
Returns:
The selection object for the obj graphic object.
 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.