Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Class used to handle attachments of graphic objects. More...
Public Member Functions | |
IlvAttachmentsHandler () | |
Constructor. | |
IlvGraphicHolder * | getGraphicHolder () const |
Returns the graphic holder associated with the attachments handler. | |
virtual void | handleResize (const IlvRect &rect) |
Is called when the view observed by the view handler is resized. | |
virtual void | setView (IlvView *view) |
Sets the view object observed by the view handler. | |
Static Public Member Functions | |
static IlvAttachmentsHandler * | Get (const IlvView *view) |
Returns the attachments handler instance associated with the specified view. | |
static IlvAttachmentsHandler * | Set (IlvView *view, IlvAttachmentsHandler *handler) |
Sets the specified attachments handler to the specified view. |
Class used to handle attachments of graphic objects.
Library: views
IlvAttachmentsHandler
is a subclass of the IlvViewHandler
class that deals with attachments set by calling IlvSetAttachment
. Each time the view observed by this handler is resized, attached objects located in the graphic holder connected to this view are moved or resized according to their attachments.
IlvSetAttachment
, IlvGraphicHolder
. IlvAttachmentsHandler::IlvAttachmentsHandler | ( | ) |
Constructor.
Initializes a new instance of the class IlvAttachmentsHandler
. To connect it to a view, use the IlvAttachmentsHandler::Set
static member function.
static IlvAttachmentsHandler* IlvAttachmentsHandler::Get | ( | const IlvView * | view | ) | [static] |
Returns the attachments handler instance associated with the specified view.
view | The view. |
0
if there is none. IlvGraphicHolder* IlvAttachmentsHandler::getGraphicHolder | ( | ) | const |
Returns the graphic holder associated with the attachments handler.
0
if there is none. virtual void IlvAttachmentsHandler::handleResize | ( | const IlvRect & | rect | ) | [virtual] |
Is called when the view observed by the view handler is resized.
The default implementation does nothing.
rect | The new size of the view. |
Reimplemented from IlvViewHandler.
static IlvAttachmentsHandler* IlvAttachmentsHandler::Set | ( | IlvView * | view, | |
IlvAttachmentsHandler * | handler | |||
) | [static] |
Sets the specified attachments handler to the specified view.
Connects handler to view. If an instance of IlvAttachmentsHandler
was already connected with view, it is removed, but not deleted.
view | The view. |
0
otherwise. virtual void IlvAttachmentsHandler::setView | ( | IlvView * | view | ) | [virtual] |
Sets the view object observed by the view handler.
view | The new view object observed by the view handler. |
Reimplemented from IlvViewHandler.
© 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.