1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface defining "stock" GDI objects
7 // Created: 13-Sept-2003
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
20 class wxPenList : public wxObject {
23 void AddPen(wxPen* pen);
24 wxPen* FindOrCreatePen(const wxColour& colour, int width, int style);
25 void RemovePen(wxPen* pen);
31 //---------------------------------------------------------------------------
33 class wxBrushList : public wxObject {
36 void AddBrush(wxBrush *brush);
37 wxBrush * FindOrCreateBrush(const wxColour& colour, int style);
38 void RemoveBrush(wxBrush *brush);
43 //---------------------------------------------------------------------------
45 class wxColourDatabase : public wxObject {
50 // find colour by name or name for the given colour
51 wxColour Find(const wxString& name) const;
52 wxString FindName(const wxColour& colour) const;
53 %pythoncode { FindColour = Find }
55 // add a new colour to the database
56 void AddColour(const wxString& name, const wxColour& colour);
59 void Append(const wxString& name, int red, int green, int blue) {
60 self->AddColour(name, wxColour(red, green, blue));
65 //---------------------------------------------------------------------------
67 class wxFontList : public wxObject {
70 void AddFont(wxFont* font);
71 wxFont * FindOrCreateFont(int point_size, int family, int style, int weight,
72 bool underline = False, const wxString& facename = wxPyEmptyString,
73 wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
74 void RemoveFont(wxFont *font);
79 //---------------------------------------------------------------------------
84 // See also wxPy_ReinitStockObjects in helpers.cpp
87 wxFont* const wxNORMAL_FONT;
88 wxFont* const wxSMALL_FONT;
89 wxFont* const wxITALIC_FONT;
90 wxFont* const wxSWISS_FONT;
92 wxPen* const wxRED_PEN;
93 wxPen* const wxCYAN_PEN;
94 wxPen* const wxGREEN_PEN;
95 wxPen* const wxBLACK_PEN;
96 wxPen* const wxWHITE_PEN;
97 wxPen* const wxTRANSPARENT_PEN;
98 wxPen* const wxBLACK_DASHED_PEN;
99 wxPen* const wxGREY_PEN;
100 wxPen* const wxMEDIUM_GREY_PEN;
101 wxPen* const wxLIGHT_GREY_PEN;
103 wxBrush* const wxBLUE_BRUSH;
104 wxBrush* const wxGREEN_BRUSH;
105 wxBrush* const wxWHITE_BRUSH;
106 wxBrush* const wxBLACK_BRUSH;
107 wxBrush* const wxTRANSPARENT_BRUSH;
108 wxBrush* const wxCYAN_BRUSH;
109 wxBrush* const wxRED_BRUSH;
110 wxBrush* const wxGREY_BRUSH;
111 wxBrush* const wxMEDIUM_GREY_BRUSH;
112 wxBrush* const wxLIGHT_GREY_BRUSH;
114 wxColour* const wxBLACK;
115 wxColour* const wxWHITE;
116 wxColour* const wxRED;
117 wxColour* const wxBLUE;
118 wxColour* const wxGREEN;
119 wxColour* const wxCYAN;
120 wxColour* const wxLIGHT_GREY;
122 wxCursor* const wxSTANDARD_CURSOR;
123 wxCursor* const wxHOURGLASS_CURSOR;
124 wxCursor* const wxCROSS_CURSOR;
127 const wxBitmap wxNullBitmap;
128 const wxIcon wxNullIcon;
129 const wxCursor wxNullCursor;
130 const wxPen wxNullPen;
131 const wxBrush wxNullBrush;
132 const wxPalette wxNullPalette;
133 const wxFont wxNullFont;
134 const wxColour wxNullColour;
137 wxFontList* const wxTheFontList;
138 wxPenList* const wxThePenList;
139 wxBrushList* const wxTheBrushList;
140 wxColourDatabase* const wxTheColourDatabase;
145 //---------------------------------------------------------------------------