X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Futil%2Farea.h;h=be81b79cd88c783c4f8199c0f4e9daf0e6bd6ae9;hb=4c60717430896e520cf7255dbc9874a7990dd531;hp=fc294f3ea7fdd69358f2a12d32da8637b7f536cf;hpb=5b512dac5fd1ac69cbd15e995442391cc0a984fc;p=chaz%2Ftint2 diff --git a/src/util/area.h b/src/util/area.h index fc294f3..be81b79 100644 --- a/src/util/area.h +++ b/src/util/area.h @@ -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;