Add some handy functions for getting top_shelf/bottom_panel position and size.
authorChristopher Michael <cpmichael1@comcast.net>
Thu, 17 Dec 2009 23:47:48 +0000 (23:47 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Thu, 17 Dec 2009 23:47:48 +0000 (23:47 +0000)
SVN revision: 44530

src/modules/illume2/e_mod_layout.c
src/modules/illume2/e_mod_layout.h

index c116258..b4b3071 100644 (file)
@@ -429,6 +429,46 @@ illume_border_bottom_panel_get(void)
    return b;
 }
 
+void 
+illume_border_top_shelf_pos_get(int *x, int *y) 
+{
+   E_Border *bd;
+
+   if (!(bd = illume_border_top_shelf_get())) return;
+   if (x) *x = bd->x;
+   if (y) *y = bd->y;
+}
+
+void 
+illume_border_top_shelf_size_get(int *w, int *h) 
+{
+   E_Border *bd;
+
+   if (!(bd = illume_border_top_shelf_get())) return;
+   if (w) *w = bd->w;
+   if (h) *h = bd->h;
+}
+
+void 
+illume_border_bottom_panel_pos_get(int *x, int *y) 
+{
+   E_Border *bd;
+
+   if (!(bd = illume_border_bottom_panel_get())) return;
+   if (x) *x = bd->x;
+   if (y) *y = bd->y;
+}
+
+void 
+illume_border_bottom_panel_size_get(int *w, int *h) 
+{
+   E_Border *bd;
+
+   if (!(bd = illume_border_bottom_panel_get())) return;
+   if (w) *w = bd->w;
+   if (h) *h = bd->h;
+}
+
 void
 illume_border_slide_to(E_Border *bd, int x, int y, Illume_Anim_Class aclass)
 {
index 4026bd1..054a98c 100644 (file)
@@ -64,7 +64,8 @@ E_Border *illume_border_top_shelf_get(void);
 E_Border *illume_border_bottom_panel_get(void);
 void illume_border_top_shelf_pos_get(int *x, int *y);
 void illume_border_top_shelf_size_get(int *w, int *h);
-void illume_border_top_shelf_safe_region_get(E_Zone *zone, int *x, int *y, int *w, int *h);
+void illume_border_bottom_panel_pos_get(int *x, int *y);
+void illume_border_bottom_panel_size_get(int *w, int *h);
 void illume_border_slide_to(E_Border *bd, int x, int y, Illume_Anim_Class aclass);
 void illume_border_min_get(E_Border *bd, int *mw, int *mh);