This repository was archived by the owner on Jan 2, 2025. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 208
Window
jeff-h edited this page May 17, 2014 · 1 revision
// Open a new window macgap.window.open({url:"public/index2.html", width: 400, height: 300}); // Resize window macgap.window.resize({width: 400, height: 200}); // Get the window coordinates macgap.window.getX(); macgap.window.getY(); // Move window (Bottom left is x:0 and y:0) macgap.window.move({x:0, y: 200}); // Toggle fullscreen mode macgap.window.toggleFullscreen(); // Maximize the window macgap.window.maximize(); // Minimize the window macgap.window.minimize(); // Return true if the window is currently maximized and false if it is not var isWindowMaximized = macgap.window.isMaximized(); rtat.net