ui/motif/label.h

changeset 101
7b3a3130be44
parent 0
2483f517c562
--- a/ui/motif/label.h	Thu Dec 12 20:01:43 2024 +0100
+++ b/ui/motif/label.h	Mon Jan 06 22:22:55 2025 +0100
@@ -1,7 +1,7 @@
 /*
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  *
- * Copyright 2014 Olaf Wintermann. All rights reserved.
+ * Copyright 2024 Olaf Wintermann. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -29,12 +29,29 @@
 #ifndef LABEL_H
 #define	LABEL_H
 
+#include "../ui/display.h"
+#include "../common/context.h"
+
 #ifdef	__cplusplus
 extern "C" {
 #endif
 
+typedef struct UiProgressBar {
+    Widget widget;
+    GC gc;
+    UiVar *var;
+    double min;
+    double max;
+    double value;
+    Pixel color;
+} UiProgressBar;
 
 
+double ui_progressbar_get(UiDouble *d);
+void ui_progressbar_set(UiDouble *d, double value);
+
+int64_t ui_progressspinner_get(UiInteger *i);
+void ui_progressspinner_set(UiInteger *i, int64_t value);
 
 #ifdef	__cplusplus
 }

mercurial