Files
GDevelop/IDE/SplashScreen.h
T
Florian Rival 741e1d3db6 Added licenses.
2014-06-30 23:07:33 +02:00

41 lines
1.1 KiB
C++

/*
* Game Develop IDE
* Copyright 2008-2014 Florian Rival (Florian.Rival@gmail.com). All rights reserved.
* This project is released under the GNU General Public License.
*/
#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