Panda3D
|
00001 // Filename: eglGraphicsPipe.I 00002 // Created by: pro-rsoft (21May09) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: eglGraphicsPipe::get_display 00018 // Access: Public 00019 // Description: Returns a pointer to the X display associated with 00020 // the pipe: the display on which to create the windows. 00021 //////////////////////////////////////////////////////////////////// 00022 INLINE X11_Display *eglGraphicsPipe:: 00023 get_display() const { 00024 return _display; 00025 } 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: eglGraphicsPipe::get_screen 00029 // Access: Public 00030 // Description: Returns the X screen number associated with the pipe. 00031 //////////////////////////////////////////////////////////////////// 00032 INLINE int eglGraphicsPipe:: 00033 get_screen() const { 00034 return _screen; 00035 } 00036 00037 //////////////////////////////////////////////////////////////////// 00038 // Function: eglGraphicsPipe::get_root 00039 // Access: Public 00040 // Description: Returns the handle to the root window on the pipe's 00041 // display. 00042 //////////////////////////////////////////////////////////////////// 00043 INLINE X11_Window eglGraphicsPipe:: 00044 get_root() const { 00045 return _root; 00046 } 00047 00048 //////////////////////////////////////////////////////////////////// 00049 // Function: eglGraphicsPipe::get_im 00050 // Access: Public 00051 // Description: Returns the input method opened for the pipe, or NULL 00052 // if the input method could not be opened for some 00053 // reason. 00054 //////////////////////////////////////////////////////////////////// 00055 INLINE XIM eglGraphicsPipe:: 00056 get_im() const { 00057 return _im; 00058 } 00059 00060 //////////////////////////////////////////////////////////////////// 00061 // Function: eglGraphicsPipe::get_hidden_cursor 00062 // Access: Public 00063 // Description: Returns an invisible Cursor suitable for assigning to 00064 // windows that have the cursor_hidden property set. 00065 //////////////////////////////////////////////////////////////////// 00066 INLINE X11_Cursor eglGraphicsPipe:: 00067 get_hidden_cursor() { 00068 if (_hidden_cursor == None) { 00069 make_hidden_cursor(); 00070 } 00071 return _hidden_cursor; 00072 }