Module crayon::window

source ·
Expand description

Represents an OpenGL context and the window or environment around it.

Modules

Structs

Functions

Adds a event listener.
Removes a event listener from window.
Returns the ratio between the backing framebuffer resolution and the window size in screen pixels. This is typically one for a normal display and two for a retina display.
Returns the size in points of the client area of the window.
Hides the window if it was visible.
Returns true if this context is the current one in this thread.
Set the context as the active context in this thread.
Returns the position of the lower-left hand corner of the window relative to the lower-left hand corner of the desktop. Note that the lower-left hand corner of the desktop is not necessarily the same as the screen. If the user uses a desktop with multiple monitors, the lower-left hand corner of the desktop is the lower-left hand corner of the monitor at the lower-left of the desktop.
Shows the window if it was hidden.