Rogue Wave Views Manager Package API Reference Guide |
Rogue Wave Views Documentation Home |
View rectangle class. More...
#include <ilviews/manager/rectangl.h>
Public Member Functions | |
IlvManagerRectangle (IlvDisplay *display, const IlvRect &rect, IlvPalette *palette=0) | |
Constructor. More... | |
const char * | getFilename () const |
Returns the file name associated with the manager. More... | |
IlvManager * | getManager () const |
Returns the manager used by the object. More... | |
IlBoolean | isOwner () const |
Indicates whether the manager is owned by the manager rectangle. More... | |
void | setFilename (const char *name, IlBoolean redraw=IlFalse) |
Reads a file and associates the file name to the manager. More... | |
virtual void | setManager (IlvManager *manager, IlBoolean owner=IlTrue) |
Sets the manager. More... | |
View rectangle class.
Library: ilvmgr
The IlvManagerRectangle
class allows you to integrate complex graphics into your applications. This special graphic object contains an instance of the class IlvView
connected to a manager. The IlvManagerRectangle
reserves a place in the panel to store this manager view. By default, an instance of IlvManager
is created to manage the view. It can also be a manager created by the user. Also, a file name can be associated with this object.
IlvManager
, IlvView
. IlvManagerRectangle::IlvManagerRectangle | ( | IlvDisplay * | display, |
const IlvRect & | rect, | ||
IlvPalette * | palette = 0 |
||
) |
Constructor.
Initializes a new instance of the IlvManagerRectangle
class.
display | Specifies the display. |
rect | Specifies the size of the object. |
palette | The background color of the palette is used as the window background color for the object view. |
const char* IlvManagerRectangle::getFilename | ( | ) | const |
Returns the file name associated with the manager.
IlvManager* IlvManagerRectangle::getManager | ( | ) | const |
Returns the manager used by the object.
IlBoolean IlvManagerRectangle::isOwner | ( | ) | const |
Indicates whether the manager is owned by the manager rectangle.
IlTrue
if the manager used is owned by the object (that is, it is destroyed upon deletion of IlvManagerRectangle
). If the manager is not owned, the function returns IlFalse
. Reads a file and associates the file name to the manager.
Sets the name of the file associated with the manager. This file is read during the function call.
name | The file name. |
redraw | If IlTrue , the manager will redraw itself after loading the file. Otherwise, no redraw is performed. |
|
virtual |
Sets the manager.
Sets the manager that manages the view stored by the object.
manager | The manager to set. |
owner | If IlTrue , the manager is considered to be owned by the object and will be automatically deleted when the object is destroyed. If IlFalse , destroying the manager will be the responsibility of the user. |
Reimplemented in IlvSCManagerRectangle.
© Copyright 2017, 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.