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
FrameGidBuilder builder()Get builder for [panel.frame.Frame] Returns: New builder objectbool closeable() @propertybool empty() @propertygtk.widget.Widget placeholder() @propertyvoid placeholder(gtk.widget.Widget propval) @propertypanel.widget.Widget visibleChild() @propertyvoid visibleChild(panel.widget.Widget propval) @propertyvoid add(panel.widget.Widget panel)Adds a widget to the frame.void addBefore(panel.widget.Widget panel, panel.widget.Widget sibling)Add panel before sibling in the #PanelFrame.bool getCloseable()Tells if the panel frame is closeable. Returns: true if the panel frame is closeable.bool getEmpty()Tells if the panel frame is empty. Returns: true if the panel is empty.panel.frame_header.FrameHeader getHeader()Gets the header for the frame. Returns: a #PanelFrameHeader or nulluint getNPages()Gets the number of pages in the panel frame. Returns: The number of pages.panel.widget.Widget getPage(uint n)Gets the page with the given index, if any.gtk.selection_model.SelectionModel getPages()Get the pages for the frame. Returns: a #GtkSelectionModelgtk.widget.Widget getPlaceholder()Gets the placeholder widget, if any. Returns: a #GtkWidget or nullpanel.position.Position getPosition()Gets the #PanelPosition for the frame. Returns: a #PanelPositionint getRequestedSize()Gets the requested size for the panel frame. Returns: the requested size.panel.widget.Widget getVisibleChild()Gets the widget of the currently visible child. Returns: a #PanelWidget or nullvoid remove(panel.widget.Widget panel)Removes a widget from the frame.void setChildPinned(panel.widget.Widget child, bool pinned)Set pinned state of child.void setHeader(panel.frame_header.FrameHeader header = null)Sets the header for the frame, such as a #PanelFrameSwitcher.void setPlaceholder(gtk.widget.Widget placeholder = null)Sets the placeholder widget for the frame.void setRequestedSize(int requestedSize)Sets the requested size for the panel frame.void setVisibleChild(panel.widget.Widget widget)Sets 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)Connect 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)Connect to `PageClosed` signal.classFrameGidBuilderImpl(T) : gtk.widget.WidgetGidBuilderImpl!T, gtk.orientable.OrientableGidBuilderImpl!T