Back to Serenity

ScrollableContainerWidget

Base/usr/share/man/man5/GML/Widget/ScrollableContainerWidget.md

latest1.2 KB
Original Source

Name

GML Scrollable Container Widget

Description

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

PropertyTypePossible valuesDescription
layoutnoneDoes not take layout
scrollbars_enabledbooltrue or falseStatus of scrollbar
should_hide_unnecessary_scrollbarsbooltrue or falseWhether to hide scrollbars when unnecessary
content_widgetwidget objectAny Subclass of WidgetThe Widget to be displayed in the Container