mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
16 lines
276 B
C++
16 lines
276 B
C++
|
|
#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;
|
|
}
|