mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
31 lines
962 B
Markdown
31 lines
962 B
Markdown
|
|
## Name
|
||
|
|
|
||
|
|
GML Label Widget
|
||
|
|
|
||
|
|
## Description
|
||
|
|
|
||
|
|
Defines a GUI label widget.
|
||
|
|
|
||
|
|
## Synopsis
|
||
|
|
|
||
|
|
`@GUI::Label`
|
||
|
|
|
||
|
|
## Examples
|
||
|
|
|
||
|
|
```
|
||
|
|
@GUI::Label {
|
||
|
|
text: "Copying files..."
|
||
|
|
text_alignment: "CenterLeft"
|
||
|
|
font_weight: "Bold"
|
||
|
|
fixed_height: 32
|
||
|
|
name: "files_copied_label"
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
## Registered Properties
|
||
|
|
|
||
|
|
| Property | Type | Possible values | Description |
|
||
|
|
|-----------------|----------------|-----------------------------------------------------------------------------|----------------------------|
|
||
|
|
| text_alignment | text_alignment | Center, CenterLeft, CenterRight, TopLeft, TopRight, BottomLeft, BottomRight | Sets alignment of the text |
|
||
|
|
| text_wrapping | text_wrapping | | | | |
|