From 0ad54d136ef33d61172658e97b538f7cd6a91c26 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sun, 11 Feb 2024 16:39:26 +0000 Subject: Add a basic textbox element --- guispec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'guispec.c') 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 -- cgit v1.2.3