| 70 | return JS_NewInt32(ctx, 0); |
| 71 | } |
| 72 | JSValue ScWindow::y_set(JSContext* ctx, JSValue thisVal, JSValue value) |
| 73 | { |
| 74 | JS_UNPACK_INT32(valueInt, ctx, value); |
| 75 | |
| 76 | auto w = GetWindow(thisVal); |
| 77 | if (w != nullptr) |
| 78 | { |
| 79 | WindowSetPosition(*w, { w->windowPos.x, valueInt }); |
| 80 | } |
| 81 | return JS_UNDEFINED; |
| 82 | } |
| 83 | JSValue ScWindow::width_get(JSContext* ctx, JSValue thisVal) |
| 84 | { |
| 85 | auto w = GetWindow(thisVal); |
nothing calls this directly
no test coverage detected