|
NXWidgets
1.19
|
#include <cwidgeteventhandlerlist.hxx>
Public Member Functions | |
| CWidgetEventHandlerList (CNxWidget *widget) | |
| ~CWidgetEventHandlerList (void) | |
| bool | isEnabled (void) const |
| CWidgetEventHandler * | at (int index) const |
| int | size (void) const |
| void | addWidgetEventHandler (CWidgetEventHandler *eventHandler) |
| void | removeWidgetEventHandler (CWidgetEventHandler *eventHandler) |
| void | enable (void) |
| void | disable (void) |
| void | raiseClickEvent (nxgl_coord_t x, nxgl_coord_t y) |
| void | raiseDoubleClickEvent (nxgl_coord_t x, nxgl_coord_t y) |
| void | raiseReleaseEvent (nxgl_coord_t x, nxgl_coord_t y) |
| void | raiseReleaseOutsideEvent (nxgl_coord_t x, nxgl_coord_t y) |
| void | raiseDragEvent (nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t vX, nxgl_coord_t vY) |
| void | raiseDropEvent (nxgl_coord_t x, nxgl_coord_t y) |
| void | raiseKeyPressEvent (nxwidget_char_t key) |
| void | raiseCursorControlEvent (ECursorControl cursorControl) |
| void | raiseFocusEvent (void) |
| void | raiseBlurEvent (void) |
| void | raiseCloseEvent (void) |
| void | raiseHideEvent (void) |
| void | raiseShowEvent (void) |
| void | raiseEnableEvent (void) |
| void | raiseDisableEvent (void) |
| void | raiseValueChangeEvent (void) |
| void | raiseResizeEvent (nxgl_coord_t width, nxgl_coord_t height) |
| void | raiseMoveEvent (nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t vX, nxgl_coord_t vY) |
| void | raiseActionEvent (void) |
| void | raiseScrollEvent (nxgl_coord_t vX, nxgl_coord_t vY) |
Protected Attributes | |
| TNxArray< CWidgetEventHandler * > | m_widgetEventHandlers |
| CNxWidget * | m_widget |
| bool | m_isEnabled |
List of widget event handlers.
Definition at line 105 of file cwidgeteventhandlerlist.hxx.
| CWidgetEventHandlerList::CWidgetEventHandlerList | ( | CNxWidget * | widget | ) |
Constructor.
| widget | The owning widget. |
Definition at line 101 of file cwidgeteventhandlerlist.cxx.
|
inline |
Destructor.
Definition at line 126 of file cwidgeteventhandlerlist.hxx.
| void CWidgetEventHandlerList::addWidgetEventHandler | ( | CWidgetEventHandler * | eventHandler | ) |
Adds a widget event handler. The event handler will receive all events raised by this object.
| eventHandler | A pointer to the event handler. |
Definition at line 124 of file cwidgeteventhandlerlist.cxx.
|
inline |
Get the event handler at the specified index.
| index | The index of the event handler. |
Definition at line 143 of file cwidgeteventhandlerlist.hxx.
|
inline |
Disables event raising.
Definition at line 188 of file cwidgeteventhandlerlist.hxx.
|
inline |
Enables event raising.
Definition at line 179 of file cwidgeteventhandlerlist.hxx.
| bool CWidgetEventHandlerList::isEnabled | ( | void | ) | const |
Check if the object raises events or not.
Definition at line 113 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseActionEvent | ( | void | ) |
Raise an action event to the event handler. This should be called when a widget's purpose has been fulfilled. For example, in the case of a button, this event is raised when the button is released within its boundaries. The button has produced a valid click, and thus fulfilled its purpose, so it needs to raise an "action" event.
Definition at line 507 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseBlurEvent | ( | void | ) |
Raise a blur event to the event handler.
Definition at line 341 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseClickEvent | ( | nxgl_coord_t | x, |
| nxgl_coord_t | y | ||
| ) |
Raise a click event to the event handler.
| x | The x coordinate of the click. |
| y | The y coordinate of the click. |
Definition at line 166 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseCloseEvent | ( | void | ) |
Raise a close event to the event handler.
Definition at line 358 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseCursorControlEvent | ( | ECursorControl | cursorControl | ) |
Raise a cursor control event to the event handler.
| cursorControl | The cursor control code that caused the event. |
Definition at line 307 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseDisableEvent | ( | void | ) |
Raise a disable event to the event handler.
Definition at line 426 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseDoubleClickEvent | ( | nxgl_coord_t | x, |
| nxgl_coord_t | y | ||
| ) |
Raise a double-click event to the event handler.
| x | The x coordinate of the click. |
| y | The y coordinate of the click. |
Definition at line 186 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseDragEvent | ( | nxgl_coord_t | x, |
| nxgl_coord_t | y, | ||
| nxgl_coord_t | vX, | ||
| nxgl_coord_t | vY | ||
| ) |
Raise a mouse drag event to the event handler.
| x | The x coordinate of the mouse when the drag started. |
| y | The y coordinate of the mouse when the drag started. |
| vX | The horizontal distance dragged. |
| vY | The vertical distance dragged. |
Definition at line 248 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseDropEvent | ( | nxgl_coord_t | x, |
| nxgl_coord_t | y | ||
| ) |
Raise a widget drop event to the event handler.
| x | The x coordinate of the mouse when the drop occurred. |
| y | The y coordinate of the mouse when the drop occurred. |
Definition at line 269 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseEnableEvent | ( | void | ) |
Raise an enable event to the event handler.
Definition at line 409 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseFocusEvent | ( | void | ) |
Raise a focus event to the event handler.
Definition at line 324 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseHideEvent | ( | void | ) |
Raise a hide event to the event handler.
Definition at line 375 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseKeyPressEvent | ( | nxwidget_char_t | key | ) |
Raise a key press event to the event handler.
| key | The character code of the key that caused the event. |
Raise a key press event to the event handler.
| key | The code of the key that caused the event. |
Definition at line 288 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseMoveEvent | ( | nxgl_coord_t | x, |
| nxgl_coord_t | y, | ||
| nxgl_coord_t | vX, | ||
| nxgl_coord_t | vY | ||
| ) |
Raise a move event to the event handler.
| x | The new x coordinate of the widget. |
| y | The new y coordinate of the widget. |
| vX | The horizontal distance moved. |
| vY | The vertical distance moved. |
Definition at line 485 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseReleaseEvent | ( | nxgl_coord_t | x, |
| nxgl_coord_t | y | ||
| ) |
Raise a mouse release event to the event handler.
| x | The x coordinate of the release. |
| y | The y coordinate of the release. |
Definition at line 206 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseReleaseOutsideEvent | ( | nxgl_coord_t | x, |
| nxgl_coord_t | y | ||
| ) |
Raise a mouse release-outside event to the event handler.
| x | The x coordinate of the release. |
| y | The y coordinate of the release. |
Definition at line 226 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseResizeEvent | ( | nxgl_coord_t | width, |
| nxgl_coord_t | height | ||
| ) |
Raise a resize event to the event handler.
| width | The new width of the widget. |
| height | The new height of the widget. |
Definition at line 463 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseScrollEvent | ( | nxgl_coord_t | vX, |
| nxgl_coord_t | vY | ||
| ) |
Raises a scroll event. Fired when the panel scrolls.
| vX | Horizontal distance scrolled. |
| vY | Vertical distance scrolled. |
Definition at line 527 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseShowEvent | ( | void | ) |
Raise a show event to the event handler.
Definition at line 392 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::raiseValueChangeEvent | ( | void | ) |
Raise a value change event to the event handler.
Definition at line 443 of file cwidgeteventhandlerlist.cxx.
| void CWidgetEventHandlerList::removeWidgetEventHandler | ( | CWidgetEventHandler * | eventHandler | ) |
Remove a widget event handler.
| eventHandler | A pointer to the event handler to remove. |
Definition at line 147 of file cwidgeteventhandlerlist.cxx.
|
inline |
Get the size of the array.
Definition at line 154 of file cwidgeteventhandlerlist.hxx.
|
protected |
Indicates if events are active
Definition at line 110 of file cwidgeteventhandlerlist.hxx.
|
protected |
Owning widget
Definition at line 109 of file cwidgeteventhandlerlist.hxx.
|
protected |
List of event handlers
Definition at line 108 of file cwidgeteventhandlerlist.hxx.
1.8.13