X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..850e47aa3c20c22ff650e80e92e7795a66431863:/interface/wx/splash.h?ds=sidebyside diff --git a/interface/wx/splash.h b/interface/wx/splash.h index ae408f6bb0..ecbe73ee91 100644 --- a/interface/wx/splash.h +++ b/interface/wx/splash.h @@ -8,23 +8,22 @@ /** @class wxSplashScreen - @wxheader{splash.h} wxSplashScreen shows a window with a thin border, displaying a bitmap - describing your - application. Show it in application initialisation, and then either explicitly - destroy + describing your application. + + Show it in application initialisation, and then either explicitly destroy it or let it time-out. Example usage: @code - wxBitmap bitmap; + wxBitmap bitmap; if (bitmap.LoadFile("splash16.png", wxBITMAP_TYPE_PNG)) { wxSplashScreen* splash = new wxSplashScreen(bitmap, wxSPLASH_CENTRE_ON_SCREEN|wxSPLASH_TIMEOUT, - 6000, @NULL, -1, wxDefaultPosition, wxDefaultSize, + 6000, NULL, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxSTAY_ON_TOP); } wxYield(); @@ -38,14 +37,15 @@ class wxSplashScreen : public wxFrame public: /** Construct the splash screen passing a bitmap, a style, a timeout, a window id, - optional position - and size, and a window style. + optional position and size, and a window style. + @a splashStyle is a bitlist of some of the following: - wxSPLASH_CENTRE_ON_PARENT - wxSPLASH_CENTRE_ON_SCREEN - wxSPLASH_NO_CENTRE - wxSPLASH_TIMEOUT - wxSPLASH_NO_TIMEOUT + - wxSPLASH_CENTRE_ON_PARENT + - wxSPLASH_CENTRE_ON_SCREEN + - wxSPLASH_NO_CENTRE + - wxSPLASH_TIMEOUT + - wxSPLASH_NO_TIMEOUT + @a milliseconds is the timeout in milliseconds. */ wxSplashScreen(const wxBitmap& bitmap, long splashStyle, @@ -59,11 +59,10 @@ public: /** Destroys the splash screen. */ - ~wxSplashScreen(); + virtual ~wxSplashScreen(); /** - Returns the splash style (see wxSplashScreen() for - details). + Returns the splash style (see wxSplashScreen() for details). */ long GetSplashStyle() const;