getPreferredSize

abstract fun getPreferredSize(uiPreferredWidth: Float, uiPreferredHeight: Float): Size

Returns the preferred size for the specified button dimensions.

Return

The preferred size for the specified dimensions.

Parameters

uiPreferredWidth
    Preferred width of the button under the regular conditions
    (plain rectangular button).
uiPreferredHeight
    Preferred width of the button under the regular conditions
    (plain rectangular button).