#define TRACE
#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/forms/trace_form>
#include <xtd/diagnostics/trace>
class form1 :
public form {
public:
form1() {
text(
"Mouse events example");
click += [&] {
};
double_click += [&] {
};
};
xtd::diagnostics::trace::write_line(
"mouse_double_click={{button={}, clicks={}, delta={}, location=[{}], modifier_keys=[{}]}}", e.button(), e.clicks(), e.delta(), e.location(), modifier_keys());
};
};
mouse_enter += [&] {
};
xtd::diagnostics::trace::write_line(
"mouse_horizontal_wheel={{button={}, clicks={}, delta={}, location=[{}], modifier_keys=[{}]}}",
e.button(),
e.clicks(),
e.delta(),
e.location(), modifier_keys());
};
mouse_leave += [&] {
};
};
};
};
}
};
auto main() -> int {
}
static void write_line()
Writes a line terminator to the trace listeners in the listeners collection.
Definition trace.h:358
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10