Skip to content

Commit 57f9e04

Browse files
authored
wxwidgets.cfg: Added support for more interfaces (#6228)
1 parent edfcc31 commit 57f9e04

2 files changed

Lines changed: 27 additions & 4 deletions

File tree

cfg/wxwidgets.cfg

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
<check>wxPosition</check>
7979
<check>wxRealPoint</check>
8080
<check>wxRegion</check>
81+
<check>wxRegionContain</check>
8182
<check>wxRegionIterator</check>
8283
<check>wxRegEx</check>
8384
<check>wxRect</check>
@@ -3612,6 +3613,10 @@
36123613
<define name="wxLAYOUT_LENGTH_X" value="0"/>
36133614
<define name="wxLAYOUT_MRU_LENGTH" value="0x10"/>
36143615
<define name="wxLAYOUT_QUERY" value="0x100"/>
3616+
<!-- enum wxRegionContain -->
3617+
<define name="wxOutRegion" value="0"/>
3618+
<define name="wxPartRegion" value="1"/>
3619+
<define name="wxInRegion" value="2"/>
36153620
<define name="wxLOG_FatalError" value="0"/>
36163621
<define name="wxLOG_Error" value="1"/>
36173622
<define name="wxLOG_Warning" value="2"/>
@@ -11058,14 +11063,16 @@
1105811063
<not-uninit/>
1105911064
</arg>
1106011065
</function>
11061-
<!-- bool wxArrayString::IsEmpty()-->
11062-
<function name="wxArrayString::IsEmpty,std::vector::IsEmpty">
11066+
<!-- bool wxArrayString::IsEmpty() const-->
11067+
<!-- bool wxRegion::IsEmpty() const -->
11068+
<function name="wxArrayString::IsEmpty,std::vector::IsEmpty,wxRegion::IsEmpty">
1106311069
<noreturn>false</noreturn>
1106411070
<leak-ignore/>
1106511071
<returnValue type="bool"/>
1106611072
<use-retval/>
11073+
<const/>
1106711074
</function>
11068-
<!-- wxUniChar wxString::at(size_t n)const-->
11075+
<!-- wxUniChar wxString::at(size_t n) const-->
1106911076
<function name="wxArrayString::at">
1107011077
<noreturn>false</noreturn>
1107111078
<leak-ignore/>
@@ -17006,7 +17013,8 @@ wxItemKind kind = wxITEM_NORMAL) -->
1700617013
</function>
1700717014
<!-- void wxTextEntry::Clear( void ) -->
1700817015
<!-- void wxTextCtrl::Clear( void ) -->
17009-
<function name="wxTextCtrl::Clear,wxTextEntry::Clear">
17016+
<!-- void wxRegion::Clear( void ) -->
17017+
<function name="wxTextCtrl::Clear,wxTextEntry::Clear,wxRegion::Clear">
1701017018
<noreturn>false</noreturn>
1701117019
<leak-ignore/>
1701217020
<returnValue type="void"/>
@@ -17089,6 +17097,15 @@ wxItemKind kind = wxITEM_NORMAL) -->
1708917097
<not-uninit/>
1709017098
</arg>
1709117099
</function>
17100+
<!-- wxRegionContain wxRegion::Contains(const wxPoint & pt) const -->
17101+
<function name="wxRegion::Contains">
17102+
<noreturn>false</noreturn>
17103+
<leak-ignore/>
17104+
<returnValue type="wxRegionContain"/>
17105+
<use-retval/>
17106+
<const/>
17107+
<arg nr="1" default="true" direction="in"/>
17108+
</function>
1709217109
<!-- bool wxLog::IsLevelEnabled( wxLogLevel level, const wxString & component ) -->
1709317110
<!-- bool wxLogGui::IsLevelEnabled( wxLogLevel level, const wxString & component ) -->
1709417111
<function name="wxLog::IsLevelEnabled,wxLogGui::IsLevelEnabled">

test/cfg/wxwidgets.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ void unusedVariable_wxRegionIterator()
223223
wxRegionIterator a;
224224
}
225225

226+
void unusedVariable_wxRegionContain()
227+
{
228+
// cppcheck-suppress unusedVariable
229+
wxRegionContain a;
230+
}
231+
226232
void unusedVariable_wxPalette()
227233
{
228234
// cppcheck-suppress unusedVariable

0 commit comments

Comments
 (0)