wex v24.10.0
|
Offers a class that allows repeating a function on an event handler (window). More...
#include <wex/core/function-repeat.h>
Public Types | |
typedef std::function< void(wxTimerEvent &) | repeat_t) |
Callback for event action. | |
Public Member Functions | |
function_repeat (const std::string &name, wxEvtHandler *evt, repeat_t t) | |
Constructor. | |
~function_repeat () | |
Destructor. | |
bool | activate (bool start=true) |
Starts or stops repeating. | |
const std::string & | name () const |
Returns name. | |
Offers a class that allows repeating a function on an event handler (window).
wex::function_repeat::function_repeat | ( | const std::string & | name, |
wxEvtHandler * | evt, | ||
repeat_t | t ) |
Constructor.
name | name for the repeater |
evt | where event will be handled |
t | the function to be repeated |
bool wex::function_repeat::activate | ( | bool | start = true | ) |
Starts or stops repeating.
Returns true if action is successful.