forked from enlightenment/enlightenment
Add some handy functions for getting top_shelf/bottom_panel position and size.
SVN revision: 44530
This commit is contained in:
parent
7991d5bd15
commit
fbf2f44a55
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue