Info Panel: Add libXRes info if supported
[wmaker-crm.git] / src / xinerama.h
blobe606b5a9d685a2a40ba151be2daf0c33f9779c5a
1 /*
2 * Window Maker window manager
4 * Copyright (c) 1997-2001 Alfredo K. Kojima
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #ifndef _WMXINERAMA_H_
22 #define _WMXINERAMA_H_
24 #include "appicon.h"
25 #include "screen.h"
26 #include "window.h"
27 #include <WINGs/WINGs.h>
29 void wInitXinerama(WScreen *scr);
31 #define wXineramaHeads(scr) ((scr)->xine_info.count ? (scr)->xine_info.count : 1)
33 #define XFLAG_NONE 0x00
34 #define XFLAG_DEAD 0x01
35 #define XFLAG_MULTIPLE 0x02
36 #define XFLAG_PARTIAL 0x04
38 enum {
39 DIRECTION_LEFT,
40 DIRECTION_RIGHT,
41 DIRECTION_UP,
42 DIRECTION_DOWN
45 int wGetRectPlacementInfo(WScreen *scr, WMRect rect, int *flags);
47 int wGetHeadForRect(WScreen *scr, WMRect rect);
49 int wGetHeadForWindow(WWindow *wwin);
51 int wGetHeadRelativeToCurrentHead(WScreen *scr, int current_head, int direction);
53 int wGetHeadForPoint(WScreen *scr, WMPoint point);
55 int wGetHeadForPointerLocation(WScreen *scr);
57 WMRect wGetRectForHead(WScreen *scr, int head);
59 WArea wGetUsableAreaForHead(WScreen *scr, int head, WArea *totalAreaPtr, Bool noicons);
61 WMPoint wGetPointToCenterRectInHead(WScreen *scr, int head, int width, int height);
63 void wGetRectUnion(const WMRect *rect1, const WMRect *rect2, WMRect *dest);
65 Bool wWindowTouchesHead(WWindow *wwin, int head);
66 Bool wAppIconTouchesHead(WAppIcon *aicon, int head);
68 #endif