Panda3D
|
This graphics pipe represents the interface for creating graphics windows on an X-based client. More...
#include "x11GraphicsPipe.h"
Public Member Functions | |
x11GraphicsPipe (const string &display=string()) | |
virtual TypeHandle | force_init_type () |
X11_Display * | get_display () const |
Returns a pointer to the X display associated with the pipe: the display on which to create the windows. | |
X11_Cursor | get_hidden_cursor () |
Returns an invisible Cursor suitable for assigning to windows that have the cursor_hidden property set. | |
XIM | get_im () const |
Returns the input method opened for the pipe, or NULL if the input method could not be opened for some reason. | |
virtual PreferredWindowThread | get_preferred_window_thread () const |
Returns an indication of the thread in which this GraphicsPipe requires its window processing to be performed: typically either the app thread (e.g. | |
X11_Window | get_root () const |
Returns the handle to the root window on the pipe's display. | |
int | get_screen () const |
Returns the X screen number associated with the pipe. | |
virtual TypeHandle | get_type () const |
Static Public Member Functions | |
static int | disable_x_error_messages () |
Globally disables the printing of error messages that are raised by the X11 system, for instance in order to test whether a particular X11 operation will succeed. | |
static int | enable_x_error_messages () |
Reenables the printing of error messages after a previous call to disable_x_error_messages(). | |
static TypeHandle | get_class_type () |
static int | get_x_error_count () |
Returns the number of times an error indication has been raised by the X11 system since application start, including errors raised while error messages were disabled. | |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Public Attributes | |
Atom | _net_wm_state |
Atom | _net_wm_state_above |
Atom | _net_wm_state_add |
Atom | _net_wm_state_below |
Atom | _net_wm_state_fullscreen |
Atom | _net_wm_state_remove |
Atom | _net_wm_window_type |
Atom | _net_wm_window_type_fullscreen |
Atom | _net_wm_window_type_splash |
Atom | _wm_delete_window |
Static Public Attributes | |
static LightReMutex | _x_mutex |
Protected Attributes | |
X11_Display * | _display |
X11_Cursor | _hidden_cursor |
XIM | _im |
X11_Window | _root |
int | _screen |
This graphics pipe represents the interface for creating graphics windows on an X-based client.
Definition at line 33 of file x11GraphicsPipe.h.
int x11GraphicsPipe::disable_x_error_messages | ( | ) | [inline, static] |
Globally disables the printing of error messages that are raised by the X11 system, for instance in order to test whether a particular X11 operation will succeed.
Reenable error messages with a later call to enable_x_error_messages().
The return value is the current value of get_x_error_count().
Definition at line 87 of file x11GraphicsPipe.I.
Referenced by glxGraphicsPixmap::open_buffer().
int x11GraphicsPipe::enable_x_error_messages | ( | ) | [inline, static] |
Reenables the printing of error messages after a previous call to disable_x_error_messages().
The return value is the current value of get_x_error_count().
Definition at line 102 of file x11GraphicsPipe.I.
Referenced by glxGraphicsPixmap::open_buffer().
X11_Display * x11GraphicsPipe::get_display | ( | ) | const [inline] |
Returns a pointer to the X display associated with the pipe: the display on which to create the windows.
Definition at line 23 of file x11GraphicsPipe.I.
Referenced by glxGraphicsBuffer::open_buffer(), and glxGraphicsWindow::open_window().
X11_Cursor x11GraphicsPipe::get_hidden_cursor | ( | ) | [inline] |
Returns an invisible Cursor suitable for assigning to windows that have the cursor_hidden property set.
Definition at line 67 of file x11GraphicsPipe.I.
Referenced by x11GraphicsWindow::mouse_mode_relative(), x11GraphicsWindow::open_window(), and x11GraphicsWindow::set_properties_now().
XIM x11GraphicsPipe::get_im | ( | ) | const [inline] |
Returns the input method opened for the pipe, or NULL if the input method could not be opened for some reason.
Definition at line 56 of file x11GraphicsPipe.I.
Referenced by x11GraphicsWindow::open_window().
GraphicsPipe::PreferredWindowThread x11GraphicsPipe::get_preferred_window_thread | ( | ) | const [virtual] |
Returns an indication of the thread in which this GraphicsPipe requires its window processing to be performed: typically either the app thread (e.g.
X) or the draw thread (Windows).
Reimplemented from GraphicsPipe.
Definition at line 172 of file x11GraphicsPipe.cxx.
X11_Window x11GraphicsPipe::get_root | ( | ) | const [inline] |
Returns the handle to the root window on the pipe's display.
Definition at line 44 of file x11GraphicsPipe.I.
Referenced by x11GraphicsWindow::close_window(), glxGraphicsPixmap::open_buffer(), x11GraphicsWindow::open_window(), x11GraphicsWindow::set_properties_now(), x11GraphicsWindow::set_wm_properties(), and x11GraphicsWindow::setup_colormap().
int x11GraphicsPipe::get_screen | ( | ) | const [inline] |
Returns the X screen number associated with the pipe.
Definition at line 33 of file x11GraphicsPipe.I.
Referenced by glxGraphicsPixmap::open_buffer(), glxGraphicsBuffer::open_buffer(), and glxGraphicsWindow::open_window().
int x11GraphicsPipe::get_x_error_count | ( | ) | [inline, static] |
Returns the number of times an error indication has been raised by the X11 system since application start, including errors raised while error messages were disabled.
Definition at line 116 of file x11GraphicsPipe.I.
static void x11GraphicsPipe::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from GraphicsPipe.
Reimplemented in glxGraphicsPipe.
Definition at line 99 of file x11GraphicsPipe.h.