Panda3D
 All Classes Functions Variables Enumerations
eglGraphicsPipe.I
1 // Filename: eglGraphicsPipe.I
2 // Created by: pro-rsoft (21May09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: eglGraphicsPipe::get_display
18 // Access: Public
19 // Description: Returns a pointer to the X display associated with
20 // the pipe: the display on which to create the windows.
21 ////////////////////////////////////////////////////////////////////
22 INLINE X11_Display *eglGraphicsPipe::
23 get_display() const {
24  return _display;
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: eglGraphicsPipe::get_screen
29 // Access: Public
30 // Description: Returns the X screen number associated with the pipe.
31 ////////////////////////////////////////////////////////////////////
32 INLINE int eglGraphicsPipe::
33 get_screen() const {
34  return _screen;
35 }
36 
37 ////////////////////////////////////////////////////////////////////
38 // Function: eglGraphicsPipe::get_root
39 // Access: Public
40 // Description: Returns the handle to the root window on the pipe's
41 // display.
42 ////////////////////////////////////////////////////////////////////
43 INLINE X11_Window eglGraphicsPipe::
44 get_root() const {
45  return _root;
46 }
47 
48 ////////////////////////////////////////////////////////////////////
49 // Function: eglGraphicsPipe::get_im
50 // Access: Public
51 // Description: Returns the input method opened for the pipe, or NULL
52 // if the input method could not be opened for some
53 // reason.
54 ////////////////////////////////////////////////////////////////////
55 INLINE XIM eglGraphicsPipe::
56 get_im() const {
57  return _im;
58 }
59 
60 ////////////////////////////////////////////////////////////////////
61 // Function: eglGraphicsPipe::get_hidden_cursor
62 // Access: Public
63 // Description: Returns an invisible Cursor suitable for assigning to
64 // windows that have the cursor_hidden property set.
65 ////////////////////////////////////////////////////////////////////
66 INLINE X11_Cursor eglGraphicsPipe::
68  if (_hidden_cursor == None) {
69  make_hidden_cursor();
70  }
71  return _hidden_cursor;
72 }
X11_Window get_root() const
Returns the handle to the root window on the pipe's display.
XIM get_im() const
Returns the input method opened for the pipe, or NULL if the input method could not be opened for som...
X11_Cursor get_hidden_cursor()
Returns an invisible Cursor suitable for assigning to windows that have the cursor_hidden property se...
int get_screen() const
Returns the X screen number associated with the pipe.
X11_Display * get_display() const
Returns a pointer to the X display associated with the pipe: the display on which to create the windo...