Class Dock#

Class Documentation#

class Dock#

Widget container allow repositioning of children on the frontend.

Public Functions

Dock(Router &router)#

Dock constructor.

Parameters:

router – Used to establish the frontend connection

virtual ~Dock()#

Dock destructor.

void addChild(std::string_view title, const Widget &widget)#

Add a widget as a panel in the dock layout.

Parameters:
  • title – The title to display on the widget’s panel

  • widget – The widget to add

void addChild(std::string_view title, const Widget &widget, const Widget &relative_to, std::string_view direction = {})#

Add a widget as a panel in the dock layout.

Parameters:
  • title – The title to display on the widget’s panel

  • widget – The widget to add

  • relative_to – Another widget to position relative to

  • direction – One of left, right, above, below, or within