mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 02:25:52 -04:00
c2dbdd4374
Adapted to changes in GDL/GDCore. git-svn-id: svn://localhost@687 8062f311-0dae-4547-b526-b8ab9ac864a5
35 lines
895 B
C++
35 lines
895 B
C++
#ifndef SPLASHSCREEN_H
|
|
#define SPLASHSCREEN_H
|
|
|
|
#include <wx/bitmap.h>
|
|
#include <wx/dc.h>
|
|
#include <wx/timer.h>
|
|
#include <wx/frame.h>
|
|
|
|
class SplashScreen : public wxFrame
|
|
{
|
|
private:
|
|
wxBitmap m_label;
|
|
wxRegion r;
|
|
wxTimer m_timer;
|
|
public:
|
|
// A value of -1 for timeout makes it stay forever (you need to close it manually)
|
|
SplashScreen(wxBitmap &label, long timeout, wxWindow *parent, wxWindowID id, long style = wxSTAY_ON_TOP | wxNO_BORDER | wxFRAME_NO_TASKBAR | wxFRAME_SHAPED);
|
|
~SplashScreen();
|
|
|
|
bool timeUp;
|
|
|
|
private:
|
|
void DoPaint(wxDC &dc);
|
|
void OnPaint(wxPaintEvent &);
|
|
void OnEraseBackground(wxEraseEvent &);
|
|
void OnTimer(wxTimerEvent &);
|
|
void OnCloseWindow(wxCloseEvent &);
|
|
void OnChar(wxKeyEvent &);
|
|
void OnMouseEvent(wxMouseEvent &event);
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
};
|
|
|
|
#endif // SPLASHSCREEN_H
|