From: ewt Date: Wed, 7 Aug 1996 20:16:27 +0000 (+0000) Subject: added newtFormSetWidth() X-Git-Tag: v0-9~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ea947804adbb9445d83a4a0caf840a1b85640463;p=thirdparty%2Fnewt.git added newtFormSetWidth() --- diff --git a/form.c b/form.c index c844199..0b1fdde 100644 --- a/form.c +++ b/form.c @@ -130,6 +130,10 @@ void newtFormSetHeight(newtComponent co, int height) { co->height = height; } +void newtFormSetWidth(newtComponent co, int width) { + co->width = width; +} + void newtFormAddComponent(newtComponent co, newtComponent newco) { struct form * form = co->data; int delta; diff --git a/newt.h b/newt.h index 4f47ab7..0feba84 100644 --- a/newt.h +++ b/newt.h @@ -105,6 +105,7 @@ void newtFormSetCurrent(newtComponent co, newtComponent subco); void newtFormAddComponent(newtComponent form, newtComponent co); void newtFormAddComponents(newtComponent form, ...); void newtFormSetHeight(newtComponent co, int height); +void newtFormSetWidth(newtComponent co, int width); newtComponent newtRunForm(newtComponent form); /* obsolete */ void newtFormRun(newtComponent co, struct newtExitStruct * es); void newtDrawForm(newtComponent form);