what a tooltip should say about this button right now, or undefined when it has none
Removes all internal references and listeners as well as removes children from the display list.
Do not use a Container after calling destroy.
Optionaloptions: DestroyOptions
Options parameter. A boolean will act as if all options have been set to that value
live-resize the button, for a caller whose own layout reflows on window resize rather
than rebuilding buttons from scratch (Window's own constructor-only sizing is fine
for a fixed dialog; a title screen's responsive row of buttons is not)
Replaces local palette overrides, for semantic tokens or component variants.
Replaces the icon (the old one is removed, not destroyed: icons are the caller's), keeping the
layout. null removes it.
Marks the button as the active choice (the current tool, the open tab), drawn in the
theme's color.selection - a toggle's look without a second widget.
the icon a selected button shows instead, or null to use the one icon in both states
A clickable region with idle/hover/pressed/disabled states, a label, an icon, or both.
Draws over the same
NinePatch/theme machineryWindowalready draws its chrome from - a panel texture if the theme has one, a flat rounded rectangle otherwise - so a button looks like it belongs to the same interface without a game supplying separate art for it.iconalone (notext) is the icon-only button a title screen commonly reaches for - rankings, badges, settings - where a caption would only repeat what the icon already says.setIconswaps the icon later,iconSelectedgives a toggle its second icon, andtooltipcarries the button's explanation for aTooltipHost.Example