Window Info

Reports the position, size, display and state of a Window operator's window.

Parameters

NameTypeDescription
ResolutionoutputVector 2 IntThe size of what the window shows in pixels of the display, which is the size to render at.
Logical SizeoutputVector 2 IntThe same size in logical pixels, the unit the operating system sizes its windows in.
PositionoutputVector 2 IntWhere the top left corner of the window is on the screen.
DPI ScaleoutputFloatHow many pixels of the display one logical pixel is, so 2 on a 200% display.
Refresh RateoutputFloatHow many frames per second the display the window is on can show.
OpenoutputBoolWhether the window is on screen.
FullscreenoutputBoolWhether the window is open and fullscreen.
MinimizedoutputBoolWhether the window is open but minimized.
WindowReferenceThe Window operator to report on. Only Window operators in this graph or a graph inside it can be picked.

The Window Info operator reports what a window actually is: where it is, how big, on which display and whether it is open. This can differ from what the Window operator asks for, because the window can be dragged, resized or closed by hand.

Use it for the resolution. Connect it to the size of the generators at the start of a chain, and everything renders at exactly the size the window shows. Window Info can point at a Window later in the same graph, without a connection running backwards.

While the window is closed or minimized, the position, sizes, scale and refresh rate keep their last known values. Before the window has been open, they are what the Window operator asks for, with a scale of 1 and a refresh rate of 60.

See also Window.

Keywords: resolution, screen size, dpi, scale, refresh rate, monitor, display