]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
added newtFormSetWidth()
authorewt <ewt>
Wed, 7 Aug 1996 20:16:27 +0000 (20:16 +0000)
committerewt <ewt>
Wed, 7 Aug 1996 20:16:27 +0000 (20:16 +0000)
form.c
newt.h

diff --git a/form.c b/form.c
index c844199d20ef94b0c30bde137778837f9139d729..0b1fddea005f2d346d889c77752413e7b906861b 100644 (file)
--- 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 4f47ab7acb463abca8167fd4ba6d37d729d41b60..0feba84359f6ee71f7b7a7937733cc8c2eee7197 100644 (file)
--- 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);