Etterna
0.74.4
Loading...
Searching...
No Matches
src
arch
LoadingWindow
LoadingWindow.h
1
#ifndef LOADING_WINDOW_H
2
#define LOADING_WINDOW_H
3
4
#include <Etterna/Globals/global.h>
5
6
struct
RageSurface
;
8
class
LoadingWindow
9
{
10
public
:
11
static
auto
Create() ->
LoadingWindow
*;
12
13
virtual
auto
Init() -> std::string {
return
std::string(); }
14
virtual
~LoadingWindow
() =
default
;
15
16
virtual
void
SetText(
const
std::string& str) = 0;
17
virtual
void
SetIcon(
const
RageSurface
* pIcon) {}
18
virtual
void
SetSplash(
const
RageSurface
* pSplash) {}
19
virtual
void
SetProgress(
const
int
progress) { m_progress = progress; }
20
virtual
void
SetTotalWork(
const
int
totalWork) { m_totalWork = totalWork; }
21
virtual
void
SetIndeterminate(
bool
indeterminate)
22
{
23
m_indeterminate = indeterminate;
24
}
25
26
protected
:
27
int
m_progress{};
28
int
m_totalWork{};
29
bool
m_indeterminate{};
30
};
31
32
#endif
LoadingWindow
Opens and displays the loading banner.
Definition
LoadingWindow.h:9
RageSurface
Definition
RageSurface.h:90
Generated by
1.9.8