]> Dogcows Code - chaz/tint2/blobdiff - src/util/area.h
adjust tooltip position (mrovi)
[chaz/tint2] / src / util / area.h
index fc294f3ea7fdd69358f2a12d32da8637b7f536cf..be81b79cd88c783c4f8199c0f4e9daf0e6bd6ae9 100644 (file)
@@ -47,6 +47,10 @@ typedef struct
 } Background;
 
 
+// way to calculate the size
+// SIZE_BY_LAYOUT objects : taskbar and task
+// SIZE_BY_CONTENT objects : clock, battery, launcher, systray
+enum { SIZE_BY_LAYOUT, SIZE_BY_CONTENT };
 
 typedef struct {
        // coordinate relative to panel window
@@ -59,8 +63,11 @@ typedef struct {
        // list of child : Area object
        GSList *list;
 
+       // object visible on screen
        int on_screen;
-       // need compute position and width
+       // way to calculate the size (SIZE_BY_CONTENT or SIZE_BY_LAYOUT)
+       int size_mode;
+       // need to calculate position and width
        int resize;
        // need redraw Pixmap
        int redraw;
This page took 0.023389 seconds and 4 git commands to generate.