~profzoom/ubuntu/quantal/wmaker/bug-1079925

« back to all changes in this revision

Viewing changes to src/xinerama.h

  • Committer: Bazaar Package Importer
  • Author(s): Marcelo E. Magallon
  • Date: 2004-11-10 14:05:30 UTC
  • Revision ID: james.westby@ubuntu.com-20041110140530-qpd66b5lm38x7apk
Tags: upstream-0.91.0
ImportĀ upstreamĀ versionĀ 0.91.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Window Maker window manager
 
3
 *
 
4
 *  Copyright (c) 1997-2001 Alfredo K. Kojima
 
5
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with this program; if not, write to the Free Software
 
18
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 
19
 *  USA.
 
20
 */
 
21
 
 
22
#ifndef _WMXINERAMA_H_
 
23
#define _WMXINERAMA_H_
 
24
 
 
25
#include "screen.h"
 
26
#include "window.h"
 
27
#include <WINGs/WINGs.h>
 
28
 
 
29
void wInitXinerama(WScreen *scr);
 
30
 
 
31
#define wXineramaHeads(scr) ((scr)->xine_info.count ? (scr)->xine_info.count : 1)
 
32
 
 
33
#define XFLAG_NONE      0x00
 
34
#define XFLAG_DEAD      0x01
 
35
#define XFLAG_MULTIPLE  0x02
 
36
#define XFLAG_PARTIAL   0x04
 
37
 
 
38
int wGetRectPlacementInfo(WScreen *scr, WMRect rect, int *flags);
 
39
 
 
40
int wGetHeadForRect(WScreen *scr, WMRect rect);
 
41
 
 
42
int wGetHeadForWindow(WWindow *wwin);
 
43
 
 
44
int wGetHeadForPoint(WScreen *scr, WMPoint point);
 
45
 
 
46
int wGetHeadForPointerLocation(WScreen *scr);
 
47
 
 
48
WMRect wGetRectForHead(WScreen *scr, int head);
 
49
 
 
50
WArea wGetUsableAreaForHead(WScreen *scr, int head, WArea *totalAreaPtr, Bool noicons);
 
51
 
 
52
WMPoint wGetPointToCenterRectInHead(WScreen *scr, int head, int width, int height);
 
53
 
 
54
Bool wWindowTouchesHead(WWindow *wwin, int head);
 
55
 
 
56
#endif
 
57
 
 
58
 
 
59