mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-03 04:27:44 +08:00
16 lines
276 B
PHP
16 lines
276 B
PHP
|
|
||
|
#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;
|
||
|
}
|