]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_effects.i
reSWIGged
[wxWidgets.git] / wxPython / src / _effects.i
CommitLineData
d14a1e28
RD
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
25class wxEffects: public wxObject
26{
27public:
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
42e2bbb9
RD
53 %property(DarkShadow, GetDarkShadow, SetDarkShadow, doc="See `GetDarkShadow` and `SetDarkShadow`");
54 %property(FaceColour, GetFaceColour, SetFaceColour, doc="See `GetFaceColour` and `SetFaceColour`");
55 %property(HighlightColour, GetHighlightColour, SetHighlightColour, doc="See `GetHighlightColour` and `SetHighlightColour`");
56 %property(LightShadow, GetLightShadow, SetLightShadow, doc="See `GetLightShadow` and `SetLightShadow`");
57 %property(MediumShadow, GetMediumShadow, SetMediumShadow, doc="See `GetMediumShadow` and `SetMediumShadow`");
58
d14a1e28
RD
59};
60
61
62//---------------------------------------------------------------------------