]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
added newtTextboxSetHeight() and newtTextboxGetNumLines()
authorewt <ewt>
Tue, 18 Mar 1997 15:08:45 +0000 (15:08 +0000)
committerewt <ewt>
Tue, 18 Mar 1997 15:08:45 +0000 (15:08 +0000)
textbox.c

index 1dcacfba5a93a0fc24437348e01daf5ceaffea7a..1badddb67246fbf7dbacfb262aaf192460aab05e 100644 (file)
--- a/textbox.c
+++ b/textbox.c
@@ -28,6 +28,16 @@ static struct componentOps textboxOps = {
     textboxDestroy,
 } ;
 
+void newtTextboxSetHeight(newtComponent co, int height) {
+    co->height = height;
+}
+
+int newtTextboxGetNumLines(newtComponent co) {
+    struct textbox * tb = co->data;
+
+    return (tb->numLines);
+}
+
 newtComponent newtTextbox(int left, int top, int width, int height, int flags) {
     newtComponent co;
     struct textbox * tb;