Add Galician translation.
[mikachu/openbox.git] / openbox / place.h
1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
2
3    place.h for the Openbox window manager
4    Copyright (c) 2006        Mikael Magnusson
5    Copyright (c) 2003-2007   Dana Jansens
6
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2 of the License, or
10    (at your option) any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    See the COPYING file for a copy of the GNU General Public License.
18 */
19
20 #ifndef ob__place_h
21 #define ob__place_h
22
23 #include "geom.h"
24
25 #include <glib.h>
26
27 struct _ObClient;
28 struct _ObAppSettings;
29
30 typedef enum
31 {
32     OB_PLACE_POLICY_SMART,
33     OB_PLACE_POLICY_MOUSE
34 } ObPlacePolicy;
35
36 typedef enum
37 {
38     OB_PLACE_MONITOR_ANY,
39     OB_PLACE_MONITOR_ACTIVE,
40     OB_PLACE_MONITOR_MOUSE,
41     OB_PLACE_MONITOR_PRIMARY,
42     OB_PLACE_MONITOR_ALL
43 } ObPlaceMonitor;
44
45 /*! Return TRUE if openbox chose the position for the window, and FALSE if
46   the application chose it */
47 gboolean place_client(struct _ObClient *client,
48                       gboolean client_to_be_foregrounded,
49                       Rect* client_area, struct _ObAppSettings *settings);
50
51 #endif