]> git.saurik.com Git - wxWidgets.git/blob - include/wx/effects.h
Applied wxPoem, wxSystemSettings, sizing, install doc patches
[wxWidgets.git] / include / wx / effects.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: effects.h
3 // Purpose: wxEffects class
4 // Draws 3D effects.
5 // Author: Julian Smart et al
6 // Modified by:
7 // Created: 25/4/2000
8 // RCS-ID: $Id$
9 // Copyright: (c) Julian Smart
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
12
13 #ifdef __GNUG__
14 #pragma interface "effects.h"
15 #endif
16
17 #ifndef _WX_EFFECTS_H_
18 #define _WX_EFFECTS_H_
19
20 /*
21 * wxEffects: various 3D effects
22 */
23
24 class WXDLLEXPORT wxEffects: public wxObject
25 {
26 DECLARE_CLASS(wxEffects)
27
28 public:
29 // Assume system colours
30 wxEffects() ;
31 // Going from lightest to darkest
32 wxEffects(const wxColour& highlightColour, const wxColour& lightShadow,
33 const wxColour& faceColour, const wxColour& mediumShadow, const wxColour& darkShadow) ;
34
35 // Draw a sunken edge
36 void DrawSunkenEdge(wxDC& dc, const wxRect& rect, int borderSize = 1);
37
38 // Tile a bitmap
39 bool TileBitmap(const wxRect& rect, wxDC& dc, wxBitmap& bitmap);
40 protected:
41 wxColour m_highlightColour; // Usually white
42 wxColour m_lightShadow; // Usually light grey
43 wxColour m_faceColour; // Usually grey
44 wxColour m_mediumShadow; // Usually dark grey
45 wxColour m_darkShadow; // Usually black
46 };
47
48 #endif
49