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 support for more interfaces #6209

Merged
merged 3 commits into from
Mar 31, 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
19 changes: 19 additions & 0 deletions cfg/wxwidgets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,38 @@
<check>wxBitmap</check>
<check>wxBitmapBundle</check>
<check>wxBitmapHandler</check>
<check>wxBoxSizer</check>
<check>wxBrush</check>
<check>wxChar</check>
<check>wxUniChar</check>
<check>wxUniCharRef</check>
<check>wxColour</check>
<check>wxColourDatabase</check>
<check>wxCursor</check>
<check>wxDateSpan</check>
<check>wxDCClipper</check>
<check>wxDCBrushChanger</check>
<check>wxDCFontChanger</check>
<check>wxDCPenChanger</check>
<check>wxDCTextColourChanger</check>
<check>wxDCTextBgColourChanger</check>
<check>wxDCTextBgModeChanger</check>
<check>wxFileType</check>
<check>wxFont</check>
<check>wxFlexGridSizer</check>
<check>wxFontEnumerator</check>
<check>wxFontInfo</check>
<check>wxFontList</check>
<check>wxFontMetrics</check>
<check>wxGraphicsGradientStop</check>
<check>wxGraphicsGradientStops</check>
<check>wxGridBagSizer</check>
<check>wxGridSizer</check>
<check>wxIcon</check>
<check>wxIconLocation</check>
<check>wxImage</check>
<check>wxMask</check>
<check>wxNativeFontInfo</check>
<check>wxPen</check>
<check>wxPenList</check>
<check>wxPoint</check>
Expand All @@ -41,6 +55,10 @@
<check>wxRegEx</check>
<check>wxRect</check>
<check>wxSize</check>
<check>wxSizer</check>
<check>wxSizerItem</check>
<check>wxStaticBoxSizer</check>
<check>wxStdDialogButtonSizer</check>
<check>wxSystemOptions</check>
<check>wxSystemSettings</check>
<check>wxTimeSpan</check>
Expand All @@ -52,6 +70,7 @@
<check>wxVariantDataSafeArray</check>
<check>wxVector</check>
<check>wxVersionInfo</check>
<check>wxWrapSizer</check>
</unusedvar>
<operatorEqVarError>
</operatorEqVarError>
Expand Down
124 changes: 124 additions & 0 deletions test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
#include <wx/dynarray.h>
#include <wx/filefn.h>
#include <wx/font.h>
#include <wx/fontenum.h>
#include <wx/fontutil.h>
#include <wx/frame.h>
#include <wx/gbsizer.h>
#include <wx/gdicmn.h>
#include <wx/geometry.h>
#include <wx/graphics.h>
Expand Down Expand Up @@ -62,6 +65,7 @@
#include <wx/variant.h>
#include <wx/vector.h>
#include <wx/versioninfo.h>
#include <wx/wrapsizer.h>

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

#if wxCHECK_VERSION(3, 1, 3) // wxWidets-3.1.3 or higher
void unreadVariable_wxDCTextBgModeChanger(wxDC &dc)
{
// cppcheck-suppress unreadVariable
wxDCTextBgModeChanger a(dc);
}

void unreadVariable_wxDCTextBgColourChanger(wxDC &dc, const wxColour &colour)
{
// cppcheck-suppress unreadVariable
wxDCTextBgColourChanger a(dc);
// cppcheck-suppress unreadVariable
wxDCTextBgColourChanger b(dc, colour);
}
#endif

void unreadVariable_wxDCTextColourChanger(wxDC &dc, const wxColour &colour)
{
// cppcheck-suppress unreadVariable
wxDCTextColourChanger a(dc);
// cppcheck-suppress unreadVariable
wxDCTextColourChanger b(dc, colour);
}

void unreadVariable_wxDCPenChanger(wxDC &dc, const wxPen &pen)
{
// cppcheck-suppress unreadVariable
wxDCPenChanger a(dc, pen);
}

void unreadVariable_wxDCFontChanger(wxDC &dc, const wxFont &font)
{
// cppcheck-suppress unreadVariable
wxDCFontChanger a(dc);
// cppcheck-suppress unreadVariable
wxDCFontChanger b(dc, font);
}

void unreadVariable_wxDCBrushChanger(wxDC &dc, const wxBrush &brush)
{
// cppcheck-suppress unreadVariable
wxDCBrushChanger a(dc, brush);
}

void unreadVariable_wxWrapSizer(const int x)
{
// cppcheck-suppress unreadVariable
wxWrapSizer a(x, x);
}

void unreadVariable_wxGridBagSizer(const int x)
{
// cppcheck-suppress unreadVariable
wxGridBagSizer a(x, x);
}

void unreadVariable_wxSizerItem(const int x)
{
// cppcheck-suppress unreadVariable
wxSizerItem a(x, x);
}

void unreadVariable_wxFlexGridSizer(const int x)
{
// cppcheck-suppress unreadVariable
wxFlexGridSizer a(x, x, x);
}

void unreadVariable_wxBoxSizer(const int orient)
{
// cppcheck-suppress unreadVariable
wxBoxSizer a(orient);
}

void unreadVariable_wxGridSizer(int x)
{
// cppcheck-suppress unreadVariable
wxGridSizer a(x, x, x);
}

void unreadVariable_wxStaticBoxSizer(wxStaticBox *box, const int orient, wxWindow *parent, const wxString &label)
{
// cppcheck-suppress unreadVariable
wxStaticBoxSizer a(box, orient);
// cppcheck-suppress unreadVariable
wxStaticBoxSizer b(orient, parent);
// cppcheck-suppress unreadVariable
wxStaticBoxSizer c(orient, parent, label);
}

void unusedVariable_wxStdDialogButtonSizer()
{
// cppcheck-suppress unusedVariable
wxStdDialogButtonSizer a;
}

void unusedVariable_wxColourDatabase()
{
// cppcheck-suppress unusedVariable
wxColourDatabase a;
}

void unusedVariable_wxFontEnumerator()
{
// cppcheck-suppress unusedVariable
wxFontEnumerator a;
}

void unusedVariable_wxCursor()
{
// cppcheck-suppress unusedVariable
Expand All @@ -93,6 +205,18 @@ void unusedVariable_wxBitmapHandler()
wxBitmapHandler a;
}

void unusedVariable_wxNativeFontInfo()
{
// cppcheck-suppress unusedVariable
wxNativeFontInfo a;
}

void unreadVariable_wxDCClipper(wxDC &dc, const wxRegion &region)
{
// cppcheck-suppress unreadVariable
wxDCClipper a(dc, region);
}

void unreadVariable_wxMask(const wxBitmap &bmp, int x, const wxColour & colour)
{
// cppcheck-suppress unusedVariable
Expand Down
Loading