tinyXGraphicsPipe.I 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // Filename: tinyXGraphicsPipe.I
  2. // Created by: drose (03May08)
  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. // Function: TinyXGraphicsPipe::get_display
  16. // Access: Public
  17. // Description: Returns a pointer to the X display associated with
  18. // the pipe: the display on which to create the windows.
  19. ////////////////////////////////////////////////////////////////////
  20. INLINE Display *TinyXGraphicsPipe::
  21. get_display() const {
  22. return _display;
  23. }
  24. ////////////////////////////////////////////////////////////////////
  25. // Function: TinyXGraphicsPipe::get_screen
  26. // Access: Public
  27. // Description: Returns the X screen number associated with the pipe.
  28. ////////////////////////////////////////////////////////////////////
  29. INLINE int TinyXGraphicsPipe::
  30. get_screen() const {
  31. return _screen;
  32. }
  33. ////////////////////////////////////////////////////////////////////
  34. // Function: TinyXGraphicsPipe::get_root
  35. // Access: Public
  36. // Description: Returns the handle to the root window on the pipe's
  37. // display.
  38. ////////////////////////////////////////////////////////////////////
  39. INLINE Window TinyXGraphicsPipe::
  40. get_root() const {
  41. return _root;
  42. }
  43. ////////////////////////////////////////////////////////////////////
  44. // Function: TinyXGraphicsPipe::get_im
  45. // Access: Public
  46. // Description: Returns the input method opened for the pipe, or NULL
  47. // if the input method could not be opened for some
  48. // reason.
  49. ////////////////////////////////////////////////////////////////////
  50. INLINE XIM TinyXGraphicsPipe::
  51. get_im() const {
  52. return _im;
  53. }
  54. ////////////////////////////////////////////////////////////////////
  55. // Function: TinyXGraphicsPipe::get_hidden_cursor
  56. // Access: Public
  57. // Description: Returns an invisible Cursor suitable for assigning to
  58. // windows that have the cursor_hidden property set.
  59. ////////////////////////////////////////////////////////////////////
  60. INLINE Cursor TinyXGraphicsPipe::
  61. get_hidden_cursor() {
  62. if (_hidden_cursor == None) {
  63. make_hidden_cursor();
  64. }
  65. return _hidden_cursor;
  66. }