00001 // Filename: glxGraphicsPipe.I 00002 // Created by: drose (30Oct00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: glxGraphicsPipe::get_display 00022 // Access: Public 00023 // Description: Returns a pointer to the X display associated with 00024 // the pipe: the display on which to create the windows. 00025 //////////////////////////////////////////////////////////////////// 00026 INLINE Display *glxGraphicsPipe:: 00027 get_display() const { 00028 return _display; 00029 } 00030 00031 //////////////////////////////////////////////////////////////////// 00032 // Function: glxGraphicsPipe::get_screen 00033 // Access: Public 00034 // Description: Returns the X screen number associated with the pipe. 00035 //////////////////////////////////////////////////////////////////// 00036 INLINE int glxGraphicsPipe:: 00037 get_screen() const { 00038 return _screen; 00039 } 00040 00041 //////////////////////////////////////////////////////////////////// 00042 // Function: glxGraphicsPipe::get_root 00043 // Access: Public 00044 // Description: Returns the handle to the root window on the pipe's 00045 // display. 00046 //////////////////////////////////////////////////////////////////// 00047 INLINE Window glxGraphicsPipe:: 00048 get_root() const { 00049 return _root; 00050 } 00051 00052 //////////////////////////////////////////////////////////////////// 00053 // Function: glxGraphicsPipe::get_wm_delete_window 00054 // Access: Public 00055 // Description: Returns the X atom that represents WM_DELETE_WINDOW 00056 // to the current display. 00057 //////////////////////////////////////////////////////////////////// 00058 INLINE Atom glxGraphicsPipe:: 00059 get_wm_delete_window() const { 00060 return _wm_delete_window; 00061 }