diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2014-10-06 19:52:14 +0200 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2014-10-06 22:05:26 +0200 |
| commit | 1b3afcff1fea0d1334b50dff378a6667e264b557 (patch) | |
| tree | 28cf965ff507f6fbaf853ddb26c35c757df40740 /openbox/screen.h | |
| parent | c5c5b7b455334ec2987b0f04e18d817f6d3767d0 (diff) | |
Move common gravity application to screen.c
Diffstat (limited to 'openbox/screen.h')
| -rw-r--r-- | openbox/screen.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/screen.h b/openbox/screen.h index 673a994d..56fa6c99 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 |
