X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8d1818419134415331bfe9f6d4703a8f0742caa..b6e2eddeaf7e559589ce41ac41e88f9bd71c5a08:/include/wx/motif/private.h?ds=sidebyside diff --git a/include/wx/motif/private.h b/include/wx/motif/private.h index 2f6270776c..5020ca20f9 100644 --- a/include/wx/motif/private.h +++ b/include/wx/motif/private.h @@ -18,6 +18,8 @@ class WXDLLEXPORT wxFont; class WXDLLEXPORT wxWindow; class WXDLLEXPORT wxSize; +class WXDLLEXPORT wxBitmap; +class WXDLLEXPORT wxColour; #include "wx/x11/privx.h" @@ -36,6 +38,12 @@ class WXDLLEXPORT wxSize; #define wxCHECK_LESSTIF() ( defined(LesstifVersion) && LesstifVersion > 0 ) +// ---------------------------------------------------------------------------- +// Miscellaneous functions +// ---------------------------------------------------------------------------- + +WXWidget wxCreateBorderWidget( WXWidget parent, long style ); + // ---------------------------------------------------------------------------- // common callbacks // ---------------------------------------------------------------------------- @@ -57,6 +65,13 @@ extern void wxDeleteWindowFromTable(Widget w); extern wxWindow *wxGetWindowFromTable(Widget w); extern bool wxAddWindowToTable(Widget w, wxWindow *win); +// ---------------------------------------------------------------------------- +// wxBitmap related functions +// ---------------------------------------------------------------------------- + +// Creates a bitmap with transparent areas drawn in the given colour. +wxBitmap wxCreateMaskedBitmap(const wxBitmap& bitmap, wxColour& colour); + // ---------------------------------------------------------------------------- // key events related functions // ---------------------------------------------------------------------------- @@ -95,7 +110,7 @@ extern XColor itemColors[5] ; #define wxBOTS_INDEX 4 // ---------------------------------------------------------------------------- -// utility classes +// XmString/wxString conversion utilities // ---------------------------------------------------------------------------- wxString wxXmStringToString( const XmString& xmString ); @@ -145,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 // ----------------------------------------------------------------------------