|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
Makes widgets. Each factory appends the new widget to parent, or makes a root when it is null, and never returns null, except createCustom, whose null shows a custom node's fallback.
More...
#include <backend.hpp>
Public Member Functions | |
| IViewBackend (IViewBackend const &)=delete | |
| IViewBackend & | operator= (IViewBackend const &)=delete |
| IViewBackend (IViewBackend &&)=delete | |
| IViewBackend & | operator= (IViewBackend &&)=delete |
| virtual std::unique_ptr< TextWidget > | createText (ContainerWidget *parent)=0 |
| Makes read-only text. | |
| virtual std::unique_ptr< ButtonWidget > | createButton (ContainerWidget *parent)=0 |
| Makes a push button. | |
| virtual std::unique_ptr< TextInputWidget > | createTextInput (ContainerWidget *parent, TextInputMode mode)=0 |
| Makes a text field. | |
| virtual std::unique_ptr< CheckboxWidget > | createCheckbox (ContainerWidget *parent)=0 |
| Makes a check box. | |
| virtual std::unique_ptr< SelectWidget > | createSelect (ContainerWidget *parent, SelectStyle style)=0 |
| Makes a choice of one option. | |
| virtual std::unique_ptr< MenuWidget > | createMenu (ContainerWidget *parent)=0 |
| Makes a command list. | |
| virtual std::unique_ptr< StackWidget > | createStack (ContainerWidget *parent, Axis axis)=0 |
| Makes a stack. | |
| virtual std::unique_ptr< GridWidget > | createGrid (ContainerWidget *parent)=0 |
| Makes a grid. | |
| virtual std::unique_ptr< SpacerWidget > | createSpacer (ContainerWidget *parent)=0 |
| Makes empty space. | |
| virtual std::unique_ptr< PanelWidget > | createPanel (ContainerWidget *parent)=0 |
| Makes a titled frame. | |
| virtual std::unique_ptr< ScrollWidget > | createScroll (ContainerWidget *parent, Axis axis)=0 |
| Makes a scroll area. | |
| virtual std::unique_ptr< SlotWidget > | createSlot (ContainerWidget *parent)=0 |
| Makes a slot. | |
| virtual std::unique_ptr< TabsWidget > | createTabs (ContainerWidget *parent)=0 |
| Makes a tab bar. | |
| virtual std::unique_ptr< DialogWidget > | createDialog (ContainerWidget *parent)=0 |
| Makes a modal overlay. | |
| virtual std::unique_ptr< ToastWidget > | createToast (ContainerWidget *parent)=0 |
| Makes a transient message. | |
| virtual std::unique_ptr< BusyWidget > | createBusy (ContainerWidget *parent)=0 |
| Makes a progress indicator. | |
| virtual std::unique_ptr< TableWidget > | createTable (ContainerWidget *parent)=0 |
| Makes a table. | |
| virtual std::unique_ptr< DateTimeInputWidget > | createDateTimeInput (ContainerWidget *parent, DateMode mode, int offsetMinutes)=0 |
| Makes a date or date-and-time field. | |
| virtual std::unique_ptr< SliderWidget > | createSlider (ContainerWidget *parent)=0 |
| Makes a slider. | |
| virtual std::unique_ptr< FilePickerWidget > | createFilePicker (ContainerWidget *parent, FilePickerMode mode)=0 |
| Makes a file path field. | |
| virtual std::unique_ptr< BannerWidget > | createBanner (ContainerWidget *parent)=0 |
| Makes a banner. | |
| virtual std::unique_ptr< BadgeWidget > | createBadge (ContainerWidget *parent)=0 |
| Makes a badge. | |
| virtual std::unique_ptr< ProgressWidget > | createProgress (ContainerWidget *parent)=0 |
| Makes a progress bar. | |
| virtual std::unique_ptr< StepsWidget > | createSteps (ContainerWidget *parent)=0 |
| Makes a steps indicator. | |
| virtual std::unique_ptr< KeyValueWidget > | createKeyValue (ContainerWidget *parent)=0 |
| Makes a key-value list. | |
| virtual std::unique_ptr< EmptyStateWidget > | createEmptyState (ContainerWidget *parent)=0 |
| Makes an empty state. | |
| virtual std::unique_ptr< DrawerWidget > | createDrawer (ContainerWidget *parent, Side side)=0 |
| Makes a drawer. | |
| virtual std::unique_ptr< SplitterWidget > | createSplitter (ContainerWidget *parent, Axis axis)=0 |
| Makes a splitter. | |
| virtual std::unique_ptr< CollapsibleWidget > | createCollapsible (ContainerWidget *parent)=0 |
| Makes a collapsible section. | |
| virtual std::unique_ptr< DropZoneWidget > | createDropZone (ContainerWidget *parent)=0 |
| Makes a drop zone. | |
| virtual std::unique_ptr< CustomWidget > | createCustom (ContainerWidget *parent, CustomRequest const &request) |
| Loads the component a custom node names, if this backend can. The only factory that may return null: null means "not loaded", and the mount shows the node's fallback instead. A backend that loads no components keeps this default. | |
Makes widgets. Each factory appends the new widget to parent, or makes a root when it is null, and never returns null, except createCustom, whose null shows a custom node's fallback.
Definition at line 810 of file backend.hpp.
|
nodiscardpure virtual |
Makes read-only text.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a push button.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a text field.
| parent | The container to append to, or null for a root. |
| mode | Single-line, multiline or password. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a check box.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a choice of one option.
| parent | The container to append to, or null for a root. |
| style | Dropdown or radio. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a command list.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a stack.
| parent | The container to append to, or null for a root. |
| axis | Vertical (a column) or horizontal (a row). |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a grid.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes empty space.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a titled frame.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a scroll area.
| parent | The container to append to, or null for a root. |
| axis | The scroll direction. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a slot.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a tab bar.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a modal overlay.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a transient message.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a progress indicator.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a table.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a date or date-and-time field.
| parent | The container to append to, or null for a root. |
| mode | Date, or date and time. |
| offsetMinutes | The display zone's offset from UTC. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a slider.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a file path field.
| parent | The container to append to, or null for a root. |
| mode | Open or save. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a banner.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a badge.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a progress bar.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a steps indicator.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a key-value list.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes an empty state.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a drawer.
| parent | The container to append to, or null for a root. |
| side | The edge it slides in from. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a splitter.
| parent | The container to append to, or null for a root. |
| axis | The axis its panes are laid out along. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a collapsible section.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
nodiscardpure virtual |
Makes a drop zone.
| parent | The container to append to, or null for a root. |
Implemented in morph::qt_quick::Backend, morph::tui::Backend, and morph::ui::testing::RecordingBackend.
|
inlinenodiscardvirtual |
Loads the component a custom node names, if this backend can. The only factory that may return null: null means "not loaded", and the mount shows the node's fallback instead. A backend that loads no components keeps this default.
| parent | The container to append it to; null makes a root. |
| request | The component, the props the document declares and the host component's lowest version. |
Reimplemented in morph::qt_quick::Backend, and morph::ui::testing::RecordingBackend.
Definition at line 988 of file backend.hpp.