| 50 | return JS_NewInt32(ctx, 0); |
| 51 | } |
| 52 | JSValue ScWindow::x_set(JSContext* ctx, JSValue thisVal, JSValue value) |
| 53 | { |
| 54 | JS_UNPACK_INT32(valueInt, ctx, value); |
| 55 | |
| 56 | auto w = GetWindow(thisVal); |
| 57 | if (w != nullptr) |
| 58 | { |
| 59 | WindowSetPosition(*w, { valueInt, w->windowPos.y }); |
| 60 | } |
| 61 | return JS_UNDEFINED; |
| 62 | } |
| 63 | JSValue ScWindow::y_get(JSContext* ctx, JSValue thisVal) |
| 64 | { |
| 65 | auto w = GetWindow(thisVal); |
nothing calls this directly
no test coverage detected