diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-16 21:11:39 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-16 21:11:39 +0000 |
| commit | f8a47de5ec444c452093371e3db16857eb39a490 (patch) | |
| tree | 31db2567842d98232775f9980f7a8d2586c0ac71 /openbox/frame.h | |
| parent | 8ba0586bcbdc7fe9648f1063812126d71a041670 (diff) | |
merge the C branch into HEAD
Diffstat (limited to 'openbox/frame.h')
| -rw-r--r-- | openbox/frame.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/openbox/frame.h b/openbox/frame.h new file mode 100644 index 00000000..ec530934 --- /dev/null +++ b/openbox/frame.h @@ -0,0 +1,31 @@ +#ifndef __frame_h +#define __frame_h + +#include "geom.h" +#include "client.h" + +typedef struct Frame { + Client *client; + + Window window; + Window plate; + + Strut size; + Rect area; + gboolean visible; +} Frame; + +/*! Applies gravity to the client's position to find where the frame should + be positioned. + @return The proper coordinates for the frame, based on the client. +*/ +void frame_client_gravity(Frame *self, int *x, int *y); + +/*! Reversly applies gravity to the frame's position to find where the client + should be positioned. + @return The proper coordinates for the client, based on the frame. +*/ +void frame_frame_gravity(Frame *self, int *x, int *y); + + +#endif |
