docs(dialogs): document interactive helpers

This commit is contained in:
2026-06-18 21:00:51 -05:00
parent c867487ad9
commit aa09ef2a83

View File

@@ -5,7 +5,7 @@ one consistent API on Windows and Linux.
## Features
- Native open, save, folder, and message dialogs
- Native open, save, folder, message, input, and color dialogs
- UTF-8 text clipboard access
- Standard application, user, temporary, and executable paths
- Non-blocking process launch
@@ -52,6 +52,19 @@ if (auto selection = izo::OpenFile(options)) {
izo::RevealInFileManager(selection.paths.front());
}
if (izo::ShowQuestionBox("Delete file?", "This cannot be undone.") ==
izo::MessageResponse::Yes) {
// Delete it.
}
if (auto name = izo::ShowInputBox({"Profile", "Display name:"})) {
// name.value contains the submitted UTF-8 text.
}
if (auto color = izo::PickColor({"Accent color", {32, 128, 255}})) {
// color.color contains the selected RGB channels.
}
auto config = izo::GetKnownPath(izo::KnownPath::Config);
izo::ProcessOptions process;