15 #ifndef X11GRAPHICSWINDOW_H 16 #define X11GRAPHICSWINDOW_H 18 #include "pandabase.h" 20 #include "x11GraphicsPipe.h" 21 #include "graphicsWindow.h" 22 #include "buttonHandle.h" 25 typedef unsigned short Rotation;
26 typedef unsigned short SizeID;
54 virtual void close_window();
55 virtual bool open_window();
57 virtual void mouse_mode_absolute();
58 virtual void mouse_mode_relative();
63 virtual void setup_colormap(XVisualInfo *visual);
64 void handle_keystroke(XKeyEvent &event);
65 void handle_keypress(XKeyEvent &event);
66 void handle_keyrelease(XKeyEvent &event);
68 ButtonHandle get_button(XKeyEvent &key_event,
bool allow_shift);
71 ButtonHandle get_mouse_button(XButtonEvent &button_event);
72 virtual ButtonMap *get_keyboard_map()
const;
74 static Bool check_event(X11_Display *display, XEvent *event,
char *arg);
80 X11_Cursor get_cursor(
const Filename &filename);
82 X11_Cursor read_ico(istream &ico);
86 X11_Display *_display;
91 XVisualInfo *_visual_info;
95 Rotation _orig_rotation;
102 bool _awaiting_configure;
103 bool _dga_mouse_enabled;
104 Atom _wm_delete_window;
106 struct MouseDeviceInfo {
108 int _input_device_index;
117 static void init_type() {
118 GraphicsWindow::init_type();
119 register_type(_type_handle,
"x11GraphicsWindow",
120 GraphicsWindow::get_class_type());
123 return get_class_type();
125 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
136 #include "x11GraphicsWindow.I" virtual bool move_pointer(int device, int x, int y)
Forces the pointer to the indicated position within the window, if possible.
This is the base class for all two-component vectors and points.
A window, fullscreen or on a desktop, into which a graphics device sends its output for interactive d...
X11_Window get_xwindow() const
Returns the X11 Window handle.
A container for the various kinds of properties we might ask to have on a graphics window before we o...
The name of a file, such as a texture file or an Egg file.
An object to create GraphicsOutputs that share a particular 3-D API.
This is a base class for the various different classes that represent the result of a frame of render...
virtual void set_properties_now(WindowProperties &properties)
Applies the requested set of properties to the window, if possible, for instance to request a change ...
A thread; that is, a lightweight process.
Encapsulates all the communication with a particular instance of a given rendering backend...
This class is the main interface to controlling the render process.
TypeHandle is the identifier used to differentiate C++ class types.
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...
virtual bool begin_frame(FrameMode mode, Thread *current_thread)
This function will be called within the draw thread before beginning rendering for a given frame...
virtual void process_events()
Do whatever processing is necessary to ensure that the window responds to user events.
Interfaces to the X11 window system.
virtual void end_frame(FrameMode mode, Thread *current_thread)
This function will be called within the draw thread after rendering is completed for a given frame...