mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:37:36 +00:00
Base+Manpages: Add basic GML documentation
First draft of GML documentation, just to get things started.
This commit is contained in:
parent
d01d754b83
commit
58a865f349
51 changed files with 1242 additions and 0 deletions
50
Base/usr/share/man/man5/GML-Widget.md
Normal file
50
Base/usr/share/man/man5/GML-Widget.md
Normal file
|
@ -0,0 +1,50 @@
|
|||
# Widget
|
||||
|
||||
Defines a GUI widget.
|
||||
|
||||
```gml
|
||||
@GUI::Widget {
|
||||
fixed_width: 250
|
||||
fixed_height: 215
|
||||
fill_with_background_color: true
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Registered Properties
|
||||
|
||||
| Property | Type | Possible values | Description |
|
||||
|-----------------------------|-------------|----------------------------------------------------|------------------------------------------------|
|
||||
| x | int | | |
|
||||
| y | int | | |
|
||||
| visible | bool | | |
|
||||
| focused | bool | | |
|
||||
| enabled | bool | | |
|
||||
| tooltip | string | | |
|
||||
| min_size | size | | |
|
||||
| max_size | size | | |
|
||||
| width | int | | |
|
||||
| height | int | | |
|
||||
| min_width | int | | |
|
||||
| min_height | int | | |
|
||||
| max_width | int | | |
|
||||
| max_height | int | | |
|
||||
| fixed_width | int | | |
|
||||
| fixed_height | int | | |
|
||||
| fixed_size | size | | |
|
||||
| shrink_to_fit | bool | | |
|
||||
| font | string | | |
|
||||
| font_size | int | | |
|
||||
| font_weight | font_weight | | |
|
||||
| font_type | enum | FixedWidth, Normal | |
|
||||
| foreground_color | color | | |
|
||||
| foreground_role | string | | |
|
||||
| background_color | color | | |
|
||||
| background_role | string | | |
|
||||
| fill_width_background_color | bool | | |
|
||||
| layout | widget | @GUI::VerticalBoxLayout, @GUI::HorizontalBoxLayout | |
|
||||
| relative_rect | rect | | |
|
||||
| focus_policy | enum | ClickFocus, NoFocus, TabFocus, StrongFocus | |
|
||||
| margins | | | |
|
Loading…
Add table
Add a link
Reference in a new issue