Files
GDevelop/IDE/SplashScreen.h
T
Florian 9203fab207 Initial import
git-svn-id: svn://localhost@6 8062f311-0dae-4547-b526-b8ab9ac864a5
2010-01-24 19:15:15 +00:00

43 lines
966 B
C++

#ifndef SPLASHSCREEN_H
#define SPLASHSCREEN_H
#ifdef DEBUG
#include "nommgr.h"
#endif
#include <wx/bitmap.h>
#include <wx/dc.h>
#include <wx/timer.h>
#include <wx/frame.h>
#ifdef DEBUG
#endif
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