#include <advsplash.h>
Public Member Functions | |
wxAdvSplashScreen () | |
wxAdvSplashScreen (const wxBitmap &bitmap, long splashStyle, int milliseconds, wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) | |
~wxAdvSplashScreen () | |
void | OnCloseWindow (wxCloseEvent &event) |
void | OnNotify (wxTimerEvent &event) |
long | GetSplashStyle () const |
wxAdvSplashScreenWindow * | GetSplashWindow () const |
int | GetTimeout () const |
Protected Attributes | |
wxAdvSplashScreenWindow * | m_window |
long | m_splashStyle |
int | m_milliseconds |
wxTimer | m_timer |
Definition at line 20 of file advsplash.h.
|
Definition at line 24 of file advsplash.h.
|
|
Definition at line 36 of file advsplash.cpp. 00037 { 00038 // Do the create here, not as a chained constructor, so the 00039 // RTTI is in place for the Mac which sends events immediately 00040 Create(parent, id, wxEmptyString, wxPoint(0,0), wxSize(100, 100), style); 00041 00042 // At least for GTK+ 2.0, this hint is not available. 00043 #if defined(__WXGTK20__) 00044 #if GTK_CHECK_VERSION(2,2,0) 00045 gtk_window_set_type_hint(GTK_WINDOW(m_widget), 00046 GDK_WINDOW_TYPE_HINT_SPLASHSCREEN); 00047 #endif 00048 #endif 00049 00050 m_window = NULL; 00051 m_splashStyle = splashStyle; 00052 m_milliseconds = milliseconds; 00053 00054 m_window = new wxAdvSplashScreenWindow(bitmap, this, wxID_ANY, pos, size, wxNO_BORDER); 00055 00056 SetClientSize(bitmap.GetWidth()+2, bitmap.GetHeight()+2); 00057 00058 if (m_splashStyle & wxSPLASH_CENTRE_ON_PARENT) 00059 CentreOnParent(); 00060 else if (m_splashStyle & wxSPLASH_CENTRE_ON_SCREEN) 00061 CentreOnScreen(); 00062 00063 if (m_splashStyle & wxSPLASH_TIMEOUT) 00064 { 00065 m_timer.SetOwner(this, wxSPLASH_TIMER_ID); 00066 m_timer.Start(milliseconds, true); 00067 } 00068 00069 Show(true); 00070 m_window->SetFocus(); 00071 #if defined( __WXMSW__ ) || defined(__WXMAC__) 00072 Update(); // Without this, you see a blank screen for an instant 00073 #else 00074 wxYieldIfNeeded(); // Should eliminate this 00075 #endif 00076 }
|
|
Definition at line 78 of file advsplash.cpp. 00079 { 00080 m_timer.Stop(); 00081 }
|
|
Definition at line 35 of file advsplash.h. 00035 { return m_splashStyle; }
|
|
Definition at line 36 of file advsplash.h. 00036 { return m_window; }
|
|
Definition at line 37 of file advsplash.h. 00037 { return m_milliseconds; }
|
|
|
|
|
|
Definition at line 42 of file advsplash.h. |
|
Definition at line 41 of file advsplash.h. |
|
Definition at line 43 of file advsplash.h. |
|
Definition at line 40 of file advsplash.h. |