struct mola::gui::WindowDescription

Overview

Full description of a floating sub-window with tabbed content.

#include <GuiWidgetDescription.h>

struct WindowDescription
{
    // fields

    std::string title;
    std::array<int, 2> position = {5, 700};
    std::array<int, 2> size = {340, 0};
    bool starts_hidden = false;
    std::vector<Tab> tabs;
};

Fields

std::array<int, 2> position = {5, 700}

Initial position hint (pixels from top-left of the parent window).

std::array<int, 2> size = {340, 0}

Initial size hint. height=0 means “auto” (let the toolkit decide).

bool starts_hidden = false

If true, the window starts hidden / collapsed.

std::vector<Tab> tabs

The tabs. If only one tab is provided the backend may omit the tab bar and render the widgets directly (saves vertical space).