X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3399051ee9fa4dfa5fa7ac2dd9034062f4414d64..26531700c7ec84872c60899ce6219954499086da:/include/wx/motif/cursor.h?ds=inline diff --git a/include/wx/motif/cursor.h b/include/wx/motif/cursor.h index fd5e67dcfa..4c6d47a635 100644 --- a/include/wx/motif/cursor.h +++ b/include/wx/motif/cursor.h @@ -12,7 +12,7 @@ #ifndef _WX_CURSOR_H_ #define _WX_CURSOR_H_ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "cursor.h" #endif @@ -32,8 +32,9 @@ public: // Copy constructors wxCursor(const wxCursor& cursor) { Ref(cursor); } - wxCursor(const char bits[], int width, int height, int hotSpotX = -1, int hotSpotY = -1, - const char maskBits[] = NULL); + wxCursor(const char bits[], int width, int height, + int hotSpotX = -1, int hotSpotY = -1, + const char maskBits[] = NULL); wxCursor(const wxString& name, long flags = wxBITMAP_TYPE_XBM, int hotSpotX = 0, int hotSpotY = 0); @@ -56,10 +57,15 @@ public: // Motif-specific. // Create/get a cursor for the current display - WXCursor GetXCursor(WXDisplay* display) ; + WXCursor GetXCursor(WXDisplay* display) const; private: + void Create(const char bits[], int width, int height, + int hotSpotX = -1, int hotSpotY = -1, + const char maskBits[] = NULL); + void Create(WXPixmap cursor, WXPixmap mask, int hotSpotX, int hotSpotY); + // Make a cursor from standard id - WXCursor MakeCursor(WXDisplay* display, wxStockCursor id); + WXCursor MakeCursor(WXDisplay* display, wxStockCursor id) const; }; extern WXDLLEXPORT void wxSetCursor(const wxCursor& cursor);