int numRows;
};
-static void formDraw(newtComponent co);
static void gotoComponent(struct form * form, int newComp);
static struct eventResult formEvent(newtComponent co, struct event ev);
static struct eventResult sendEvent(newtComponent comp, struct event ev);
static struct componentOps formOps = {
- formDraw,
+ newtDrawForm,
formEvent,
newtFormDestroy,
} ;
va_end(ap);
}
-static void formDraw(newtComponent co) {
+void newtDrawForm(newtComponent co) {
struct form * form = co->data;
struct element * el;
int i;
if (form->vertOffset < 0) form->vertOffset = 0;
- formDraw(co);
+ newtDrawForm(co);
}
gotoComponent(form, new);
int key;
/* first, draw all of the components */
- formDraw(co);
+ newtDrawForm(co);
if (form->currComp == -1) {
gotoComponent(form, 0);
void newtFormAddComponents(newtComponent form, ...);
void newtFormSetHeight(newtComponent co, int height);
newtComponent newtRunForm(newtComponent form);
+void newtDrawForm(newtComponent form);
#define NEWT_ENTRY_SCROLL (1 << 0)
#define NEWT_ENTRY_HIDDEN (1 << 1)