wxAdvSplashScreenWindow Class Reference

#include <advsplash.h>

List of all members.

Public Member Functions

 wxAdvSplashScreenWindow (const wxBitmap &bitmap, wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxNO_BORDER)
void OnPaint (wxPaintEvent &event)
void OnEraseBackground (wxEraseEvent &event)
void OnMouseEvent (wxMouseEvent &event)
void OnChar (wxKeyEvent &event)
void SetBitmap (const wxBitmap &bitmap)
wxBitmap & GetBitmap ()

Protected Attributes

wxBitmap m_bitmap


Detailed Description

Definition at line 54 of file advsplash.h.


Constructor & Destructor Documentation

wxAdvSplashScreenWindow::wxAdvSplashScreenWindow const wxBitmap &  bitmap,
wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxNO_BORDER
 

Definition at line 107 of file advsplash.cpp.

00107                                                                                                                                                            :
00108     wxWindow(parent, id, pos, size, style)
00109 {
00110     m_bitmap = bitmap;
00111 
00112 #if !defined(__WXGTK__) && wxUSE_PALETTE
00113     bool hiColour = (wxDisplayDepth() >= 16) ;
00114 
00115     if (bitmap.GetPalette() && !hiColour)
00116     {
00117         SetPalette(* bitmap.GetPalette());
00118     }
00119 #endif
00120 
00121 }


Member Function Documentation

wxBitmap& wxAdvSplashScreenWindow::GetBitmap void   )  [inline]
 

Definition at line 65 of file advsplash.h.

00065 { return m_bitmap; }

void wxAdvSplashScreenWindow::OnChar wxKeyEvent &  event  ) 
 

void wxAdvSplashScreenWindow::OnEraseBackground wxEraseEvent &  event  ) 
 

Definition at line 165 of file advsplash.cpp.

00166 {
00167     if (event.GetDC())
00168     {
00169         if (m_bitmap.Ok())
00170         {
00171             wxDrawSplashBitmap(* event.GetDC(), m_bitmap, 0, 0);
00172         }
00173     }
00174     else
00175     {
00176         wxClientDC dc(this);
00177         if (m_bitmap.Ok())
00178         {
00179             wxDrawSplashBitmap(dc, m_bitmap, 0, 0);
00180         }
00181     }
00182 }

void wxAdvSplashScreenWindow::OnMouseEvent wxMouseEvent &  event  ) 
 

Definition at line 184 of file advsplash.cpp.

00185 {
00186     if (event.LeftDown() || event.RightDown())
00187         GetParent()->Close(true);
00188 }

void wxAdvSplashScreenWindow::OnPaint wxPaintEvent &  event  ) 
 

void wxAdvSplashScreenWindow::SetBitmap const wxBitmap &  bitmap  )  [inline]
 

Definition at line 64 of file advsplash.h.

00064 { m_bitmap = bitmap; }


Member Data Documentation

wxBitmap wxAdvSplashScreenWindow::m_bitmap [protected]
 

Definition at line 68 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