X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4290e8ed3b8a99f9bbd4533ce7abac4186eb4e77..ff3fd98a080f92ed9123d938d0eb26997cae5bea:/interface/wx/utils.h?ds=sidebyside diff --git a/interface/wx/utils.h b/interface/wx/utils.h index d1121780e6..534b610ea6 100644 --- a/interface/wx/utils.h +++ b/interface/wx/utils.h @@ -422,6 +422,27 @@ wxString wxLoadUserResource(const wxString& resourceName, */ void wxPostDelete(wxObject* object); + +/** + Compare function type for use with wxQsort() + + @header{wx/utils.h} +*/ +extern "C" +{ +typedef int (wxCMPFUNC_CONV *CMPFUNCDATA)(const void* pItem1, const void* pItem2, const void* user_data); +} + +/** + Function for performing a qsort operation including a user data + parameter. + + @header{wx/utils.h} +*/ +void wxQsort(void *const pbase, size_t total_elems, + size_t size, CMPFUNCDATA cmp, const void* user_data); + + /** Under X only, sets the current display name. This is the X host and display name such as "colonsay:0.0", and the function indicates which display