ui/motif/label.h

changeset 101
7b3a3130be44
parent 0
2483f517c562
equal deleted inserted replaced
100:d2bd73d28ff1 101:7b3a3130be44
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2014 Olaf Wintermann. All rights reserved. 4 * Copyright 2024 Olaf Wintermann. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
27 */ 27 */
28 28
29 #ifndef LABEL_H 29 #ifndef LABEL_H
30 #define LABEL_H 30 #define LABEL_H
31 31
32 #include "../ui/display.h"
33 #include "../common/context.h"
34
32 #ifdef __cplusplus 35 #ifdef __cplusplus
33 extern "C" { 36 extern "C" {
34 #endif 37 #endif
35 38
39 typedef struct UiProgressBar {
40 Widget widget;
41 GC gc;
42 UiVar *var;
43 double min;
44 double max;
45 double value;
46 Pixel color;
47 } UiProgressBar;
36 48
37 49
50 double ui_progressbar_get(UiDouble *d);
51 void ui_progressbar_set(UiDouble *d, double value);
52
53 int64_t ui_progressspinner_get(UiInteger *i);
54 void ui_progressspinner_set(UiInteger *i, int64_t value);
38 55
39 #ifdef __cplusplus 56 #ifdef __cplusplus
40 } 57 }
41 #endif 58 #endif
42 59

mercurial