panel.dock
Module for [Dock] class
Types 3
classDock : gtk.widget.Widget
The #PanelDock is a widget designed to contain widgets that can be docked. Use the #PanelDock as the top widget of your dockable UI.
A #PanelDock is divided in 5 areas: panel.types.Area.Top, panel.types.Area.Bottom, panel.types.Area.Start, panel.types.Area.End represent the surrounding areas that can revealed. panel.types.Area.Center represent the main area, that is always displayed and resized depending on the reveal state of the surrounding areas.
It will contain a #PanelDockChild for each of the areas in use, albeit this is done by the widget.
Methods
DockGidBuilder builder() static nothrowGet builder for [panel.dock.Dock] Returns: New builder objectvoid foreachFrame(panel.types.FrameCallback callback) nothrowInvokes a callback for each frame in the dock.bool getCanRevealBottom() nothrowTells if the bottom panel area can be revealed. Returns: whether it can reveal the bottom area or not. If the is no child or the child is empty, will return false.bool getCanRevealEnd() nothrowTells if the end panel area can be revealed. Returns: whether it can reveal the end area or not. If the is no child or the child is empty, will return false.bool getCanRevealStart() nothrowTells if the start panel area can be revealed. Returns: whether it can reveal the start area or not. If the is no child or the child is empty, will return false.bool getCanRevealTop() nothrowTells if the top panel area can be revealed. Returns: whether it can reveal the top area or not. If the is no child or the child is empty, will return false.bool getRevealBottom() nothrowTells if the bottom area is revealed. Returns: The reveal state of the bottom area.bool getRevealEnd() nothrowTells if the end area is revealed. Returns: The reveal state of the end area.bool getRevealStart() nothrowTells if the start area is revealed. Returns: The reveal state of the start area.bool getRevealTop() nothrowTells if the top area is revealed. Returns: The reveal state of the top area.void remove(gtk.widget.Widget widget) nothrowRemoves a widget from the dock. If widget is not a #DockChild, then the closest #DockChild parent is removed.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.dock.Dock)))
&& Parameters!T.length < 3) nothrowConnect to `AdoptWidget` signal.gulong connectCreateFrame(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T : panel.frame.Frame)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : panel.position.Position)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : panel.dock.Dock)))
&& Parameters!T.length < 3) nothrowConnect to `CreateFrame` signal.gulong connectPanelDragBegin(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.dock.Dock)))
&& Parameters!T.length < 3) nothrowConnect to `PanelDragBegin` signal.gulong connectPanelDragEnd(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.dock.Dock)))
&& Parameters!T.length < 3) nothrowConnect to `PanelDragEnd` signal.classDockGidBuilderImpl(T) : gtk.widget.WidgetGidBuilderImpl!T
Fluent builder implementation template for panel.dock.Dock
Methods
T bottomHeight(int propval) nothrowT endWidth(int propval) nothrowT revealBottom(bool propval) nothrowT revealEnd(bool propval) nothrowT revealStart(bool propval) nothrowT revealTop(bool propval) nothrowT startWidth(int propval) nothrowT topHeight(int propval) nothrowFluent builder for panel.dock.Dock