Rogue Wave Views Foundation Package API Reference Guide |
Rogue Wave Views Documentation Home |
Tooltip handler class. More...
#include <ilviews/graphics/tooltip.h>
Public Member Functions | |
IlvToolTipHandler (IlvView *view=0) | |
Constructor. More... | |
IlvGraphic * | getLastPointedGraphic () const |
Returns a pointer to the last IlvGraphic object returned by lastContains() . More... | |
virtual void | handleInput (IlvEvent &event) |
Is called when the view observed by the view handler receives an input event. More... | |
virtual IlvGraphic * | lastContains (const IlvPoint &point) const =0 |
Is called to find the IlvGraphic object located at the specified point. More... | |
virtual void | setView (IlvView *view) |
Sets the view object observed by the view handler. More... | |
virtual void | viewDeleted () |
Is called when the view observed by the view handler is deleted. More... | |
Public Member Functions inherited from IlvViewHandler | |
IlUInt | getMask () const |
Returns the event mask of the view handler. More... | |
IlvView * | getView () const |
Returns the view object observed by the view handler. More... | |
virtual void | handleDestroy () |
Is called when the view observed by the view handler is being destroyed. More... | |
virtual void | handleExpose (IlvEvent &event) |
Is called when the view observed by the view handler receives an expose event. More... | |
virtual void | handleResize (const IlvRect &rect) |
Is called when the view observed by the view handler is resized. More... | |
void | setMask (IlUInt mask) |
Sets the event mask of the view handler. More... | |
Additional Inherited Members | |
Public Types inherited from IlvViewHandler |
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 |
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.
|
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 |
Sets the view object observed by the view handler.
view | The new view object observed by the view handler. |
Reimplemented from IlvViewHandler.
|
virtual |
Is called when the view observed by the view handler is deleted.
The default implementation does nothing.
Reimplemented from IlvViewHandler.
© Copyright 2016, 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.