summaryrefslogtreecommitdiffstats
path: root/src/game/client/gui/progress_bar.hh
blob: e4569e875fa124564c8ca402dc4f55df0f7ce229 (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
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2025 Kirill Dmitrievich
// File: progress_bar.hh
// Description: Screen with a progress bar

#ifndef CLIENT_GUI_PROGRESS_BAR_HH
#define CLIENT_GUI_PROGRESS_BAR_HH
#pragma once

using progress_bar_action = void (*)(void);

namespace progress_bar
{
void init(void);
void layout(void);
} // namespace progress_bar

namespace progress_bar
{
void reset(void);
void set_title(std::string_view title);
void set_button(std::string_view text, const progress_bar_action& action);
} // namespace progress_bar

#endif