X-Git-Url: http://git.openbox.org/?p=dana%2Fopenbox.git;a=blobdiff_plain;f=openbox%2Fscreen.h;h=56fa6c9939a2b8adcf4c31f859fa306e08538884;hp=673a994d36a76286bdcddf8477f5a9aaeab20298;hb=1b3afcff1fea0d1334b50dff378a6667e264b557;hpb=c5c5b7b455334ec2987b0f04e18d817f6d3767d0;ds=sidebyside diff --git a/openbox/screen.h b/openbox/screen.h index 673a994..56fa6c9 100644 --- a/openbox/screen.h +++ b/openbox/screen.h @@ -182,4 +182,9 @@ guint screen_monitor_pointer(void); */ gboolean screen_compare_desktops(guint a, guint b); +/*! Resolve a gravity point into absolute coordinates. + * width and height are the size of the object being placed, used for + * aligning to right/bottom edges of the area. */ +void screen_apply_gravity_point(gint *x, gint *y, gint width, gint height, + GravityPoint *position, const Rect *area); #endif