morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::Tabs Struct Reference

A tab bar over pages. More...

#include <view.hpp>

Public Attributes

std::vector< Tab > tabs
 The pages, in order; set once.
Prop< std::size_t > selected
 The selected page's index; an index past the last page shows none.
std::function< void(std::size_t)> onSelect
 Called with the index the user picked, and with the page still shown when a picked page fails to mount.
Common common {}
 Visibility, enablement, layout, drag-and-drop.

Detailed Description

A tab bar over pages.

Definition at line 682 of file view.hpp.

Member Data Documentation

◆ tabs

std::vector<Tab> morph::ui::Tabs::tabs

The pages, in order; set once.

Definition at line 684 of file view.hpp.

◆ selected

Prop<std::size_t> morph::ui::Tabs::selected

The selected page's index; an index past the last page shows none.

Definition at line 686 of file view.hpp.

◆ onSelect

std::function<void(std::size_t)> morph::ui::Tabs::onSelect

Called with the index the user picked, and with the page still shown when a picked page fails to mount.

Definition at line 688 of file view.hpp.

◆ common

Common morph::ui::Tabs::common {}

Visibility, enablement, layout, drag-and-drop.

Definition at line 690 of file view.hpp.


The documentation for this struct was generated from the following file: