bWidgets
Core widget toolkit designed for Blender
|
API for registering and calling event-listeners. More...
#include <EventHandler.h>
Public Types | |
enum | EventType { MOUSE_ENTER , MOUSE_LEAVE , TOT_EVENT_TYPES } |
Public Member Functions | |
EventHandler ()=default | |
virtual | ~EventHandler ()=default |
void | addEventListener (EventType event_type, EventListener listener) |
virtual void | onMouseMove (bwEvent &) |
virtual void | onMouseEnter (bwEvent &) |
virtual void | onMouseLeave (bwEvent &) |
virtual void | onMousePress (bwMouseButtonEvent &) |
virtual void | onMouseRelease (bwMouseButtonEvent &) |
virtual void | onMouseClick (bwMouseButtonEvent &) |
virtual void | onMouseDrag (bwMouseButtonDragEvent &) |
virtual void | onMouseWheel (bwMouseWheelEvent &) |
API for registering and calling event-listeners.
TODO:
onFoo()
style listeners are supported, custom addEventListener()
doesn't work yet.
|
default |
|
virtualdefault |
void bWidgets::bwScreenGraph::EventHandler::addEventListener | ( | EventHandler::EventType | event_type, |
EventListener | listener | ||
) |
|
virtual |
Reimplemented in bWidgets::bwNumberSliderHandler, bWidgets::bwScrollBarHandler, and bWidgets::bwScrollViewHandler.
|
virtual |
Reimplemented in bWidgets::bwNumberSliderHandler, bWidgets::bwScrollBarHandler, and bWidgets::bwScrollViewHandler.
|
virtual |
Reimplemented in bWidgets::bwAbstractButtonHandler, bWidgets::bwScrollViewHandler, and bWidgets::bwTextBoxHandler.
|
virtual |
Reimplemented in bWidgets::bwAbstractButtonHandler, bWidgets::bwScrollViewHandler, and bWidgets::bwTextBoxHandler.
|
virtual |
Reimplemented in bWidgets::bwScrollViewHandler.
|
virtual |
|
virtual |
|
virtual |
Reimplemented in bWidgets::bwScrollViewHandler.