SDL_AddTimer() callback for the hover event. More...
Public Member Functions | |
tlock (bool &locked) | |
~tlock () | |
Private Attributes | |
bool & | locked_ |
SDL_AddTimer() callback for the hover event.
When this callback is called it pushes a new hover event in the event queue.
interval | The time parameter of SDL_AddTimer. |
param | Pointer to a widget that's able to show the tooltip (will be used as a dispatcher). |
Some of the event handling routines can't be called recursively, this due to the fact that they are attached to the pre queue and when the forward an event the pre queue event gets triggered recursively causing infinite recursion.
To prevent that those functions check the lock and exit when the lock is held otherwise grab the lock here.
Definition at line 88 of file distributor.cpp.
|
inline |
Definition at line 91 of file distributor.cpp.
References locked_.
|
inline |
Definition at line 97 of file distributor.cpp.
References locked_.
|
private |
Definition at line 104 of file distributor.cpp.