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

Gdk::GL::Window Class Reference
[GL Drawables]

OpenGL window which is located onscreen. More...

#include <window.h>

Inheritance diagram for Gdk::GL::Window:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~Window ()
GdkGLWindow * gobj ()
const GdkGLWindow * gobj () const
GdkGLWindow * gobj_copy ()
Glib::RefPtr< Gdk::Window > get_window ()
 Returns the Gdk::Window associated with glwindow .

Glib::RefPtr< const Gdk::Window > get_window () const
 Returns the Gdk::Window associated with glwindow .


Static Public Member Functions

Glib::RefPtr< Window > create (const Glib::RefPtr< const Config > &glconfig, const Glib::RefPtr< const Gdk::Window > &window, const int *attrib_list)
Glib::RefPtr< Window > set_gl_capability (const Glib::RefPtr< Gdk::Window > &window, const Glib::RefPtr< const Config > &glconfig, const int *attrib_list=0)
 Set the OpenGL-capability to the window .

void unset_gl_capability (const Glib::RefPtr< Gdk::Window > &window)
 Unset the OpenGL-capability of the window .

bool is_gl_capable (const Glib::RefPtr< const Gdk::Window > &window)
 Returns whether the window is OpenGL-capable.

Glib::RefPtr< Window > get_gl_window (const Glib::RefPtr< const Gdk::Window > &window)
 Returns the Gdk::GLWindow held by the window .

Glib::RefPtr< Gdk::GL::Drawableget_gl_drawable (const Glib::RefPtr< const Gdk::Window > &window)

Protected Member Functions

 Window (const Glib::RefPtr< const Config > &glconfig, const Glib::RefPtr< const Gdk::Window > &window, const int *attrib_list=0)

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gdk::GL::Window > wrap (GdkGLWindow *object, bool take_copy=false)

Detailed Description

OpenGL window which is located onscreen.


Constructor & Destructor Documentation

virtual Gdk::GL::Window::~Window  )  [virtual]
 

Gdk::GL::Window::Window const Glib::RefPtr< const Config > &  glconfig,
const Glib::RefPtr< const Gdk::Window > &  window,
const int *  attrib_list = 0
[protected]
 


Member Function Documentation

Glib::RefPtr<Window> Gdk::GL::Window::create const Glib::RefPtr< const Config > &  glconfig,
const Glib::RefPtr< const Gdk::Window > &  window,
const int *  attrib_list
[static]
 

Glib::RefPtr<Gdk::GL::Drawable> Gdk::GL::Window::get_gl_drawable const Glib::RefPtr< const Gdk::Window > &  window  )  [static]
 

Glib::RefPtr<Window> Gdk::GL::Window::get_gl_window const Glib::RefPtr< const Gdk::Window > &  window  )  [static]
 

Returns the Gdk::GLWindow held by the window .

Returns:
The Gdk::GLWindow.

Glib::RefPtr<const Gdk::Window> Gdk::GL::Window::get_window  )  const
 

Returns the Gdk::Window associated with glwindow .

Notice that Gdk::GLWindow is not Gdk::Window, but another Gdk::Drawable which have an associated Gdk::Window.

Returns:
The Gdk::Window associated with glwindow .

Glib::RefPtr<Gdk::Window> Gdk::GL::Window::get_window  ) 
 

Returns the Gdk::Window associated with glwindow .

Notice that Gdk::GLWindow is not Gdk::Window, but another Gdk::Drawable which have an associated Gdk::Window.

Returns:
The Gdk::Window associated with glwindow .

const GdkGLWindow* Gdk::GL::Window::gobj  )  const [inline]
 

Reimplemented from Gdk::GL::Drawable.

GdkGLWindow* Gdk::GL::Window::gobj  )  [inline]
 

Reimplemented from Gdk::GL::Drawable.

GdkGLWindow* Gdk::GL::Window::gobj_copy  ) 
 

bool Gdk::GL::Window::is_gl_capable const Glib::RefPtr< const Gdk::Window > &  window  )  [static]
 

Returns whether the window is OpenGL-capable.

Returns:
true if the window is OpenGL-capable, false otherwise.

Glib::RefPtr<Window> Gdk::GL::Window::set_gl_capability const Glib::RefPtr< Gdk::Window > &  window,
const Glib::RefPtr< const Config > &  glconfig,
const int *  attrib_list = 0
[static]
 

Set the OpenGL-capability to the window .

The call creates a new Gdk::GLWindow. attrib_list is currently unused. This must be set to 0 or empty (first attribute of None).

Parameters:
glconfig A Gdk::GLConfig.
attrib_list This must be set to 0 or empty (first attribute of None).
Returns:
The Gdk::GLWindow used by the window if it is successful, 0 otherwise.

void Gdk::GL::Window::unset_gl_capability const Glib::RefPtr< Gdk::Window > &  window  )  [static]
 

Unset the OpenGL-capability of the window .

This function destroys the Gdk::GLWindow held by the window .


Friends And Related Function Documentation

Glib::RefPtr< Gdk::GL::Window > wrap GdkGLWindow *  object,
bool  take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated on Sat May 17 02:10:03 2003 for gtkglextmm by doxygen1.3