wxPlatformDependent Class Reference

#include <platform.h>

Inheritance diagram for wxPlatformDependent:

CamPlatformDependent List of all members.

Public Member Functions

virtual void InitWindow (wxWindow *pwxWindow)
virtual void FixUpdate (wxWindow *pwxWindow, bool flush=true)
virtual void ParseGtkRcString (char *rcstring)
virtual void SetGtkWidgetName (wxWindow *pwxWindow, char *name)
virtual void RealYield ()
 DECLARE_DYNAMIC_CLASS (wxPlatformDependent)

Static Public Member Functions

static bool Init (wxClassInfo *pClassInfo=NULL)
static void DeInit ()
static wxPlatformDependentGet ()

Protected Member Functions

virtual void Initialise ()
virtual void Deinitialise ()

Static Private Attributes

static wxPlatformDependents_PlatformDependent = NULL

Detailed Description

Definition at line 17 of file platform.h.


Member Function Documentation

wxPlatformDependent::DECLARE_DYNAMIC_CLASS wxPlatformDependent   ) 
 

Reimplemented in CamPlatformDependent.

void wxPlatformDependent::DeInit  )  [static]
 

Definition at line 35 of file platform.cpp.

00036 {
00037     wxASSERT(s_PlatformDependent != NULL);
00038     Get()->Deinitialise();
00039     delete (s_PlatformDependent);
00040     s_PlatformDependent = NULL;
00041 }

virtual void wxPlatformDependent::Deinitialise  )  [inline, protected, virtual]
 

Definition at line 32 of file platform.h.

00032 {} // To override

void wxPlatformDependent::FixUpdate wxWindow *  pwxWindow,
bool  flush = true
[virtual]
 

Definition at line 45 of file platform.cpp.

00046 {
00047 #if defined( __WXGTK__ )
00048     // On GTK, in 2.6.3 and predecessor, wxWindow::Update does not update the window
00049     // where m_window is NULL, and thus misses native controls. We thus do it properly
00050     // here - we assume the patch to fix this will be taken in 2.6.4
00051     // This routine should be called after "update"
00052 #if !wxCHECK_VERSION(2,6,4)
00053     // Update this one
00054     if (pwxWindow && pwxWindow->m_widget && pwxWindow->m_widget->window)
00055         gdk_window_process_updates( pwxWindow->m_widget->window, FALSE );
00056     // now recurse through children
00057     // Now process children if any
00058     wxWindowList::Node * pNode = pwxWindow->GetChildren().GetFirst();
00059     while (pNode)
00060     {
00061         FixUpdate(pNode->GetData(), false);
00062         pNode = pNode->GetNext();
00063     }
00064     if (flush)
00065         gdk_flush();
00066 #endif
00067 #endif
00068     return;
00069 }

static wxPlatformDependent* wxPlatformDependent::Get  )  [inline, static]
 

Definition at line 28 of file platform.h.

00028 {return s_PlatformDependent;}

bool wxPlatformDependent::Init wxClassInfo *  pClassInfo = NULL  )  [static]
 

Definition at line 19 of file platform.cpp.

00020 {
00021     if (!pClassInfo)
00022         pClassInfo = CLASSINFO(wxPlatformDependent);
00023     wxASSERT(pClassInfo != NULL);
00024     wxASSERT(pClassInfo->IsKindOf(CLASSINFO(wxPlatformDependent)));
00025     wxASSERT(s_PlatformDependent == NULL);
00026     s_PlatformDependent = (wxPlatformDependent *) pClassInfo->CreateObject();
00027     wxASSERT(s_PlatformDependent != NULL);
00028     if (!s_PlatformDependent) return false;
00029 
00030     Get()->Initialise();
00031     return true;
00032 }

virtual void wxPlatformDependent::Initialise  )  [inline, protected, virtual]
 

Reimplemented in CamPlatformDependent.

Definition at line 31 of file platform.h.

00031 {} // To override

virtual void wxPlatformDependent::InitWindow wxWindow *  pwxWindow  )  [inline, virtual]
 

Reimplemented in CamPlatformDependent.

Definition at line 35 of file platform.h.

00035 {} // To override

void wxPlatformDependent::ParseGtkRcString char *  rcstring  )  [virtual]
 

Definition at line 72 of file platform.cpp.

00073 {
00074     gtk_rc_parse_string(rcstring);
00075     return;
00076 }

void wxPlatformDependent::RealYield  )  [virtual]
 

Definition at line 86 of file platform.cpp.

00087 {
00088 #if defined( __WXGTK__ )
00089     int i=0;
00090     do
00091     {
00092         gdk_flush();
00093         ::wxYield();
00094     } while (gtk_events_pending() && (i++<10));
00095 #else
00096     ::wxYield();
00097 #endif
00098 }

void wxPlatformDependent::SetGtkWidgetName wxWindow *  pwxWindow,
char *  name
[virtual]
 

Definition at line 78 of file platform.cpp.

00079 {
00080     gtk_widget_set_name(pwxWindow->m_widget, name);
00081     return;
00082 }


Member Data Documentation

wxPlatformDependent * wxPlatformDependent::s_PlatformDependent = NULL [static, private]
 

Definition at line 25 of file platform.h.


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