From: ewt Date: Tue, 18 Mar 1997 15:08:45 +0000 (+0000) Subject: added newtTextboxSetHeight() and newtTextboxGetNumLines() X-Git-Tag: v0-9~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b5d9a600a65e1c8d77224d1ca4c7e10748d767a;p=thirdparty%2Fnewt.git added newtTextboxSetHeight() and newtTextboxGetNumLines() --- diff --git a/textbox.c b/textbox.c index 1dcacfb..1badddb 100644 --- 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;