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

A file path, typed or chosen in the platform's file dialog. More...

#include <view.hpp>

Public Attributes

Prop< std::string > path
 The path shown.
FilePickerMode mode = FilePickerMode::Open
 Open an existing file or name one to save; set once.
std::function< void(std::string)> onPicked
 Called with the path the user picked.
FieldState field {}
 Read-only, required, errors and stale.
Common common {}
 Visibility, enablement, layout, drag-and-drop.

Detailed Description

A file path, typed or chosen in the platform's file dialog.

Definition at line 956 of file view.hpp.

Member Data Documentation

◆ path

Prop<std::string> morph::ui::FilePicker::path

The path shown.

Definition at line 958 of file view.hpp.

◆ mode

FilePickerMode morph::ui::FilePicker::mode = FilePickerMode::Open

Open an existing file or name one to save; set once.

Definition at line 960 of file view.hpp.

◆ onPicked

std::function<void(std::string)> morph::ui::FilePicker::onPicked

Called with the path the user picked.

Definition at line 962 of file view.hpp.

◆ field

FieldState morph::ui::FilePicker::field {}

Read-only, required, errors and stale.

Definition at line 964 of file view.hpp.

◆ common

Common morph::ui::FilePicker::common {}

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

Definition at line 966 of file view.hpp.


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