]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/splash.h
Added EVT_GRID_EDITOR_CREATED and wxGridEditorCreatedEvent so the user
[wxWidgets.git] / include / wx / generic / splash.h
CommitLineData
3f4fc796
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: splash.h
3// Purpose: Splash screen class
4// Author: Julian Smart
5// Modified by:
6// Created: 28/6/2000
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence:
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma interface "splash.h"
14#endif
15
16#ifndef _WX_SPLASH_H_
17#define _WX_SPLASH_H_
18
19#include "wx/frame.h"
20#include "wx/timer.h"
21
22/*
23 * A window for displaying a splash screen
24 */
25
26#define wxSPLASH_CENTRE_ON_PARENT 0x01
27#define wxSPLASH_CENTRE_ON_SCREEN 0x02
28#define wxSPLASH_NO_CENTRE 0x00
29#define wxSPLASH_TIMEOUT 0x04
30#define wxSPLASH_NO_TIMEOUT 0x00
31
32class WXDLLEXPORT wxSplashScreenWindow;
33
34/*
35 * wxSplashScreen
36 */
37
38class WXDLLEXPORT wxSplashScreen: public wxFrame
39{
40public:
41 wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds, wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSIMPLE_BORDER|wxFRAME_FLOAT_ON_PARENT);
42 ~wxSplashScreen();
43
44 void OnCloseWindow(wxCloseEvent& event);
45 void OnNotify(wxTimerEvent& event);
46
47 long GetSplashStyle() const { return m_splashStyle; }
48 wxSplashScreenWindow* GetSplashWindow() const { return m_window; }
49 int GetTimeout() const { return m_milliseconds; }
50
51protected:
52 wxSplashScreenWindow* m_window;
53 long m_splashStyle;
54 int m_milliseconds;
55 wxTimer m_timer;
56
57DECLARE_EVENT_TABLE()
58};
59
60/*
61 * wxSplashScreenWindow
62 */
63
64class WXDLLEXPORT wxSplashScreenWindow: public wxWindow
65{
66public:
67 wxSplashScreenWindow(const wxBitmap& bitmap, wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER);
68
69 void OnPaint(wxPaintEvent& event);
70 void OnEraseBackground(wxEraseEvent& event);
71 void OnMouseEvent(wxMouseEvent& event);
72 void OnChar(wxKeyEvent& event);
73
74 void SetBitmap(const wxBitmap& bitmap) { m_bitmap = bitmap; }
75 wxBitmap& GetBitmap() { return m_bitmap; }
76
77protected:
78 wxBitmap m_bitmap;
79
80DECLARE_EVENT_TABLE()
81};
82
83
84#endif
85 // _WX_SPLASH_H_