X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Futil%2Farea.h;h=c5c833805dfea2319ce6b2cbb9bada3722b8b3a0;hb=883046095800fc78649d943d2b0da22f8732d31e;hp=acea08f40873331eb40468c64e9a54a7fa6f63dd;hpb=1ef906db6652330521262656e65873ad697341d4;p=chaz%2Ftint2 diff --git a/src/util/area.h b/src/util/area.h index acea08f..c5c8338 100644 --- a/src/util/area.h +++ b/src/util/area.h @@ -7,7 +7,7 @@ * Area manage the background and border drawing, size and padding. * Each Area have 2 Pixmap (pix and pix_active). * -* Area also manage the tree of visible objects. Parent object drawn before child object. +* Area manage the tree of all objects. Parent object drawn before child object. * panel -> taskbars -> tasks * -> systray -> icons * -> clock @@ -52,6 +52,7 @@ typedef struct typedef struct { // absolute coordinate in panel int posx, posy; + // width and height including border int width, height; Pmap pix; Pmap pix_active; @@ -59,6 +60,7 @@ typedef struct { // list of child : Area object GSList *list; + int on_screen; // need compute position and width int resize; // need redraw Pixmap @@ -84,6 +86,8 @@ typedef struct { // draw background and foreground void refresh (Area *a); +void size (Area *a); + // set 'redraw' on an area and childs void set_redraw (Area *a);