DVUI

windowNaturalScale

The natural scale is how many pixels per natural pixel. Useful for converting between user input and subwindow size/position. See windowRect.

Only valid between Window.beginand Window.end.

Source

Implementation

#
pub fn windowNaturalScale() f32 {
    return currentWindow().natural_scale;
}