Expand description
Widget types and styling.
Structs§
Enums§
- Dock
- WinForms-style dock — which edge(s) the widget attaches to inside its parent.
- Focus
Style - How a focused widget shows its focus indicator.
- Units
- A size value — either a fixed pixel amount, a CSS-style percentage of the
parent’s own resolved content size (0.0–100.0), or
Auto(size to content/available space, this crate’s original behaviour). - Widget
Kind
Functions§
- button
- inv_
slot - An inventory-slot decoration (icon + stack-count overlay) for
item_id(empty string = empty slot) withcountitems. Purely decorative — real drag-and-drop still goes through the vanillaSlotthis overlays. - item_
slot - label
- mc_
image - panel
- scroll_
view - A vertically scrolling column: clips its children, scrolls them by
Widget::scroll_yand draws a scrollbar when they overflow — WPF’sScrollVieweraround aStackPanel. Give it a fixed (or flex) height. - spacer