]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/splash.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxSplashScreen
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
12 wxSplashScreen shows a window with a thin border, displaying a bitmap
14 application. Show it in application initialisation, and then either explicitly
16 it or let it time-out.
22 if (bitmap.LoadFile("splash16.png", wxBITMAP_TYPE_PNG))
24 wxSplashScreen* splash = new wxSplashScreen(bitmap,
25 wxSPLASH_CENTRE_ON_SCREEN|wxSPLASH_TIMEOUT,
26 6000, NULL, -1, wxDefaultPosition, wxDefaultSize,
27 wxBORDER_SIMPLE|wxSTAY_ON_TOP);
35 class wxSplashScreen
: public wxFrame
39 Construct the splash screen passing a bitmap, a style, a timeout, a window id,
41 and size, and a window style.
42 @a splashStyle is a bitlist of some of the following:
43 wxSPLASH_CENTRE_ON_PARENT
44 wxSPLASH_CENTRE_ON_SCREEN
48 @a milliseconds is the timeout in milliseconds.
50 wxSplashScreen(const wxBitmap
& bitmap
, long splashStyle
,
54 const wxPoint
& pos
= wxDefaultPosition
,
55 const wxSize
& size
= wxDefaultSize
,
56 long style
= wxBORDER_SIMPLE
|wxFRAME_NO_TASKBAR
|wxSTAY_ON_TOP
);
59 Destroys the splash screen.
64 Returns the splash style (see wxSplashScreen() for
67 long GetSplashStyle() const;
70 Returns the window used to display the bitmap.
72 wxSplashScreenWindow
* GetSplashWindow() const;
75 Returns the timeout in milliseconds.
77 int GetTimeout() const;
80 Reimplement this event handler if you want to set an application variable on
81 window destruction, for example.
83 void OnCloseWindow(wxCloseEvent
& event
);