panel.frame

Module for [Frame] class

Types 3

The #PanelFrame is a widget containing panels to display in an area. The widgets are added internally in an adw.tab_view.TabView to display them one at a time like in a stack.

A #PanelFrame can also have a header widget that will be displayed above the panels.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Frame self() nothrowReturns `this`, for use in `with` statements.
FrameGidBuilder builder() static nothrowGet builder for [panel.frame.Frame] Returns: New builder object
bool closeable() @property nothrow
bool empty() @property nothrow
gtk.widget.Widget placeholder() @property nothrow
void placeholder(gtk.widget.Widget propval) @property nothrow
panel.widget.Widget visibleChild() @property nothrow
void visibleChild(panel.widget.Widget propval) @property nothrow
void add(panel.widget.Widget panel) nothrowAdds a widget to the frame.
void addBefore(panel.widget.Widget panel, panel.widget.Widget sibling) nothrowAdd panel before sibling in the #PanelFrame.
bool getCloseable() nothrowTells if the panel frame is closeable. Returns: true if the panel frame is closeable.
bool getEmpty() nothrowTells if the panel frame is empty. Returns: true if the panel is empty.
panel.frame_header.FrameHeader getHeader() nothrowGets the header for the frame. Returns: a #PanelFrameHeader or null
uint getNPages() nothrowGets the number of pages in the panel frame. Returns: The number of pages.
panel.widget.Widget getPage(uint n) nothrowGets the page with the given index, if any.
gtk.selection_model.SelectionModel getPages() nothrowGet the pages for the frame. Returns: a #GtkSelectionModel
gtk.widget.Widget getPlaceholder() nothrowGets the placeholder widget, if any. Returns: a #GtkWidget or null
panel.position.Position getPosition() nothrowGets the #PanelPosition for the frame. Returns: a #PanelPosition
int getRequestedSize() nothrowGets the requested size for the panel frame. Returns: the requested size.
panel.widget.Widget getVisibleChild() nothrowGets the widget of the currently visible child. Returns: a #PanelWidget or null
void remove(panel.widget.Widget panel) nothrowRemoves a widget from the frame.
void setChildPinned(panel.widget.Widget child, bool pinned) nothrowSet pinned state of child.
void setHeader(panel.frame_header.FrameHeader header = null) nothrowSets the header for the frame, such as a #PanelFrameSwitcher.
void setPlaceholder(gtk.widget.Widget placeholder = null) nothrowSets the placeholder widget for the frame.
void setRequestedSize(int requestedSize) nothrowSets the requested size for the panel frame.
void setVisibleChild(panel.widget.Widget widget) nothrowSets the current page to the child specified in widget.
gulong connectAdoptWidget(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : panel.widget.Widget))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : panel.frame.Frame))) && Parameters!T.length < 3) nothrowConnect to `AdoptWidget` signal.
gulong connectPageClosed(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : panel.widget.Widget))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : panel.frame.Frame))) && Parameters!T.length < 3) nothrowConnect to `PageClosed` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Create a new #PanelFrame. Returns: a newly created #PanelFrame object.

Fluent builder for panel.frame.Frame

Methods
Frame build() nothrowCreate object from builder. Returns: New object