]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
added newtEntrySet(), newtEntryAddCallback(), newtRadioGetCurrent()
authorewt <ewt>
Thu, 13 Jun 1996 21:15:03 +0000 (21:15 +0000)
committerewt <ewt>
Thu, 13 Jun 1996 21:15:03 +0000 (21:15 +0000)
newt.h

diff --git a/newt.h b/newt.h
index 62e70ae05bc0e419d7b18a9851ba7f7b394e07f2..d1675cc95adb86d64a6f0abe1258608839a17b3e 100644 (file)
--- a/newt.h
+++ b/newt.h
@@ -19,8 +19,13 @@ struct newtColors {
     char * actTextboxFg, * actTextboxBg;
 };
 
+typedef struct newtComponent * newtComponent;
+
+
 extern struct newtColors newtDefaultColorPalette;
 
+typedef void (*newtCallback)(newtComponent, void *);
+
 int newtInit(void);
 int newtFinished(void);
 void newtCls(void);
@@ -36,13 +41,12 @@ void newtRefresh(void);
 
 /* Components */
 
-typedef struct newtComponent * newtComponent;
-
 newtComponent newtButton(int left, int top, char * text);
 newtComponent newtCheckbox(int left, int top, char * text, char defValue,
                           char * seq, char * result);
 newtComponent newtRadiobutton(int left, int top, char * text, int isDefault,
                              newtComponent prevButton);
+newtComponent newtRadioGetCurrent(newtComponent setMember);
 newtComponent newtListitem(int left, int top, char * text, int isDefault,
                              newtComponent prevItem);
 
@@ -71,7 +75,8 @@ newtComponent newtRunForm(newtComponent form);
 
 newtComponent newtEntry(int left, int top, char * initialValue, int width,
                        char ** resultPtr, int flags);
-
+void newtEntrySet(newtComponent co, char * value, int cursorAtEnd);
+void newtEntryAddCallback(newtComponent co, newtCallback f, void * data);
 
 /* this also destroys all of the components (including other forms) on the 
    form */