lecui 1.0.0-alpha.20
lecui C++ user interface library
splash.h
1//
2// splash.h - splash screen interface
3//
4// lecui user interface library, part of the liblec library
5// Copyright (c) 2019 Alec Musasa (alecmus at live dot com)
6//
7// Released under the MIT license. For full details see the
8// file LICENSE.txt
9//
10
11#pragma once
12
13#if defined(LECUI_EXPORTS)
14#include "../form.h"
15#else
16#include <liblec/lecui/form.h>
17#endif
18
19namespace liblec {
20 namespace lecui {
23 class lecui_api splash {
24 public:
28
31
45 bool display(int png_resource, bool dpi_aware, std::string& error);
46
48 void remove();
49
50 private:
51 class impl;
52 impl& _d;
53
54 // Default constructor and copying an object of this class are not allowed
55 splash() = delete;
56 splash(const splash&) = delete;
57 splash& operator=(const splash&) = delete;
58 };
59 }
60}
Form base class. The user must inherit from this class and call one of the two constructors from its ...
Definition: form.h:122
Splash screen class. Useful for displaying graphics while app is loading.
Definition: splash.h:23
splash(form &fm)
Constructor.
~splash()
Destructor.
void remove()
Remove splash screen image.
bool display(int png_resource, bool dpi_aware, std::string &error)
Display splash screen image.
Top level namespace for the liblec libraries.
Definition: appearance.h:19