wxCURSOR_MAX
};
+#ifndef __WXGTK__
+ #define wxCURSOR_DEFAULT wxCURSOR_ARROW
+#endif
+
// ---------------------------------------------------------------------------
// macros
// ---------------------------------------------------------------------------
#if defined(__WXMSW__) || defined(__WXPM__)
#define wxBITMAP(name) wxBitmap(#name, wxBITMAP_TYPE_RESOURCE)
-#elif defined(__WXGTK__)
+#elif defined(__WXGTK__) || defined(__WXMOTIF__)
// Initialize from an included XPM
#define wxBITMAP(name) wxBitmap( (const char**) name##_xpm )
-#else // !(Windows || OS2)
+#else // other platforms
#define wxBITMAP(name) wxBitmap(name##_xpm, wxBITMAP_TYPE_XPM)
#endif // platform
wxPoint GetPosition() const { return wxPoint(x, y); }
wxSize GetSize() const { return wxSize(width, height); }
- // MFC-like functions
-
int GetLeft() const { return x; }
int GetTop() const { return y; }
int GetBottom() const { return y + height - 1; }
void SetTop(int top) { y = top; }
void SetBottom(int bottom) { height = bottom - y + 1; }
+ void Inflate(wxCoord dx, wxCoord dy)
+ {
+ x -= dx;
+ y -= dy;
+ width += 2*dx;
+ height += 2*dy;
+ }
+
+ void Inflate(wxCoord d) { Inflate(d, d); }
+
bool operator==(const wxRect& rect) const;
bool operator!=(const wxRect& rect) const { return !(*this == rect); }
bool Inside(int cx, int cy) const;
- wxRect operator + (const wxRect& rect) const;
- const wxRect& operator += (const wxRect& rect);
+ wxRect operator+(const wxRect& rect) const;
+ wxRect& operator+=(const wxRect& rect);
public:
int x, y, width, height;