1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxEffects class
5 // Author: Julian Smart et al
9 // Copyright: (c) Julian Smart
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
14 #pragma interface "effects.h"
17 #ifndef _WX_EFFECTS_H_
18 #define _WX_EFFECTS_H_
21 * wxEffects: various 3D effects
24 class WXDLLEXPORT wxEffects
: public wxObject
26 DECLARE_CLASS(wxEffects
)
29 // Assume system colours
31 // Going from lightest to darkest
32 wxEffects(const wxColour
& highlightColour
, const wxColour
& lightShadow
,
33 const wxColour
& faceColour
, const wxColour
& mediumShadow
, const wxColour
& darkShadow
) ;
36 void DrawSunkenEdge(wxDC
& dc
, const wxRect
& rect
, int borderSize
= 1);
39 bool TileBitmap(const wxRect
& rect
, wxDC
& dc
, wxBitmap
& bitmap
);
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