blob: cd3074e481720543e35b8926b0309d78b7ae9d6a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<<SortItems
case ~s: { // wxListCtrl::SortItems taylormade
wxListCtrl *This = (wxListCtrl *) getPtr(bp,memenv); bp += 4;
int sortCallback=*(int *) bp; bp += 4;
if(!This) throw wxe_badarg(0);
callbackInfo* cb = new callbackInfo();
cb->port = Ecmd.port;
cb->callbackID = sortCallback;
bool Result = This->SortItems(wxEListCtrlCompare, (long)cb);
delete cb;
/* Destroy the callback, see wxEPrintout::clear_cb */
wxeReturn cbrt = wxeReturn(WXE_DRV_PORT, memenv->owner, false);
// NOTE: Remove this later when changing from funs to gen_server
cbrt.addAtom("wx_delete_cb");
cbrt.addInt(sortCallback);
cbrt.addTupleCount(2);
cbrt.send();
rt.addBool(Result);
break;
}
SortItems>>
|