mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:17:35 +00:00
Base: Add manpages for new layout system
This is far from explaining all implications of the new layout system, but it covers the basics.
This commit is contained in:
parent
1d6d074536
commit
a78f84645c
5 changed files with 85 additions and 38 deletions
|
@ -6,21 +6,29 @@ GML Scrollable Container Widget
|
|||
|
||||
Defines a GUI scrollable container widget.
|
||||
|
||||
Unlike other container widgets, this one does not allow multiple child widgets to be added, and thus also does not support setting a layout.
|
||||
|
||||
## Synopsis
|
||||
|
||||
`@GUI::ScrollableContainerWidget`
|
||||
|
||||
Content declared as `content_widget` property.
|
||||
|
||||
## Examples
|
||||
|
||||
```gml
|
||||
@GUI::ScrollableContainerWidget {
|
||||
|
||||
content_widget: @GUI::Widget {
|
||||
[...]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Registered Properties
|
||||
|
||||
| Property | Type | Possible values | Description |
|
||||
|------------------------------------|------|-----------------|---------------------------------------------|
|
||||
| scrollbars_enabled | bool | true or false | Status of scrollbar |
|
||||
| should_hide_unnecessary_scrollbars | bool | true or false | Whether to hide scrollbars when unnecessary |
|
||||
| Property | Type | Possible values | Description |
|
||||
|------------------------------------|---------------|------------------------|---------------------------------------------|
|
||||
| ~~layout~~ | | none | Does not take layout |
|
||||
| scrollbars_enabled | bool | true or false | Status of scrollbar |
|
||||
| should_hide_unnecessary_scrollbars | bool | true or false | Whether to hide scrollbars when unnecessary |
|
||||
| content_widget | widget object | Any Subclass of Widget | The Widget to be displayed in the Container |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue