From 8b68158d4d34cef9afbaa8938a60d0fbf867111d Mon Sep 17 00:00:00 2001 From: ewt Date: Thu, 20 Jun 1996 00:45:12 +0000 Subject: [PATCH] made newtDrawFrom externally visible --- form.c | 9 ++++----- newt.h | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/form.c b/form.c index 5ca5491..bf355f9 100644 --- a/form.c +++ b/form.c @@ -30,13 +30,12 @@ struct form { 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, } ; @@ -163,7 +162,7 @@ void newtFormAddComponents(newtComponent co, ...) { va_end(ap); } -static void formDraw(newtComponent co) { +void newtDrawForm(newtComponent co) { struct form * form = co->data; struct element * el; int i; @@ -284,7 +283,7 @@ static struct eventResult formEvent(newtComponent co, struct event ev) { if (form->vertOffset < 0) form->vertOffset = 0; - formDraw(co); + newtDrawForm(co); } gotoComponent(form, new); @@ -323,7 +322,7 @@ newtComponent newtRunForm(newtComponent co) { int key; /* first, draw all of the components */ - formDraw(co); + newtDrawForm(co); if (form->currComp == -1) { gotoComponent(form, 0); diff --git a/newt.h b/newt.h index b7531f6..ec1c932 100644 --- a/newt.h +++ b/newt.h @@ -76,6 +76,7 @@ void newtFormAddComponent(newtComponent form, newtComponent co); 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) -- 2.47.2