This Class is inherited from Event Class. Inherit from it and create specific MouseButtonEvent class. More...
#include <MouseEvent.h>
Public Types | |
| using | EventCallbackFn = std::function<void(Event&)> |
| Helper type of Function pointer. | |
Public Member Functions | |
| virtual | ~MouseButtonEvent () override=default |
| Destructor Function. | |
| const int & | GetMouseButton () const |
| Destructor Function. | |
| virtual EventType | GetEventType () const =0 |
| Event Information Function, must be implemented by EVENT_CLASS_TYPE and EVENT_CLASS_CATEGORY. | |
| virtual const char * | GetName () const =0 |
| virtual int | GetCategoryFlags () const =0 |
| virtual std::string | ToString () const |
| bool | IsInCategory (EventCategory category) const |
| Judgement if a given category is contained by this event class. | |
Static Public Member Functions | |
| static EventCallbackFn | GetEventCallbackFn () |
| Get Global Root Event Function Pointer. | |
| static void | SetEventCallbackFn (const EventCallbackFn &callback) |
| Set Global Root Event Function Pointer. | |
Public Attributes | |
| bool | Handled = false |
| True if this event is handled. | |
Protected Member Functions | |
| MouseButtonEvent (int button) | |
| Specific this Class Category with EventCategoryMouse and EventCategoryInput. | |
Protected Attributes | |
| int | m_Button |
| Input Mouse Button. | |
This Class is inherited from Event Class. Inherit from it and create specific MouseButtonEvent class.
Definition at line 155 of file MouseEvent.h.