rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Manager Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions
IlvMakeBitmapInteractor Class Reference

Manager interactor class. More...

#include <ilviews/manager/utilint.h>

Inheritance diagram for IlvMakeBitmapInteractor:
IlvDragRectangleInteractor IlvManagerViewInteractor

Public Member Functions

 IlvMakeBitmapInteractor (IlvManager *manager, IlvView *view, IlBoolean zoomable=IlFalse)
 Constructor. More...
 
virtual void doIt (IlvRect &)
 Finalizes the interaction by creating an icon object. More...
 
- Public Member Functions inherited from IlvDragRectangleInteractor
 IlvDragRectangleInteractor (IlvManager *manager, IlvView *view, IlUShort button=IlvLeftButton, IlBoolean snap=IlTrue)
 Constructor. More...
 
virtual void abort ()
 Abort the interaction. More...
 
virtual void doPoint (const IlvPoint &p)
 Called when the selected rectangle is reduced to a point. More...
 
virtual void drawGhost ()
 Visual feedback during the interaction. More...
 
IlvRectgetRectangle ()
 Returns the selected rectangle. More...
 
virtual void handleEvent (IlvEvent &event)
 Handles keyboard and mouse events. More...
 
virtual void init ()
 Initialization, when the interactor is attached to a view. More...
 
- Public Member Functions inherited from IlvManagerViewInteractor
 IlvManagerViewInteractor (IlvManager *manager, IlvView *view)
 Constructor. More...
 
virtual void ensureVisible (const IlvPoint &point)
 Ensures the visibility of a given location. More...
 
IlvDisplaygetDisplay () const
 Returns the display of the manager view. More...
 
IlvManagergetManager () const
 Returns the manager. More...
 
IlvTransformergetTransformer () const
 Returns the transformer used with the manager view. More...
 
IlvViewgetView () const
 Returns the manager view. More...
 
virtual void handleExpose (IlvRegion *clip=0)
 Called when the manager view receives an expose event. More...
 

Detailed Description

Manager interactor class.

Library: ilvmgr

Use this class to create icons or zoomable icons. These are the same as those created by the class IlvIcon for the icons, and IlvZoomableIcon for the zoomable icons.

See Also
IlvBitmap, IlvIcon, IlvManager, IlvZoomableIcon.

Constructor & Destructor Documentation

IlvMakeBitmapInteractor::IlvMakeBitmapInteractor ( IlvManager manager,
IlvView view,
IlBoolean  zoomable = IlFalse 
)

Constructor.

Initializes a new instance of the IlvMakeBitmapInteractor class. It also specifies whether the created icon will be zoomable (zoomable = IlTrue).

Parameters
managerThe manager.
viewThe manager view.
zoomableSpecifies whether the icon object to create is zoomable.

Member Function Documentation

virtual void IlvMakeBitmapInteractor::doIt ( IlvRect )
virtual

Finalizes the interaction by creating an icon object.

Creates a new icon of the size of rect in the manager. Depending on the value of the zoomable parameter given in the constructor, the method creates an instance of IlvIcon (IlTrue) or an instance of IlvZoomableIcon (IlFalse). The bitmap data is copied from the view area defined by the rect parameter.

Parameters
rectThe rectangular area in the view.

Reimplemented from IlvDragRectangleInteractor.


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