diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2024-02-11 16:39:26 +0000 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2024-02-11 16:39:26 +0000 |
commit | 0ad54d136ef33d61172658e97b538f7cd6a91c26 (patch) | |
tree | 2aa2817fbebca09ef0feffc507cb9b1b0acd654e /guispec.c | |
parent | 7aeae86d36a1a04e93bb4be2216cb735acfab714 (diff) |
Add a basic textbox element
Diffstat (limited to 'guispec.c')
-rw-r--r-- | guispec.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |