Skip to content
jeff-h edited this page May 17, 2014 · 1 revision

Window:

// 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();
Clone this wiki locally