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;
    bool dock_top_by_default = 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.

bool dock_top_by_default = false

If true, on a fresh profile (no saved imgui.ini layout yet) the ImGui backend docks this window at the top of the main window instead of leaving it floating. Ignored once a saved layout exists, and a no-op on the nanogui backend.

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).