Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Tooltip handler class. More...
#include <ilviews/graphics/tooltip.h>
Public Member Functions | |
IlvToolTipHandler (IlvView *view=0) | |
Constructor. | |
IlvGraphic * | getLastPointedGraphic () const |
Returns a pointer to the last IlvGraphic object returned by lastContains . | |
virtual void | handleInput (IlvEvent &event) |
Is called when the view observed by the view handler receives an input event. | |
virtual IlvGraphic * | lastContains (const IlvPoint &point) const =0 |
Is called to find the IlvGraphic object located at the specified point. | |
virtual void | setView (IlvView *view) |
Sets the view object observed by the view handler. | |
virtual void | viewDeleted () |
Is called when the view observed by the view handler is deleted. |
Tooltip handler class.
Library: views
The class IlvToolTipHandler
is an abstract class for handling tooltips. A tooltip handler can be set to any existing IlvView
object. This handler installs an input callback on the specified view and tracks the IlvPointerMoved
events to determine whether tooltips should be displayed. When subclassing IlvToolTipHandler
, you must provide the implementation of the lastContains
method. You can also use the predefined class IlvGraphicHolderToolTipHandler
class that can be used to manage tooltips in a view connected to an IlvGraphicHolder
instance (IlvContainer
objects or IlvView
objects connected to an IlvManager
).
IlvToolTipHandler::IlvToolTipHandler | ( | IlvView * | view = 0 |
) |
Constructor.
Initializes a new instance of the class IlvToolTipHandler
connected to view.
view | The view connected with this tooltip handler. |
IlvGraphic* IlvToolTipHandler::getLastPointedGraphic | ( | ) | const |
Returns a pointer to the last IlvGraphic
object returned by lastContains
.
IlvGraphic
object returned by IlvToolTipHandler::lastContains
. virtual void IlvToolTipHandler::handleInput | ( | IlvEvent & | event | ) | [virtual] |
Is called when the view observed by the view handler receives an input event.
The default implementation does nothing.
event | The input event. |
IlvEvent
. Reimplemented from IlvViewHandler.
virtual IlvGraphic* IlvToolTipHandler::lastContains | ( | const IlvPoint & | point | ) | const [pure virtual] |
Is called to find the IlvGraphic
object located at the specified point.
This method must be redefined in subclasses to return the graphic object located at point in the view associated with this tooltip handler.
point | The point in view coordinates. |
Implemented in IlvGraphicHolderToolTipHandler.
virtual void IlvToolTipHandler::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.
virtual void IlvToolTipHandler::viewDeleted | ( | ) | [virtual] |
Is called when the view observed by the view handler is deleted.
The default implementation does nothing.
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.