See: Description
| Interface | Description |
|---|---|
| Icon |
A square icon for a widget such as a button.
|
| Class | Description |
|---|---|
| ItemIcon |
An icon that draws an item stack.
|
| TextureIcon |
An icon that draws a texture.
|
For example, you can attach an icon to a button:
// This is a button with an apple item as the icon:
WButton button = new WButton(new ItemIcon(new ItemStack(Items.APPLE)), new LiteralText("Apple button"));