Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxwidgets.cfg added more GDI objects #6216

Merged
merged 2 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions cfg/wxwidgets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,29 @@
<check>wxGBPosition</check>
<check>wxGBSizerItem</check>
<check>wxGBSpan</check>
<check>wxGDIObject</check>
<check>wxGraphicsBrush</check>
<check>wxGraphicsFont</check>
<check>wxGraphicsGradientStop</check>
<check>wxGraphicsGradientStops</check>
<check>wxGraphicsMatrix</check>
<check>wxGraphicsPath</check>
<check>wxGridBagSizer</check>
<check>wxGridSizer</check>
<check>wxIcon</check>
<check>wxIconBundle</check>
<check>wxIconLocation</check>
<check>wxIFFHandler</check>
<check>wxImage</check>
<check>wxImageHandler</check>
<check>wxGIFHandler</check>
<check>wxJPEGHandler</check>
<check>wxPCXHandler</check>
<check>wxPNGHandler</check>
<check>wxPNMHandler</check>
<check>wxTGAHandler</check>
<check>wxTIFFHandler</check>
<check>wxXPMHandler</check>
<check>wxMask</check>
<check>wxNativeFontInfo</check>
<check>wxPen</check>
Expand Down Expand Up @@ -5180,6 +5196,10 @@
<!-- typedef unsigned short wxDateTime_t; -->
<podtype name="wxDateTime_t" sign="u"/>
<podtype name="wxLogLevel"/>
<!-- https://docs.wxwidgets.org/latest/classwx_icon_bundle.html -->
<define name="FALLBACK_NONE" value="0"/>
<define name="FALLBACK_SYSTEM" value="1"/>
<define name="FALLBACK_NEAREST_LARGER" value="2"/>
<!-- https://docs.wxwidgets.org/trunk/group__group__class__smartpointers.html -->
<smart-pointer class-name="wxObjectDataPtr"/>
<smart-pointer class-name="wxScopedArray">
Expand Down
53 changes: 53 additions & 0 deletions test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@
#include <wx/geometry.h>
#include <wx/graphics.h>
#include <wx/icon.h>
#include <wx/iconbndl.h>
#include <wx/iconloc.h>
#include <wx/image.h>
#include <wx/imaggif.h>
#include <wx/imagiff.h>
#include <wx/imagjpeg.h>
#include <wx/imagpcx.h>
#include <wx/log.h>
#include <wx/menu.h>
#include <wx/memory.h>
Expand Down Expand Up @@ -197,6 +202,54 @@ void unreadVariable_wxStaticBoxSizer(wxStaticBox *box, const int orient, wxWindo
wxStaticBoxSizer c(orient, parent, label);
}

void unusedVariable_wxJPEGHandler()
{
// cppcheck-suppress unusedVariable
wxJPEGHandler a;
}

void unusedVariable_wxGIFHandler()
{
// cppcheck-suppress unusedVariable
wxGIFHandler a;
}

void unusedVariable_wxPCXHandler()
{
// cppcheck-suppress unusedVariable
wxPCXHandler a;
}

void unusedVariable_wxIFFHandler()
{
// cppcheck-suppress unusedVariable
wxIFFHandler a;
}

void unusedVariable_wxGraphicsBrush()
{
// cppcheck-suppress unusedVariable
wxGraphicsBrush a;
}

void unusedVariable_wxGraphicsMatrix()
{
// cppcheck-suppress unusedVariable
wxGraphicsMatrix a;
}

void unusedVariable_wxGraphicsFont()
{
// cppcheck-suppress unusedVariable
wxGraphicsFont a;
}

void unusedVariable_wxIconBundle()
{
// cppcheck-suppress unusedVariable
wxIconBundle a;
}

void unusedVariable_wxStdDialogButtonSizer()
{
// cppcheck-suppress unusedVariable
Expand Down
Loading