Icon

Icon小部件是一个UI元素,用于显示具有可选背景的图标。它支持各种布局和漫游属性来控制其外观和位置。

The Icon widget is a UI element designed to display an icon with an optional background. It supports various layout and walk properties to control its appearance and positioning.

Props

decoratenametypedescription
redrawdraw_bgDrawQuadDraws the background of the icon.
livedraw_iconDrawIconRenders the icon.
liveicon_walkWalkDefines the walk properties specifically for the icon.
walkwalkWalkDefines the walk properties for the entire widget.
layoutlayoutLayoutDefines the layout properties for the widget.

See DrawIcon

Event

This widget does not define any specific events.