implement button label type (Server) default tip

Sun, 14 Dec 2025 21:03:19 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 14 Dec 2025 21:03:19 +0100
changeset 1007
a2070417b280
parent 1006
ee62f3829271

implement button label type (Server)

ui/server/button.c file | annotate | diff | comparison | revisions
--- a/ui/server/button.c	Sun Dec 14 20:22:41 2025 +0100
+++ b/ui/server/button.c	Sun Dec 14 21:03:19 2025 +0100
@@ -43,7 +43,7 @@
     
     UI_STANDARD_ARGS(&buf, args);
     UI_LABEL_ARGS(&buf, args);
-    // TODO: labeltype, states
+    if(args->labeltype != UI_LABEL_DEFAULT) ui_argstr_add_int(&buf, "labeltype", (int)args->labeltype);
     
     if(buf.size > 0 && buf.space[buf.size-1] == ',') {
         buf.space[buf.size-1] = ' ';
@@ -61,7 +61,7 @@
     UI_STANDARD_ARGS(&buf, args);
     UI_LABEL_ARGS(&buf, args);
     if(value.ptr) ui_argstr_add_str(&buf, "value", value.ptr);
-    // TODO: labeltype, states
+    if(args->labeltype != UI_LABEL_DEFAULT) ui_argstr_add_int(&buf, "labeltype", (int)args->labeltype);
     
     if(buf.size > 0 && buf.space[buf.size-1] == ',') {
         buf.space[buf.size-1] = ' ';

mercurial