+#include <slang/slang.h>
#include <stdarg.h>
#include <stdlib.h>
return co;
}
+newtComponent newtFormGetCurrent(newtComponent co) {
+ struct form * form = co->data;
+
+ return form->elements[form->currComp].co;
+}
+
void newtFormSetHeight(newtComponent co, int height) {
struct form * form = co->data;
form->numComps++;
- if ((newco->top + newco->height - co->top) > form->numRows) {
- form->numRows = newco->top + newco->height - co->top;
- }
-
if (co->left == -1) {
co->left = newco->left;
co->top = newco->top;
co->height = (newco->top + newco->height) - co->top;
}
}
+
+ if ((newco->top + newco->height - co->top) > form->numRows) {
+ form->numRows = newco->top + newco->height - co->top;
+ }
+
}
void newtFormAddComponents(newtComponent co, ...) {