From ea947804adbb9445d83a4a0caf840a1b85640463 Mon Sep 17 00:00:00 2001 From: ewt Date: Wed, 7 Aug 1996 20:16:27 +0000 Subject: [PATCH] added newtFormSetWidth() --- form.c | 4 ++++ newt.h | 1 + 2 files changed, 5 insertions(+) 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); -- 2.47.2