]> mj.ucw.cz Git - osdd.git/blobdiff - display.h
Python: Cleaned up the Python library
[osdd.git] / display.h
index 48ffb0be3783377ea26828d11e7d92bae0dd2d3f..953ef937664c04fc25a099a7407c99720c457c2c 100644 (file)
--- a/display.h
+++ b/display.h
@@ -1,7 +1,7 @@
 /*
  *     On-screen Display
  *
- *     (c) 2013 Martin Mares <mj@ucw.cz>
+ *     (c) 2013--2014 Martin Mares <mj@ucw.cz>
  */
 
 #include <stdbool.h>
@@ -24,6 +24,7 @@ struct osd_line {
   int outline_width;
   union {                                      // Data dependent on type
     char text[OSD_MAX_LINE_LEN];               // in UTF-8
+    unsigned int percent;                      // 0..100 for percentages and slider
   } u;
 
   // Used internally
@@ -31,6 +32,9 @@ struct osd_line {
   int height;
   int x_pos;
   int y_pos;
+  int slider_unit;
+  int slider_space;
+  int slider_units;
 };
 
 struct osd_state *osd_new(Display *dpy);