klyn.gui.windows.Widget.preferredSizeIncludesContentZoom
method
public preferredSizeIncludesContentZoom() as Boolean:
Description

Indicates whether resolvePreferredWidth() and resolvePreferredHeight() already include the current content zoom.

Layout engines use this extension hook to avoid applying the same zoom twice for widgets whose preferred dimensions are computed dynamically. Custom widgets that override both preferred-size methods to include content zoom should override this method and return true.

if widget.preferredSizeIncludesContentZoom():
print("preferred size is already scaled")