summaryrefslogtreecommitdiff
path: root/guispec.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2024-02-11 16:39:26 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2024-02-11 16:39:26 +0000
commit0ad54d136ef33d61172658e97b538f7cd6a91c26 (patch)
tree2aa2817fbebca09ef0feffc507cb9b1b0acd654e /guispec.c
parent7aeae86d36a1a04e93bb4be2216cb735acfab714 (diff)
Add a basic textbox element
Diffstat (limited to 'guispec.c')
-rw-r--r--guispec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/guispec.c b/guispec.c
index 2539182..8272594 100644
--- a/guispec.c
+++ b/guispec.c
@@ -4,8 +4,10 @@
#include "guifs.h"
-int containerprops[] = {Pbackground, Porientation};
+int containerprops[] = {Porientation};
+int textboxprops[] = {Ptext, Ptextcolour};
GuiSpec guispecs[Gmax] = {
- [Gcontainer] = { "container", drawcontainer, layoutcontainer, nelem(containerprops), containerprops}
+ [Gcontainer] = { "container", drawcontainer, layoutcontainer, 0, nelem(containerprops), containerprops},
+ [Gtextbox] = { "textbox", drawtextbox, layouttextbox, 1, nelem(textboxprops), textboxprops},
}; \ No newline at end of file