Move definition of wxListIteratorFunction and ..SortFuntion to defs.h so it can be used from elsewhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8e1903816a
commit
4f47a8d0c6
@ -2666,6 +2666,21 @@ enum wxUpdateUI
|
||||
wxUPDATE_UI_FROMIDLE = 0x0002 /* Invoked from On(Internal)Idle */
|
||||
};
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------- */
|
||||
/* wxList types */
|
||||
/* ---------------------------------------------------------------------------- */
|
||||
|
||||
/* type of compare function for list sort operation (as in 'qsort'): it should
|
||||
return a negative value, 0 or positive value if the first element is less
|
||||
than, equal or greater than the second */
|
||||
|
||||
typedef int (* LINKAGEMODE wxSortCompareFunction)(const void *elem1, const void *elem2);
|
||||
|
||||
/* wxList iterator function */
|
||||
typedef int (* LINKAGEMODE wxListIterateFunction)(void *current);
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------------- */
|
||||
/* miscellaneous */
|
||||
/* ---------------------------------------------------------------------------- */
|
||||
|
@ -45,21 +45,9 @@
|
||||
// types
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// type of compare function for list sort operation (as in 'qsort'): it should
|
||||
// return a negative value, 0 or positive value if the first element is less
|
||||
// than, equal or greater than the second
|
||||
|
||||
extern "C"
|
||||
{
|
||||
typedef int (* LINKAGEMODE wxSortCompareFunction)(const void *elem1, const void *elem2);
|
||||
}
|
||||
|
||||
class WXDLLIMPEXP_FWD_BASE wxObjectListNode;
|
||||
typedef wxObjectListNode wxNode;
|
||||
|
||||
//
|
||||
typedef int (* LINKAGEMODE wxListIterateFunction)(void *current);
|
||||
|
||||
#if wxUSE_STL
|
||||
|
||||
#define wxLIST_COMPATIBILITY
|
||||
|
Loading…
Reference in New Issue
Block a user