#include <platform.h>
Inheritance diagram for wxPlatformDependent:
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 wxPlatformDependent * | Get () |
Protected Member Functions | |
virtual void | Initialise () |
virtual void | Deinitialise () |
Static Private Attributes | |
static wxPlatformDependent * | s_PlatformDependent = NULL |
Definition at line 17 of file platform.h.
|
Reimplemented in CamPlatformDependent. |
|
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 }
|
|
Definition at line 32 of file platform.h.
|
|
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 }
|
|
Definition at line 28 of file platform.h. 00028 {return s_PlatformDependent;}
|
|
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 }
|
|
Reimplemented in CamPlatformDependent. Definition at line 31 of file platform.h.
|
|
Reimplemented in CamPlatformDependent. Definition at line 35 of file platform.h.
|
|
Definition at line 72 of file platform.cpp.
|
|
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 }
|
|
Definition at line 78 of file platform.cpp.
|
|
Definition at line 25 of file platform.h. |