1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +00:00

LibWeb: Add various window transformation methods

This commit is contained in:
auipc 2024-02-21 04:17:27 -05:00 committed by Sam Atkins
parent 81d1b129f7
commit 6a662e0d43
3 changed files with 68 additions and 0 deletions

View file

@ -68,6 +68,11 @@ interface Window : EventTarget {
[SameObject, Replaceable] readonly attribute Screen screen;
[SameObject, Replaceable] readonly attribute VisualViewport? visualViewport;
undefined moveTo(long x, long y);
undefined moveBy(long x, long y);
undefined resizeTo(long x, long y);
undefined resizeBy(long x, long y);
// viewport
[Replaceable] readonly attribute long innerWidth;
[Replaceable] readonly attribute long innerHeight;