Button.setCanShrink

Sets whether the button size can be smaller than the natural size of its contents.

For text buttons, setting can_shrink to true will ellipsize the label.

For icons and custom children, this function has no effect.

class Button
void
setCanShrink
()

Parameters

canShrink bool

whether the button can shrink