|
PLaSK library
|
Store information about event connected with mesh. More...
#include <plask/mesh/mesh.hpp>
Public Types | |
| enum | Flags { EVENT_DELETE = 1 , EVENT_RESIZE = 1<<1 , EVENT_USER_DEFINED = 1<<2 } |
| Event flags (which describe event properties). More... | |
Public Types inherited from plask::EventWithSourceAndFlags< Mesh > | |
| typedef unsigned char | FlagsType |
Public Member Functions | |
| bool | hasFlag (Flags flag) const |
Check if given flag is set. | |
| bool | isDelete () const |
| Check if EVENT_DELETE flag is set, which mean that source of event is being deleted. | |
| bool | isResize () const |
| Check if EVENT_RESIZE flag is set, which mean that source of event could have been resized. | |
| Event (Mesh *source, unsigned char flags=0) | |
| Construct the event. | |
Public Member Functions inherited from plask::EventWithSourceAndFlags< Mesh > | |
| const Mesh * | source () const |
| Get source of event. | |
| Mesh * | source () |
| Get source of event. | |
| const T * | source () const |
| Get source of event casted (using dynamic_cast) to given type T. | |
| T * | source () |
| Get source of event casted (using dynamic_cast) to given type T. | |
| FlagsType | flags () const |
| Get event's flags. | |
| FlagsType | flagsWithout (FlagsType flagsToRemove) const |
Get event's flags with excluded flagsToRemove. | |
| bool | hasAllFlags (FlagsType flags) const |
Check if given all of flags are set. | |
| bool | hasAnyFlag (FlagsType flags) const |
Check if one of given flags are set. | |
| EventWithSourceAndFlags (Mesh *source, FlagsType flags=0) | |
| Construct event. | |
| virtual | ~EventWithSourceAndFlags () |
| Virtual destructor for eventual subclassing. | |
Store information about event connected with mesh.
Subclasses of this can contains additional information about specific type of event.
Event flags (which describe event properties).
|
inline |
|
inline |