wxAdvSplashScreen Class Reference

#include <advsplash.h>

List of all members.

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
wxAdvSplashScreenWindowGetSplashWindow () const
int GetTimeout () const

Protected Attributes

wxAdvSplashScreenWindowm_window
long m_splashStyle
int m_milliseconds
wxTimer m_timer


Detailed Description

Definition at line 20 of file advsplash.h.


Constructor & Destructor Documentation

wxAdvSplashScreen::wxAdvSplashScreen  )  [inline]
 

Definition at line 24 of file advsplash.h.

00024 {}

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
 

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 }

wxAdvSplashScreen::~wxAdvSplashScreen  ) 
 

Definition at line 78 of file advsplash.cpp.

00079 {
00080     m_timer.Stop();
00081 }


Member Function Documentation

long wxAdvSplashScreen::GetSplashStyle  )  const [inline]
 

Definition at line 35 of file advsplash.h.

00035 { return m_splashStyle; }

wxAdvSplashScreenWindow* wxAdvSplashScreen::GetSplashWindow  )  const [inline]
 

Definition at line 36 of file advsplash.h.

00036 { return m_window; }

int wxAdvSplashScreen::GetTimeout  )  const [inline]
 

Definition at line 37 of file advsplash.h.

00037 { return m_milliseconds; }

void wxAdvSplashScreen::OnCloseWindow wxCloseEvent &  event  ) 
 

void wxAdvSplashScreen::OnNotify wxTimerEvent &  event  ) 
 


Member Data Documentation

int wxAdvSplashScreen::m_milliseconds [protected]
 

Definition at line 42 of file advsplash.h.

long wxAdvSplashScreen::m_splashStyle [protected]
 

Definition at line 41 of file advsplash.h.

wxTimer wxAdvSplashScreen::m_timer [protected]
 

Definition at line 43 of file advsplash.h.

wxAdvSplashScreenWindow* wxAdvSplashScreen::m_window [protected]
 

Definition at line 40 of file advsplash.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:03:12 2007 for Camelot by  doxygen 1.4.4