]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_effects.i
wx.Window.CenterOnScreen has been removed
[wxWidgets.git] / wxPython / src / _effects.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: _effects.i
3 // Purpose: wxEffects
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 18-June-1999
8 // RCS-ID: $Id$
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13 // Not a %module
14
15
16 //---------------------------------------------------------------------------
17 %newgroup
18
19 %{
20 #include <wx/effects.h>
21 %}
22
23 //---------------------------------------------------------------------------
24
25 class wxEffects: public wxObject
26 {
27 public:
28 // Assume system colours
29 wxEffects();
30
31 wxColour GetHighlightColour() const;
32 wxColour GetLightShadow() const;
33 wxColour GetFaceColour() const;
34 wxColour GetMediumShadow() const;
35 wxColour GetDarkShadow() const;
36
37 void SetHighlightColour(const wxColour& c);
38 void SetLightShadow(const wxColour& c);
39 void SetFaceColour(const wxColour& c);
40 void SetMediumShadow(const wxColour& c);
41 void SetDarkShadow(const wxColour& c);
42
43 void Set(const wxColour& highlightColour, const wxColour& lightShadow,
44 const wxColour& faceColour, const wxColour& mediumShadow,
45 const wxColour& darkShadow);
46
47 // Draw a sunken edge
48 void DrawSunkenEdge(wxDC& dc, const wxRect& rect, int borderSize = 1);
49
50 // Tile a bitmap
51 bool TileBitmap(const wxRect& rect, wxDC& dc, wxBitmap& bitmap);
52
53 };
54
55
56 //---------------------------------------------------------------------------