awtk/tests/log_change_events.inc

16 lines
276 B
PHP
Raw Normal View History

2018-11-08 17:12:40 +08:00
#include <string>
using std::string;
static string s_log;
static ret_t on_change_events(void* ctx, event_t* e) {
if (e->type == EVT_VALUE_WILL_CHANGE) {
s_log += "will_change;";
}
if (e->type == EVT_VALUE_CHANGED) {
s_log += "change;";
}
return RET_OK;
}