Skip to content

Commit bd1c5c6

Browse files
authored
wxwidgets.cfg: Added support for more interfaces (#6209)
1 parent 2d99a64 commit bd1c5c6

2 files changed

Lines changed: 143 additions & 0 deletions

File tree

cfg/wxwidgets.cfg

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,38 @@
1212
<check>wxBitmap</check>
1313
<check>wxBitmapBundle</check>
1414
<check>wxBitmapHandler</check>
15+
<check>wxBoxSizer</check>
1516
<check>wxBrush</check>
1617
<check>wxChar</check>
1718
<check>wxUniChar</check>
1819
<check>wxUniCharRef</check>
1920
<check>wxColour</check>
21+
<check>wxColourDatabase</check>
2022
<check>wxCursor</check>
2123
<check>wxDateSpan</check>
24+
<check>wxDCClipper</check>
25+
<check>wxDCBrushChanger</check>
26+
<check>wxDCFontChanger</check>
27+
<check>wxDCPenChanger</check>
28+
<check>wxDCTextColourChanger</check>
29+
<check>wxDCTextBgColourChanger</check>
30+
<check>wxDCTextBgModeChanger</check>
2231
<check>wxFileType</check>
2332
<check>wxFont</check>
33+
<check>wxFlexGridSizer</check>
34+
<check>wxFontEnumerator</check>
2435
<check>wxFontInfo</check>
2536
<check>wxFontList</check>
2637
<check>wxFontMetrics</check>
2738
<check>wxGraphicsGradientStop</check>
2839
<check>wxGraphicsGradientStops</check>
40+
<check>wxGridBagSizer</check>
41+
<check>wxGridSizer</check>
2942
<check>wxIcon</check>
3043
<check>wxIconLocation</check>
3144
<check>wxImage</check>
3245
<check>wxMask</check>
46+
<check>wxNativeFontInfo</check>
3347
<check>wxPen</check>
3448
<check>wxPenList</check>
3549
<check>wxPoint</check>
@@ -41,6 +55,10 @@
4155
<check>wxRegEx</check>
4256
<check>wxRect</check>
4357
<check>wxSize</check>
58+
<check>wxSizer</check>
59+
<check>wxSizerItem</check>
60+
<check>wxStaticBoxSizer</check>
61+
<check>wxStdDialogButtonSizer</check>
4462
<check>wxSystemOptions</check>
4563
<check>wxSystemSettings</check>
4664
<check>wxTimeSpan</check>
@@ -52,6 +70,7 @@
5270
<check>wxVariantDataSafeArray</check>
5371
<check>wxVector</check>
5472
<check>wxVersionInfo</check>
73+
<check>wxWrapSizer</check>
5574
</unusedvar>
5675
<operatorEqVarError>
5776
</operatorEqVarError>

test/cfg/wxwidgets.cpp

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@
3131
#include <wx/dynarray.h>
3232
#include <wx/filefn.h>
3333
#include <wx/font.h>
34+
#include <wx/fontenum.h>
35+
#include <wx/fontutil.h>
3436
#include <wx/frame.h>
37+
#include <wx/gbsizer.h>
3538
#include <wx/gdicmn.h>
3639
#include <wx/geometry.h>
3740
#include <wx/graphics.h>
@@ -62,6 +65,7 @@
6265
#include <wx/variant.h>
6366
#include <wx/vector.h>
6467
#include <wx/versioninfo.h>
68+
#include <wx/wrapsizer.h>
6569

6670
#if wxCHECK_VERSION(3, 1, 6) // wxWidets-3.1.6 or higher
6771
void unreadVariable_wxBitmapBundle(const wxBitmap &bmp, const wxIcon &icon, const wxImage &image, const char *const * xpm, const wxBitmapBundle &bundle)
@@ -81,6 +85,114 @@ void unreadVariable_wxBitmapBundle(const wxBitmap &bmp, const wxIcon &icon, cons
8185
}
8286
#endif
8387

88+
#if wxCHECK_VERSION(3, 1, 3) // wxWidets-3.1.3 or higher
89+
void unreadVariable_wxDCTextBgModeChanger(wxDC &dc)
90+
{
91+
// cppcheck-suppress unreadVariable
92+
wxDCTextBgModeChanger a(dc);
93+
}
94+
95+
void unreadVariable_wxDCTextBgColourChanger(wxDC &dc, const wxColour &colour)
96+
{
97+
// cppcheck-suppress unreadVariable
98+
wxDCTextBgColourChanger a(dc);
99+
// cppcheck-suppress unreadVariable
100+
wxDCTextBgColourChanger b(dc, colour);
101+
}
102+
#endif
103+
104+
void unreadVariable_wxDCTextColourChanger(wxDC &dc, const wxColour &colour)
105+
{
106+
// cppcheck-suppress unreadVariable
107+
wxDCTextColourChanger a(dc);
108+
// cppcheck-suppress unreadVariable
109+
wxDCTextColourChanger b(dc, colour);
110+
}
111+
112+
void unreadVariable_wxDCPenChanger(wxDC &dc, const wxPen &pen)
113+
{
114+
// cppcheck-suppress unreadVariable
115+
wxDCPenChanger a(dc, pen);
116+
}
117+
118+
void unreadVariable_wxDCFontChanger(wxDC &dc, const wxFont &font)
119+
{
120+
// cppcheck-suppress unreadVariable
121+
wxDCFontChanger a(dc);
122+
// cppcheck-suppress unreadVariable
123+
wxDCFontChanger b(dc, font);
124+
}
125+
126+
void unreadVariable_wxDCBrushChanger(wxDC &dc, const wxBrush &brush)
127+
{
128+
// cppcheck-suppress unreadVariable
129+
wxDCBrushChanger a(dc, brush);
130+
}
131+
132+
void unreadVariable_wxWrapSizer(const int x)
133+
{
134+
// cppcheck-suppress unreadVariable
135+
wxWrapSizer a(x, x);
136+
}
137+
138+
void unreadVariable_wxGridBagSizer(const int x)
139+
{
140+
// cppcheck-suppress unreadVariable
141+
wxGridBagSizer a(x, x);
142+
}
143+
144+
void unreadVariable_wxSizerItem(const int x)
145+
{
146+
// cppcheck-suppress unreadVariable
147+
wxSizerItem a(x, x);
148+
}
149+
150+
void unreadVariable_wxFlexGridSizer(const int x)
151+
{
152+
// cppcheck-suppress unreadVariable
153+
wxFlexGridSizer a(x, x, x);
154+
}
155+
156+
void unreadVariable_wxBoxSizer(const int orient)
157+
{
158+
// cppcheck-suppress unreadVariable
159+
wxBoxSizer a(orient);
160+
}
161+
162+
void unreadVariable_wxGridSizer(int x)
163+
{
164+
// cppcheck-suppress unreadVariable
165+
wxGridSizer a(x, x, x);
166+
}
167+
168+
void unreadVariable_wxStaticBoxSizer(wxStaticBox *box, const int orient, wxWindow *parent, const wxString &label)
169+
{
170+
// cppcheck-suppress unreadVariable
171+
wxStaticBoxSizer a(box, orient);
172+
// cppcheck-suppress unreadVariable
173+
wxStaticBoxSizer b(orient, parent);
174+
// cppcheck-suppress unreadVariable
175+
wxStaticBoxSizer c(orient, parent, label);
176+
}
177+
178+
void unusedVariable_wxStdDialogButtonSizer()
179+
{
180+
// cppcheck-suppress unusedVariable
181+
wxStdDialogButtonSizer a;
182+
}
183+
184+
void unusedVariable_wxColourDatabase()
185+
{
186+
// cppcheck-suppress unusedVariable
187+
wxColourDatabase a;
188+
}
189+
190+
void unusedVariable_wxFontEnumerator()
191+
{
192+
// cppcheck-suppress unusedVariable
193+
wxFontEnumerator a;
194+
}
195+
84196
void unusedVariable_wxCursor()
85197
{
86198
// cppcheck-suppress unusedVariable
@@ -93,6 +205,18 @@ void unusedVariable_wxBitmapHandler()
93205
wxBitmapHandler a;
94206
}
95207

208+
void unusedVariable_wxNativeFontInfo()
209+
{
210+
// cppcheck-suppress unusedVariable
211+
wxNativeFontInfo a;
212+
}
213+
214+
void unreadVariable_wxDCClipper(wxDC &dc, const wxRegion &region)
215+
{
216+
// cppcheck-suppress unreadVariable
217+
wxDCClipper a(dc, region);
218+
}
219+
96220
void unreadVariable_wxMask(const wxBitmap &bmp, int x, const wxColour & colour)
97221
{
98222
// cppcheck-suppress unusedVariable

0 commit comments

Comments
 (0)