Part.WidthUnits

Values

ValueMeaning
DeviceDependentPixels

Unscaled pixels as they appear on screen.

If you pass 0, it will treat it as a Proportional unit for compatibility with code written against older versions of minigui.

DeviceIndependentPixels

Pixels at the assumed DPI, but will be automatically scaled with the rest of the ui.

ApproximateCharacters

An approximate character count in the currently selected font (at layout time) of the status bar. This will use the x-width (similar to css ch).

Proportional

These take a proportion of the remaining space in the window after all other parts have been assigned. The sum of all proportional parts is then divided by the current item to get the amount of space it uses.

If you pass 0, it will assume that this item takes an average of all remaining proportional space. This is there primarily to provide compatibility with code written against older versions of minigui.

Meta

History

Added September 1, 2023 (dub v11.1)