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)

There are no comments on this page.
Comments are welcome and encouraged, including disagreement and critique. However, this is not a space for abuse. Disagreement is welcome; personal attacks, harassment, or hate will be removed instantly. This site reflects personal opinions, not universal truths. If you can’t distinguish between the two, this probably isn’t the place for you. The system temporarily stores IP addresses and browser user agents for the purposes of spam prevention, moderation, and safeguarding. This data is automatically removed after fourteen days. Your email address is stored so that replies can be sent to your email address.
Comments powered by BalfComment