Skip to content

Commit 3de9052

Browse files
authored
wxwidgets.cfg added more GDI objects (#6216)
Reference: https://docs.wxwidgets.org/latest/group__group__class__gdi.html
1 parent cd946e3 commit 3de9052

2 files changed

Lines changed: 73 additions & 0 deletions

File tree

cfg/wxwidgets.cfg

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,29 @@
3838
<check>wxGBPosition</check>
3939
<check>wxGBSizerItem</check>
4040
<check>wxGBSpan</check>
41+
<check>wxGDIObject</check>
42+
<check>wxGraphicsBrush</check>
43+
<check>wxGraphicsFont</check>
4144
<check>wxGraphicsGradientStop</check>
4245
<check>wxGraphicsGradientStops</check>
46+
<check>wxGraphicsMatrix</check>
47+
<check>wxGraphicsPath</check>
4348
<check>wxGridBagSizer</check>
4449
<check>wxGridSizer</check>
4550
<check>wxIcon</check>
51+
<check>wxIconBundle</check>
4652
<check>wxIconLocation</check>
53+
<check>wxIFFHandler</check>
4754
<check>wxImage</check>
55+
<check>wxImageHandler</check>
56+
<check>wxGIFHandler</check>
57+
<check>wxJPEGHandler</check>
58+
<check>wxPCXHandler</check>
59+
<check>wxPNGHandler</check>
60+
<check>wxPNMHandler</check>
61+
<check>wxTGAHandler</check>
62+
<check>wxTIFFHandler</check>
63+
<check>wxXPMHandler</check>
4864
<check>wxMask</check>
4965
<check>wxNativeFontInfo</check>
5066
<check>wxPen</check>
@@ -5180,6 +5196,10 @@
51805196
<!-- typedef unsigned short wxDateTime_t; -->
51815197
<podtype name="wxDateTime_t" sign="u"/>
51825198
<podtype name="wxLogLevel"/>
5199+
<!-- https://docs.wxwidgets.org/latest/classwx_icon_bundle.html -->
5200+
<define name="FALLBACK_NONE" value="0"/>
5201+
<define name="FALLBACK_SYSTEM" value="1"/>
5202+
<define name="FALLBACK_NEAREST_LARGER" value="2"/>
51835203
<!-- https://docs.wxwidgets.org/trunk/group__group__class__smartpointers.html -->
51845204
<smart-pointer class-name="wxObjectDataPtr"/>
51855205
<smart-pointer class-name="wxScopedArray">

test/cfg/wxwidgets.cpp

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,13 @@
3939
#include <wx/geometry.h>
4040
#include <wx/graphics.h>
4141
#include <wx/icon.h>
42+
#include <wx/iconbndl.h>
4243
#include <wx/iconloc.h>
4344
#include <wx/image.h>
45+
#include <wx/imaggif.h>
46+
#include <wx/imagiff.h>
47+
#include <wx/imagjpeg.h>
48+
#include <wx/imagpcx.h>
4449
#include <wx/log.h>
4550
#include <wx/menu.h>
4651
#include <wx/memory.h>
@@ -197,6 +202,54 @@ void unreadVariable_wxStaticBoxSizer(wxStaticBox *box, const int orient, wxWindo
197202
wxStaticBoxSizer c(orient, parent, label);
198203
}
199204

205+
void unusedVariable_wxJPEGHandler()
206+
{
207+
// cppcheck-suppress unusedVariable
208+
wxJPEGHandler a;
209+
}
210+
211+
void unusedVariable_wxGIFHandler()
212+
{
213+
// cppcheck-suppress unusedVariable
214+
wxGIFHandler a;
215+
}
216+
217+
void unusedVariable_wxPCXHandler()
218+
{
219+
// cppcheck-suppress unusedVariable
220+
wxPCXHandler a;
221+
}
222+
223+
void unusedVariable_wxIFFHandler()
224+
{
225+
// cppcheck-suppress unusedVariable
226+
wxIFFHandler a;
227+
}
228+
229+
void unusedVariable_wxGraphicsBrush()
230+
{
231+
// cppcheck-suppress unusedVariable
232+
wxGraphicsBrush a;
233+
}
234+
235+
void unusedVariable_wxGraphicsMatrix()
236+
{
237+
// cppcheck-suppress unusedVariable
238+
wxGraphicsMatrix a;
239+
}
240+
241+
void unusedVariable_wxGraphicsFont()
242+
{
243+
// cppcheck-suppress unusedVariable
244+
wxGraphicsFont a;
245+
}
246+
247+
void unusedVariable_wxIconBundle()
248+
{
249+
// cppcheck-suppress unusedVariable
250+
wxIconBundle a;
251+
}
252+
200253
void unusedVariable_wxStdDialogButtonSizer()
201254
{
202255
// cppcheck-suppress unusedVariable

0 commit comments

Comments
 (0)