Rogue Wave Views Foundation Package API Reference Guide |
Rogue Wave Views Documentation Home |
Class used to handle events that occurs on an IlvView
.
More...
#include <ilviews/base/view.h>
Public Types | |
enum | EventType { NoEvent, InputEvent, ExposeEvent, ResizeEvent, DestroyEvent } |
This enumeration defines the possible values for the event mask of an IlvViewHandler object. More... | |
Public Member Functions | |
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 | handleInput (IlvEvent &event) |
Is called when the view observed by the view handler receives an input 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... | |
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... | |
Class used to handle events that occurs on an IlvView
.
Library: viewsIlvViewHandler
is a class that handles event that occurs in an IlvView
object. It defines several notification member function that are called when specific events occurs in the view, provided that the view handler event mask has been set correctly. The view handler event mask specifies what kind of event the view handler will track.
IlvView
. This enumeration defines the possible values for the event mask of an IlvViewHandler
object.
IlvViewHandler::setMask()
. IlUInt IlvViewHandler::getMask | ( | ) | const |
Returns the event mask of the view handler.
The event mask can be a combination of the symbols of the enumeration EventType
.
setMask()
. IlvView* IlvViewHandler::getView | ( | ) | const |
Returns the view object observed by the view handler.
setView()
|
virtual |
Is called when the view observed by the view handler is being destroyed.
The default implementation does nothing.
|
virtual |
Is called when the view observed by the view handler receives an expose event.
The default implementation does nothing.
event | The event containing the expose information. |
IlvEvent
.
|
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 in IlvToolTipHandler.
|
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 in IlvAttachmentsHandler.
void IlvViewHandler::setMask | ( | IlUInt | mask | ) |
Sets the event mask of the view handler.
The event mask can be a combination of the symbols of the enumeration EventType
.
mask | The new event mask of the view handler. |
getMask()
, handleResize()
, handleInput()
, handleDestroy()
, handleExpose()
.
|
virtual |
Sets the view object observed by the view handler.
view | The new view object observed by the view handler. |
setView()
Reimplemented in IlvToolTipHandler, and IlvAttachmentsHandler.
|
virtual |
Is called when the view observed by the view handler is deleted.
The default implementation does nothing.
Reimplemented in IlvToolTipHandler.
© Copyright 2018, 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.