brush.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/gtk/brush.h
  3. // Purpose:
  4. // Author: Robert Roebling
  5. // Copyright: (c) 1998 Robert Roebling
  6. // Licence: wxWindows licence
  7. /////////////////////////////////////////////////////////////////////////////
  8. #ifndef _WX_GTK_BRUSH_H_
  9. #define _WX_GTK_BRUSH_H_
  10. class WXDLLIMPEXP_FWD_CORE wxBitmap;
  11. class WXDLLIMPEXP_FWD_CORE wxColour;
  12. //-----------------------------------------------------------------------------
  13. // wxBrush
  14. //-----------------------------------------------------------------------------
  15. class WXDLLIMPEXP_CORE wxBrush: public wxBrushBase
  16. {
  17. public:
  18. wxBrush() { }
  19. wxBrush( const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID );
  20. #if FUTURE_WXWIN_COMPATIBILITY_3_0
  21. wxDEPRECATED_FUTURE( wxBrush(const wxColour& col, int style) );
  22. #endif
  23. wxBrush( const wxBitmap &stippleBitmap );
  24. virtual ~wxBrush();
  25. bool operator==(const wxBrush& brush) const;
  26. bool operator!=(const wxBrush& brush) const { return !(*this == brush); }
  27. wxBrushStyle GetStyle() const;
  28. wxColour GetColour() const;
  29. wxBitmap *GetStipple() const;
  30. void SetColour( const wxColour& col );
  31. void SetColour( unsigned char r, unsigned char g, unsigned char b );
  32. void SetStyle( wxBrushStyle style );
  33. void SetStipple( const wxBitmap& stipple );
  34. #if FUTURE_WXWIN_COMPATIBILITY_3_0
  35. wxDEPRECATED_FUTURE( void SetStyle(int style) )
  36. { SetStyle((wxBrushStyle)style); }
  37. #endif
  38. protected:
  39. virtual wxGDIRefData *CreateGDIRefData() const;
  40. virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
  41. DECLARE_DYNAMIC_CLASS(wxBrush)
  42. };
  43. #endif // _WX_GTK_BRUSH_H_