]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
changes for sopwith's revised listbox
authorewt <ewt>
Mon, 17 Feb 1997 17:02:20 +0000 (17:02 +0000)
committerewt <ewt>
Mon, 17 Feb 1997 17:02:20 +0000 (17:02 +0000)
newt.h

diff --git a/newt.h b/newt.h
index 86f79a1a2163a29b0b1cf4401783116b1c90f637..927323a4c523385c1ce6aae78d419de7ece915d2 100644 (file)
--- 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)