mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 13:51:13 +00:00
Test the mouse click
This commit is contained in:
parent
ccb2e23cf5
commit
f4cce26d51
7 changed files with 138 additions and 26 deletions
|
@ -16,7 +16,10 @@ require.extensions['.60'] =
|
|||
var c = native.load(filename);
|
||||
module.exports[c.name()] = function (init_properties) {
|
||||
let comp = c.create(init_properties);
|
||||
let ret = { show() { comp.show() } };
|
||||
let ret = {
|
||||
show() { comp.show() },
|
||||
send_mouse_click(x, y) { comp.send_mouse_click(x, y) }
|
||||
};
|
||||
c.properties().forEach(x => {
|
||||
Object.defineProperty(ret, x, {
|
||||
get() { return comp.get_property(x); },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue