Files
GDevelop/IDE/SplashScreen.h
T
Florian c2dbdd4374 Removed useless files.
Adapted to changes in GDL/GDCore.

git-svn-id: svn://localhost@687 8062f311-0dae-4547-b526-b8ab9ac864a5
2012-03-31 16:11:59 +00:00

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