Window Geometry

Updated: October 26, 2022

A window's geometry is defined by a set of properties that instruct how your window and its contents are displayed. The set of properties that define a window's geometry can be categorized into two groups: display-related and content-related properties.

Display-related properties need to be set with an understanding of the display coordinate system as well as the window hierarchy. The reason is that display-related properties are used to size and place the window on the display. These properties are all relative to its parent window and therefore, you need to know your display and window hierarchy in order to properly set these window properties. Typically it's the parent window (if one exists) that determines how its children will be displayed.

Content-related properties use the source coordinate system and, unlike display-related properties, are generally set by the window itself rather than being set by its parent. These properties influence how the content (source) of your window is interpreted.