Increased library's revision to reflect API updates
[wmaker-crm.git] / src / placement.h
blob5f7a907f9c641e1e0a0ce4d7b1e126dda9bceb0b
1 /* placement.h - window and icon placement on screen
3 * Window Maker window manager
5 * Copyright (c) 1997-2003 Alfredo K. Kojima
6 * Copyright (c) 2013 Window Maker Team
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 void PlaceIcon(WScreen *scr, int *x_ret, int *y_ret, int head);
25 /* Computes the intersecting length of two line sections */
26 int calcIntersectionLength(int p1, int l1, int p2, int l2);
28 /* Computes the intersecting area of two rectangles */
29 int calcIntersectionArea(int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2);
31 void PlaceWindow(WWindow *wwin, int *x_ret, int *y_ret, unsigned width, unsigned height);
33 /* Set the points x and y inside the screen */
34 void get_right_position_on_screen(WScreen *scr, int *x, int *y, int size_x, int size_y);