DVUI

contentScale

Return current system content scaling. This is separate from pixel scaling (like retina screens), which dvui gets from pixelSize()/windowSize().

This is usually set by the user in their window system settings. It can change if the user changes it (rare), or if a window moves from one monitor to another.

Parameters

#
self:Backend
Backend

Source

Implementation

#
pub fn contentScale(self: Backend) f32 {
    return self.impl.contentScale();
}