blob: 40d2d2e72650d5dc29b8d8faeb06f6ac4c0ea1b0 [file] [log] [blame]
Peter Åstrand (astrand)11736372018-03-07 09:29:00 +01001/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
2 * Copyright 2011-2015 Pierre Ossman for Cendio AB
3 *
4 * This is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This software is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this software; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
17 * USA.
18 */
19
20/*
21 This header defines an interface for X RandR operations. It is
22 implemented by a corresponding RandrGlue.c, either with internal
23 calls (for Xvnc/vncmodule.so) or Xlib calls (x0vncserver).
24 */
25
26#ifndef RANDR_GLUE_H
27#define RANDR_GLUE_H
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33int vncGetScreenWidth(int scrIdx);
34int vncGetScreenHeight(int scrIdx);
35
36int vncRandRResizeScreen(int scrIdx, int width, int height);
37void vncRandRUpdateSetTime(int scrIdx);
38
39int vncRandRHasOutputClones(int scrIdx);
40
41int vncRandRGetOutputCount(int scrIdx);
42int vncRandRGetAvailableOutputs(int scrIdx);
43
44char *vncRandRGetOutputName(int scrIdx, int outputIdx);
45
46int vncRandRIsOutputEnabled(int scrIdx, int outputIdx);
47int vncRandRIsOutputUsable(int scrIdx, int outputIdx);
48
49int vncRandRDisableOutput(int scrIdx, int outputIdx);
50int vncRandRReconfigureOutput(int scrIdx, int outputIdx, int x, int y,
51 int width, int height);
52
53unsigned int vncRandRGetOutputId(int scrIdx, int outputIdx);
54void vncRandRGetOutputDimensions(int scrIdx, int outputIdx,
55 int *x, int *y, int *width, int *height);
56
57int vncRandRCreateOutputs(int scrIdx, int extraOutputs);
58void *vncRandRCreatePreferredMode(void *output, int width, int height);
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif