merge in my changes from soc-krdc branch
[kdenetwork.git] / krdc / vidmode.h
blobab17e1b568b560477fa1637984ee14ccce914fee
1 /***************************************************************************
2 vidmode.h - video mode switching
3 -------------------
4 begin : Tue June 3 03:11:00 CET 2002
5 copyright : (C) 2002 by Tim Jansen
6 email : tim@tjansen.de
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef VIDMODE_H
19 #define VIDMODE_H
21 struct Resolution {
22 Resolution(int w, int h, int s) :
23 valid(true), width(w), height(h), screen(s) {
25 Resolution() :
26 valid(false), width(0), height(0), screen(0) {
28 bool valid;
29 int width;
30 int height;
31 int screen;
34 void vidmodeNormalSwitch(Display *dpy, Resolution oldResolution);
35 Resolution vidmodeFullscreenSwitch(Display *dpy, int screen, int sw, int sh, int &nx, int &ny);
37 void grabInput(Display *dpy, unsigned int winId);
38 void ungrabInput(Display *dpy);
40 #endif