apio
53f8a583dc
Some checks failed
Build and test / build (push) Failing after 1m21s
This commit adds an error-propagating constructor for Action and Function, which makes them usable in the kernel.
23 lines
440 B
C++
23 lines
440 B
C++
/**
|
|
* @file Window.h
|
|
* @author apio (cloudapio.eu)
|
|
* @brief UI window dialogs.
|
|
*
|
|
* @copyright Copyright (c) 2024, the Luna authors.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include <luna/Action.h>
|
|
#include <ui/Window.h>
|
|
|
|
namespace ui
|
|
{
|
|
namespace Dialog
|
|
{
|
|
Result<void> show_message(StringView title, StringView message);
|
|
|
|
Result<void> show_input_dialog(StringView title, StringView message, Function<StringView> callback);
|
|
}
|
|
}
|