X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59a12e90345a6d88e74f594b500be4b48637f52c..1ec46a5b35233f3c69c5b73e4b0b36f44c650633:/include/wx/gdicmn.h diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index b06e329c45..5cc489ac20 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -48,7 +48,7 @@ class WXDLLEXPORT wxString; // --------------------------------------------------------------------------- // Bitmap flags -enum +enum wxBitmapType { wxBITMAP_TYPE_INVALID, // should be == 0 for compatibility! wxBITMAP_TYPE_BMP, @@ -123,6 +123,8 @@ enum wxStockCursor wxCURSOR_BASED_ARROW_DOWN, #endif // X11 + wxCURSOR_ARROWWAIT, + wxCURSOR_MAX }; @@ -167,7 +169,7 @@ enum wxStockCursor #if defined(__WXMSW__) || defined(__WXPM__) #define wxBITMAP(name) wxBitmap(#name, wxBITMAP_TYPE_RESOURCE) -#elif defined(__WXGTK__) || defined(__WXMOTIF__) +#elif defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) // Initialize from an included XPM #define wxBITMAP(name) wxBitmap( (const char**) name##_xpm ) #else // other platforms @@ -383,6 +385,11 @@ public: wxColour *FindColour(const wxString& colour) ; wxString FindName(const wxColour& colour) const; void Initialize(); +#ifdef __WXPM__ + // PM keeps its own type of colour table + long* m_palTable; + size_t m_nSize; +#endif }; class WXDLLEXPORT wxBitmapList : public wxList @@ -496,9 +503,15 @@ extern bool WXDLLEXPORT wxColourDisplay(); extern int WXDLLEXPORT wxDisplayDepth(); #define wxGetDisplayDepth wxDisplayDepth -// get the diaplay size +// get the display size extern void WXDLLEXPORT wxDisplaySize(int *width, int *height); extern wxSize WXDLLEXPORT wxGetDisplaySize(); +extern void WXDLLEXPORT wxDisplaySizeMM(int *width, int *height); +extern wxSize WXDLLEXPORT wxGetDisplaySizeMM(); + +// Get position and size of the display workarea +extern void WXDLLEXPORT wxClientDisplayRect(int *x, int *y, int *width, int *height); +extern wxRect WXDLLEXPORT wxGetClientDisplayRect(); // set global cursor extern void WXDLLEXPORT wxSetCursor(const wxCursor& cursor);