X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aae0472bf3086707216125e4caa8650caeeeaf97..6a8b0d458663e48152afcf6576a057f5b8ab8be3:/include/wx/motif/private.h diff --git a/include/wx/motif/private.h b/include/wx/motif/private.h index 601172e600..6afab90e10 100644 --- a/include/wx/motif/private.h +++ b/include/wx/motif/private.h @@ -38,6 +38,12 @@ class WXDLLEXPORT wxColour; #define wxCHECK_LESSTIF() ( defined(LesstifVersion) && LesstifVersion > 0 ) +// ---------------------------------------------------------------------------- +// Miscellaneous functions +// ---------------------------------------------------------------------------- + +WXWidget wxCreateBorderWidget( WXWidget parent, long style ); + // ---------------------------------------------------------------------------- // common callbacks // ---------------------------------------------------------------------------- @@ -80,9 +86,9 @@ extern XmString wxFindAcceleratorText (const char *s); // ---------------------------------------------------------------------------- extern bool wxTranslateMouseEvent(wxMouseEvent& wxevent, wxWindow *win, - Widget widget, XEvent *xevent); + Widget widget, const XEvent *xevent); extern bool wxTranslateKeyEvent(wxKeyEvent& wxevent, wxWindow *win, - Widget widget, XEvent *xevent); + Widget widget, const XEvent *xevent); extern void wxDoChangeForegroundColour(WXWidget widget, wxColour& foregroundColour); @@ -111,7 +117,7 @@ wxString wxXmStringToString( const XmString& xmString ); XmString wxStringToXmString( const wxString& string ); XmString wxStringToXmString( const char* string ); -// XmString made easy to use in wxWindows (and has an added benefit of +// XmString made easy to use in wxWidgets (and has an added benefit of // cleaning up automatically) class wxXmString { @@ -154,14 +160,18 @@ wxSize wxDoGetSingleTextCtrlBestSize( Widget textWidget, const wxWindow* window ); // ---------------------------------------------------------------------------- -// executes one main loop iteration (implemented in src/motif/evtloop.cpp) +// event-related functions // ---------------------------------------------------------------------------- class wxEventLoop; +// executes one main loop iteration (implemented in src/motif/evtloop.cpp) // returns true if the loop should be exited bool wxDoEventLoopIteration( wxEventLoop& evtLoop ); +// Consume all events until no more left +void wxFlushEvents(WXDisplay* display); + // ---------------------------------------------------------------------------- // macros to avoid casting WXFOO to Foo all the time // ----------------------------------------------------------------------------