blob: 430b4fb2afae4812969bc0a5f13bf894e82f1b9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2025 Kirill Dmitrievich
// File: message_box.hh
// Description: A single message screen
#ifndef CLIENT_GUI_MESSAGE_BOX_HH
#define CLIENT_GUI_MESSAGE_BOX_HH
#pragma once
using message_box_action = void (*)(void);
namespace message_box
{
void init(void);
void layout(void);
void reset(void);
} // namespace message_box
namespace message_box
{
void set_title(std::string_view title);
void set_subtitle(std::string_view subtitle);
void add_button(std::string_view text, const message_box_action& action);
} // namespace message_box
#endif
|