Variable last_workspace moved to workspace object in global namespace
[wmaker-crm.git] / src / placement.h
blobd3455ee3e0b12c66f19ccf551c4d7af70cf5796f
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 #ifndef PLACEMENT_H
24 #define PLACEMENT_H
26 void PlaceIcon(WScreen *scr, int *x_ret, int *y_ret, int head);
28 /* Computes the intersecting length of two line sections */
29 int calcIntersectionLength(int p1, int l1, int p2, int l2);
31 /* Computes the intersecting area of two rectangles */
32 int calcIntersectionArea(int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2);
34 void PlaceWindow(WWindow *wwin, int *x_ret, int *y_ret, unsigned width, unsigned height);
36 void InteractivePlaceWindow(WWindow * wwin, int *x_ret, int *y_ret, unsigned width, unsigned height);
38 /* Set the points x and y inside the screen */
39 void get_right_position_on_screen(WScreen *scr, int *x, int *y, int size_x, int size_y);
41 #endif /* PLACEMENT_H */