X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/551fe9528a2c08886a48a8e13234a4f2228f7b4c..50b2d5444664827e97c637b3921500ea22b4fd45:/include/wx/motif/private.h diff --git a/include/wx/motif/private.h b/include/wx/motif/private.h index c19974fbe4..09f072e520 100644 --- a/include/wx/motif/private.h +++ b/include/wx/motif/private.h @@ -14,6 +14,7 @@ #include "wx/defs.h" #include "X11/Xlib.h" +#include "wx/evtloop.h" class WXDLLEXPORT wxFont; class WXDLLEXPORT wxWindow; @@ -106,6 +107,9 @@ extern void wxGetTextExtent(WXDisplay* display, const wxFont& font, double scale, const wxString& string, int* width, int* height, int* ascent, int* descent); +extern void wxGetTextExtent(const wxWindow* window, const wxString& str, + int* width, int* height, + int* ascent, int* descent); #define wxNO_COLORS 0x00 #define wxBACK_COLORS 0x01 @@ -182,11 +186,9 @@ wxSize wxDoGetSingleTextCtrlBestSize( Widget textWidget, // 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 ); +bool wxDoEventLoopIteration( wxGUIEventLoop& evtLoop ); // Consume all events until no more left void wxFlushEvents(WXDisplay* display);