From: ewt Date: Mon, 17 Feb 1997 17:02:20 +0000 (+0000) Subject: changes for sopwith's revised listbox X-Git-Tag: v0-9~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0f890b314d53af38cda6196ce20af512f9a0bbfd;p=thirdparty%2Fnewt.git changes for sopwith's revised listbox --- diff --git a/newt.h b/newt.h index 86f79a1..927323a 100644 --- a/newt.h +++ b/newt.h @@ -94,12 +94,16 @@ void newtScrollbarSet(newtComponent co, int where, int total); #define NEWT_LISTBOX_RETURNEXIT (1 << 0) newtComponent newtListbox(int left, int top, int height, int flags); -/* return the data passed to AddEntry */ void * newtListboxGetCurrent(newtComponent co); void newtListboxSetCurrent(newtComponent co, int num); -int newtListboxAddEntry(newtComponent co, char * text, void * data); +void newtListboxSetText(newtComponent co, int num, char * text); void newtListboxSetEntry(newtComponent co, int num, char * text); +/* return the data passed to AddEntry */ +void newtListboxSetData(newtComponent co, int num, void * data); +int newtListboxAddEntry(newtComponent co, char * text, void * data); +int newtListboxInsertEntry(newtComponent co, char * text, void * data, int num); int newtListboxDeleteEntry(newtComponent co, int num); +void newtListboxGetEntry(newtComponent co, int num, char **text, void **data); #define NEWT_TEXTBOX_WRAP (1 << 0) #define NEWT_TEXTBOX_SCROLL (1 << 1)