Label

Label小部件用于在Makepad UI框架中显示文本。它包括用于自定义文本外观、对齐方式和填充的属性。

The Label widget is used to display text within the Makepad UI framework. It includes properties for customizing the text appearance, alignment, and padding.

Props

decoratenametypedescription
livedraw_textDrawText定义文字的图形特性,例如字体、大小和颜色。
Defines the drawing properties for the text, such as font, size, and color.
walkwalkWalk确定小部件在其父级中的布局行为
Determines the layout behavior of the widget within its parent.
livealignAlign指定小部件内文本的对齐方式
Specifies the alignment of the text within the widget.
livepaddingPaddingSets the padding around the text, affecting its positioning within the widget.
livetextRcStringMut小部件显示的文本内容。这可以动态更新。
The text content displayed by the widget. This can be dynamically updated.

See DrawText


Event

No events specified for this widget.