• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tderandr
 

tderandr

  • tderandr
lowlevel_randr.h
1 /*
2  * Copyright © 2007 Intel Corporation
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20  * THE SOFTWARE.
21  */
22 
23 #include <X11/Xlib.h>
24 #include <X11/extensions/Xrandr.h>
25 
26 struct ScreenInfo;
27 
28 struct CrtcInfo {
29  RRCrtc id;
30  XRRCrtcInfo *info;
31  int cur_x;
32  int cur_y;
33  RRMode cur_mode_id;
34  Rotation cur_rotation;
35  Rotation rotations;
36  int cur_noutput;
37 
38  int changed;
39 
40  struct ScreenInfo *screen_info;
41 };
42 
43 struct OutputInfo {
44  RROutput id;
45  XRROutputInfo *info;
46  struct CrtcInfo *cur_crtc;
47 
48  int auto_set;
49  int off_set;
50 };
51 
52 struct ScreenInfo {
53  Display *dpy;
54  Window window;
55  XRRScreenResources *res;
56  int min_width, min_height;
57  int max_width, max_height;
58  int cur_width;
59  int cur_height;
60  int cur_mmWidth;
61  int cur_mmHeight;
62 
63  int n_output;
64  int n_crtc;
65  struct OutputInfo **outputs;
66  struct CrtcInfo **crtcs;
67 
68  int clone;
69  struct CrtcInfo *primary_crtc;
70 
71  struct CrtcInfo *cur_crtc;
72  struct OutputInfo *cur_output;
73 };
74 
75 extern struct ScreenInfo *screen_info;
76 extern const uint big_pixbuf[], small_pixbuf[];
77 
78 #ifdef __cplusplus
79 extern "C" {
80 #endif
81 void free_screen_info (struct ScreenInfo *screen_info);
82 
83 struct ScreenInfo* internal_read_screen_info (Display *);
84 
85 int internal_set_screen_size (struct ScreenInfo *screen_info);
86 void internal_output_auto (struct ScreenInfo *screen_info, struct OutputInfo *output_info);
87 void internal_output_off (struct ScreenInfo *screen_info, struct OutputInfo *output);
88 void internal_output_set_primary (struct ScreenInfo *screen_info, RROutput output_id);
89 struct CrtcInfo* internal_auto_find_crtc (struct ScreenInfo *screen_info, struct OutputInfo *output_info);
90 
91 XRRModeInfo *internal_find_mode_by_xid (struct ScreenInfo *screen_info, RRMode mode_id);
92 int internal_mode_height (XRRModeInfo *mode_info, Rotation rotation);
93 int internal_mode_width (XRRModeInfo *mode_info, Rotation rotation);
94 int internal_get_width_by_output_id (struct ScreenInfo *screen_info, RROutput output_id);
95 int internal_get_height_by_output_id (struct ScreenInfo *screen_info, RROutput output_id);
96 char *internal_get_output_name (struct ScreenInfo *screen_info, RROutput id);
97 Status internal_crtc_apply (struct CrtcInfo *crtc_info);
98 Status internal_crtc_disable (struct CrtcInfo *crtc);
99 int internal_main_low_apply (struct ScreenInfo *screen_info);
100 
101 #ifdef __cplusplus
102 }
103 #endif

tderandr

Skip menu "tderandr"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tderandr

Skip menu "tderandr"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tderandr by doxygen 1.9.1
This website is maintained by Timothy Pearson.