Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

glxGraphicsWindow Class Reference

#include <glxGraphicsWindow.h>

Inheritance diagram for glxGraphicsWindow:

GraphicsWindow TypedReferenceCount ClearableRegion TypedObject ReferenceCount List of all members.

Public Member Functions

 glxGraphicsWindow (GraphicsPipe *pipe, GraphicsStateGuardian *gsg)
virtual ~glxGraphicsWindow ()
virtual void make_current ()
virtual void release_gsg ()
virtual bool begin_frame ()
virtual void begin_flip ()
virtual void process_events ()
virtual void set_properties_now (WindowProperties &properties)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Protected Member Functions

virtual void close_window ()
virtual bool open_window ()

Private Member Functions

void set_wm_properties (const WindowProperties &properties)
void setup_colormap (XVisualInfo *visual)
ButtonHandle get_button (XKeyEvent *key_event)

Static Private Member Functions

Bool check_event (Display *display, XEvent *event, char *arg)

Private Attributes

Display * _display
int _screen
Window _xwindow
Colormap _colormap
long _event_mask
bool _awaiting_configure
Atom _wm_delete_window

Static Private Attributes

TypeHandle _type_handle

Constructor & Destructor Documentation

glxGraphicsWindow::glxGraphicsWindow GraphicsPipe pipe,
GraphicsStateGuardian gsg
 

Definition at line 43 of file glxGraphicsWindow.cxx.

References _awaiting_configure, _display, GraphicsWindow::_input_devices, _screen, _wm_delete_window, _xwindow, DCAST_INTO_V, glxGraphicsPipe::get_display(), glxGraphicsPipe::get_screen(), glxGraphicsPipe::get_wm_delete_window(), NULL, and GraphicsWindowInputDevice::pointer_and_keyboard().

glxGraphicsWindow::~glxGraphicsWindow  )  [virtual]
 

Definition at line 65 of file glxGraphicsWindow.cxx.


Member Function Documentation

void glxGraphicsWindow::begin_flip  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 138 of file glxGraphicsWindow.cxx.

References _display, _xwindow, make_current(), and NULL.

bool glxGraphicsWindow::begin_frame  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 113 of file glxGraphicsWindow.cxx.

References GraphicsWindow::begin_frame().

Bool glxGraphicsWindow::check_event Display *  display,
XEvent *  event,
char *  arg
[static, private]
 

Definition at line 860 of file glxGraphicsWindow.cxx.

References _xwindow.

Referenced by process_events().

void glxGraphicsWindow::close_window  )  [protected, virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 351 of file glxGraphicsWindow.cxx.

References _display, _xwindow, and NULL.

Referenced by process_events().

virtual TypeHandle glxGraphicsWindow::force_init_type void   )  [inline, virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 85 of file glxGraphicsWindow.h.

References get_class_type(), and init_type().

ButtonHandle glxGraphicsWindow::get_button XKeyEvent *  key_event  )  [private]
 

Definition at line 574 of file glxGraphicsWindow.cxx.

References KeyboardButton::alt(), KeyboardButton::ascii_key(), KeyboardButton::backspace(), KeyboardButton::caps_lock(), KeyboardButton::control(), KeyboardButton::del(), KeyboardButton::down(), KeyboardButton::end(), KeyboardButton::enter(), KeyboardButton::escape(), KeyboardButton::f1(), KeyboardButton::f10(), KeyboardButton::f11(), KeyboardButton::f12(), KeyboardButton::f2(), KeyboardButton::f3(), KeyboardButton::f4(), KeyboardButton::f5(), KeyboardButton::f6(), KeyboardButton::f7(), KeyboardButton::f8(), KeyboardButton::f9(), KeyboardButton::home(), KeyboardButton::insert(), KeyboardButton::left(), KeyboardButton::meta(), ButtonHandle::none(), KeyboardButton::page_down(), KeyboardButton::page_up(), KeyboardButton::right(), KeyboardButton::shift(), KeyboardButton::shift_lock(), KeyboardButton::space(), KeyboardButton::tab(), and KeyboardButton::up().

Referenced by process_events().

TypeHandle glxGraphicsWindow::get_class_type void   )  [inline, static]
 

Reimplemented from GraphicsWindow.

Definition at line 74 of file glxGraphicsWindow.h.

References _type_handle.

Referenced by force_init_type(), and get_type().

virtual TypeHandle glxGraphicsWindow::get_type void   )  const [inline, virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 82 of file glxGraphicsWindow.h.

References get_class_type().

void glxGraphicsWindow::init_type void   )  [inline, static]
 

Reimplemented from GraphicsWindow.

Definition at line 77 of file glxGraphicsWindow.h.

References _type_handle, GraphicsWindow::get_class_type(), GraphicsWindow::init_type(), and register_type().

Referenced by force_init_type(), and init_libglxdisplay().

void glxGraphicsWindow::make_current  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 76 of file glxGraphicsWindow.cxx.

References glxGraphicsStateGuardian::_context, _display, _xwindow, DCAST_INTO_V, and GraphicsStateGuardian::reset_if_new().

Referenced by begin_flip().

bool glxGraphicsWindow::open_window  )  [protected, virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 370 of file glxGraphicsWindow.cxx.

References _colormap, _display, _event_mask, GraphicsWindow::_properties, _screen, glxGraphicsStateGuardian::_visual, _xwindow, DCAST_INTO_R, WindowProperties::get_fullscreen(), glxGraphicsPipe::get_root(), WindowProperties::get_x_origin(), WindowProperties::get_x_size(), WindowProperties::get_y_origin(), WindowProperties::get_y_size(), WindowProperties::has_origin(), WindowProperties::has_size(), WindowProperties::set_origin(), WindowProperties::set_size(), set_wm_properties(), and setup_colormap().

void glxGraphicsWindow::process_events  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 156 of file glxGraphicsWindow.cxx.

References _awaiting_configure, _display, GraphicsWindow::_input_devices, _wm_delete_window, _xwindow, check_event(), close_window(), get_button(), index, ButtonHandle::none(), GraphicsWindow::process_events(), release_gsg(), WindowProperties::set_foreground(), WindowProperties::set_minimized(), WindowProperties::set_open(), WindowProperties::set_size(), and GraphicsWindow::system_changed_properties().

void glxGraphicsWindow::release_gsg  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 98 of file glxGraphicsWindow.cxx.

References _display, None, NULL, and GraphicsWindow::release_gsg().

Referenced by process_events().

void glxGraphicsWindow::set_properties_now WindowProperties properties  )  [virtual]
 

Reimplemented from GraphicsWindow.

Definition at line 296 of file glxGraphicsWindow.cxx.

References _awaiting_configure, _display, GraphicsWindow::_properties, _xwindow, WindowProperties::clear_origin(), WindowProperties::clear_size(), WindowProperties::clear_title(), WindowProperties::get_title(), WindowProperties::get_x_origin(), WindowProperties::get_x_size(), WindowProperties::get_y_origin(), WindowProperties::get_y_size(), WindowProperties::has_origin(), WindowProperties::has_size(), WindowProperties::has_title(), WindowProperties::is_any_specified(), GraphicsWindow::set_properties_now(), WindowProperties::set_title(), and set_wm_properties().

void glxGraphicsWindow::set_wm_properties const WindowProperties properties  )  [private]
 

Definition at line 440 of file glxGraphicsWindow.cxx.

References _display, _wm_delete_window, _xwindow, WindowProperties::get_minimized(), WindowProperties::get_title(), WindowProperties::get_undecorated(), WindowProperties::get_x_origin(), WindowProperties::get_x_size(), WindowProperties::get_y_origin(), WindowProperties::get_y_size(), WindowProperties::has_minimized(), WindowProperties::has_origin(), WindowProperties::has_size(), WindowProperties::has_title(), and NULL.

Referenced by open_window(), and set_properties_now().

void glxGraphicsWindow::setup_colormap XVisualInfo *  visual  )  [private]
 

Definition at line 526 of file glxGraphicsWindow.cxx.

References _colormap, _display, DCAST_INTO_V, and glxGraphicsPipe::get_root().

Referenced by open_window().


Member Data Documentation

bool glxGraphicsWindow::_awaiting_configure [private]
 

Definition at line 69 of file glxGraphicsWindow.h.

Referenced by glxGraphicsWindow(), process_events(), and set_properties_now().

Colormap glxGraphicsWindow::_colormap [private]
 

Definition at line 67 of file glxGraphicsWindow.h.

Referenced by open_window(), and setup_colormap().

Display* glxGraphicsWindow::_display [private]
 

Definition at line 64 of file glxGraphicsWindow.h.

Referenced by begin_flip(), close_window(), glxGraphicsWindow(), make_current(), open_window(), process_events(), release_gsg(), set_properties_now(), set_wm_properties(), and setup_colormap().

long glxGraphicsWindow::_event_mask [private]
 

Definition at line 68 of file glxGraphicsWindow.h.

Referenced by open_window().

int glxGraphicsWindow::_screen [private]
 

Definition at line 65 of file glxGraphicsWindow.h.

Referenced by glxGraphicsWindow(), and open_window().

TypeHandle glxGraphicsWindow::_type_handle [static, private]
 

Reimplemented from GraphicsWindow.

Definition at line 35 of file glxGraphicsWindow.cxx.

Referenced by get_class_type(), and init_type().

Atom glxGraphicsWindow::_wm_delete_window [private]
 

Definition at line 70 of file glxGraphicsWindow.h.

Referenced by glxGraphicsWindow(), process_events(), and set_wm_properties().

Window glxGraphicsWindow::_xwindow [private]
 

Definition at line 66 of file glxGraphicsWindow.h.

Referenced by begin_flip(), check_event(), close_window(), glxGraphicsWindow(), make_current(), open_window(), process_events(), set_properties_now(), and set_wm_properties().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:12:27 2003 for Panda by doxygen1.3