X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d171743ed3ddbf0178a9d68cf78999a3ca999826..ce668f297b03143bc15014a37c12e610c49c6e6b:/include/wx/x11/privx.h diff --git a/include/wx/x11/privx.h b/include/wx/x11/privx.h index 6a9c5336be..4767a9431d 100644 --- a/include/wx/x11/privx.h +++ b/include/wx/x11/privx.h @@ -26,10 +26,10 @@ #pragma message enable nosimpint #endif -class wxMouseEvent; -class wxKeyEvent; -class wxWindow; -class wxRegion; +class WXDLLIMPEXP_FWD_CORE wxMouseEvent; +class WXDLLIMPEXP_FWD_CORE wxKeyEvent; +class WXDLLIMPEXP_FWD_CORE wxWindow; +class WXDLLIMPEXP_FWD_CORE wxRegion; // ---------------------------------------------------------------------------- // key events related functions @@ -38,11 +38,11 @@ class wxRegion; extern int wxCharCodeXToWX(KeySym keySym); extern KeySym wxCharCodeWXToX(int id); -int wxGetBestMatchingPixel(Display *display, XColor *desiredColor, Colormap cmap); +WXPixel wxGetBestMatchingPixel(Display *display, XColor *desiredColor, Colormap cmap); Pixmap XCreateInsensitivePixmap( Display *display, Pixmap pixmap ); extern XColor g_itemColors[]; -extern int wxComputeColours (Display *display, wxColour * back, wxColour * fore); +extern int wxComputeColours (Display *display, const wxColour * back, const wxColour * fore); // For convenience inline Display* wxGlobalDisplay() { return (Display*) wxGetDisplay(); } @@ -67,9 +67,7 @@ void wxAllocNearestColor(Display *display,Colormap colormap,XColor *xcolor); void wxAllocColor(Display *display,Colormap colormap,XColor *xcolor); // For debugging -#ifdef __WXDEBUG__ wxString wxGetXEventName(XEvent& event); -#endif // Is the window visible? bool wxWindowIsVisible(Window win); @@ -148,7 +146,7 @@ bool wxWindowIsVisible(Window win); bool wxDoSetShape( Display* xdisplay, Window xwindow, const wxRegion& region ); -class WXDLLEXPORT wxXVisualInfo +class WXDLLIMPEXP_CORE wxXVisualInfo { public: wxXVisualInfo(); @@ -169,7 +167,7 @@ public: int m_visualRedPrec; int m_visualGreenPrec; int m_visualBluePrec; - + unsigned char *m_colorCube; };