Widget.getScaleFactor

Retrieves the internal scale factor that maps from window coordinates to the actual device pixels. On traditional systems this is 1, on high density outputs, it can be a higher value (typically 2).

See Window.getScaleFactor.

class Widget
int
getScaleFactor
()

Return Value

Type: int

the scale factor for widget

Meta

Since

3.10