Module reference
Graphics/objects/GraphicsWindow module
Functions, objects and constants exposed by the Graphics/objects/GraphicsWindow module.
Object description
Represents a native graphics window created by Graphics::create_window(). Pass the object to Graphics drawing, input, frame, and lifecycle methods.
Availability: ZPE 1.14.11 is the first version to support the GraphicsWindow module object. It is available as new Graphics::GraphicsWindow() and is returned by Graphics::create_window(). Older numeric window handles remain accepted for compatibility.
Properties
The object exposes the following public properties:
title— window title.width— window width in pixels.height— window height in pixels.open— whether the window has not been closed through the Graphics API.
Example
YASS
$window = new Graphics::GraphicsWindow() Graphics::begin_frame($window, "#101018") Graphics::draw_rectangle($window, 0, 0, 0.5, 0.5, "#517") Graphics::end_frame($window) Graphics::close($window)