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

Gtk::GL::Widget Class Reference

OpenGL extension API to Gtk::Widget. More...

#include <widget.h>

Inheritance diagram for Gtk::GL::Widget:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~Widget ()=0
bool set_gl_capability (const Glib::RefPtr< const Gdk::GL::Config > &glconfig, const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
 Set the OpenGL-capability to the Gtk::Widget.

bool set_gl_capability (const Glib::RefPtr< const Gdk::GL::Config > &glconfig, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
 Set the OpenGL-capability to the Gtk::Widget.

bool is_gl_capable () const
 Return whether the Gtk::Widget is OpenGL-capable.

Glib::RefPtr< Gdk::GL::Configget_gl_config ()
 Return the Gdk::GL::Config referred by the Gtk::Widget.

Glib::RefPtr< const Gdk::GL::Configget_gl_config () const
 Return the Gdk::GL::Config referred by the Gtk::Widget.

Glib::RefPtr< Gdk::GL::Contextcreate_gl_context (const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
 Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

Glib::RefPtr< Gdk::GL::Contextcreate_gl_context (bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
 Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

Glib::RefPtr< Gdk::GL::Contextget_gl_context ()
 Return the Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

Glib::RefPtr< Gdk::GL::Windowget_gl_window ()
 Return the Gdk::GL::Window owned by the Gtk::Widget.

Glib::RefPtr< const Gdk::GL::Windowget_gl_window () const
 Return the Gdk::GL::Window owned by the Gtk::Widget.

Glib::RefPtr< Gdk::GL::Drawableget_gl_drawable ()
 Return the Gdk::GL::Drawable owned by the Gtk::Widget.

Glib::RefPtr< const Gdk::GL::Drawableget_gl_drawable () const
 Return the Gdk::GL::Drawable owned by the Gtk::Widget.


Static Public Member Functions

bool set_gl_capability (Gtk::Widget &widget, const Glib::RefPtr< const Gdk::GL::Config > &glconfig, const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
 Set the OpenGL-capability to the Gtk::Widget.

bool set_gl_capability (Gtk::Widget &widget, const Glib::RefPtr< const Gdk::GL::Config > &glconfig, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
 Set the OpenGL-capability to the Gtk::Widget.

bool is_gl_capable (const Gtk::Widget &widget)
 Return whether the Gtk::Widget is OpenGL-capable.

Glib::RefPtr< Gdk::GL::Configget_gl_config (const Gtk::Widget &widget)
 Return the Gdk::GL::Config referred by the Gtk::Widget.

Glib::RefPtr< Gdk::GL::Contextcreate_gl_context (const Gtk::Widget &widget, const Glib::RefPtr< const Gdk::GL::Context > &share_list, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
 Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

Glib::RefPtr< Gdk::GL::Contextcreate_gl_context (const Gtk::Widget &widget, bool direct=true, int render_type=Gdk::GL::RGBA_TYPE)
 Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

Glib::RefPtr< Gdk::GL::Contextget_gl_context (const Gtk::Widget &widget)
 Return the Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

Glib::RefPtr< Gdk::GL::Windowget_gl_window (const Gtk::Widget &widget)
 Return the Gdk::GL::Window owned by the Gtk::Widget.

Glib::RefPtr< Gdk::GL::Drawableget_gl_drawable (const Gtk::Widget &widget)
 Return the Gdk::GL::Drawable owned by the Gtk::Widget.


Protected Member Functions

 Widget (Gtk::Widget &widget)

Detailed Description

OpenGL extension API to Gtk::Widget.


Constructor & Destructor Documentation

Gtk::GL::Widget::Widget Gtk::Widget &  widget  )  [inline, explicit, protected]
 

virtual Gtk::GL::Widget::~Widget  )  [pure virtual]
 


Member Function Documentation

Glib::RefPtr<Gdk::GL::Context> Gtk::GL::Widget::create_gl_context bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
[inline]
 

Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

See also get_gl_context().

Parameters:
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
the new Gdk::GL::Context.

Glib::RefPtr<Gdk::GL::Context> Gtk::GL::Widget::create_gl_context const Glib::RefPtr< const Gdk::GL::Context > &  share_list,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
[inline]
 

Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

See also get_gl_context().

Parameters:
share_list the Gdk::GL::Context which to share display lists.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
the new Gdk::GL::Context.

Glib::RefPtr<Gdk::GL::Context> Gtk::GL::Widget::create_gl_context const Gtk::Widget &  widget,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
[static]
 

Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

See also get_gl_context().

Parameters:
widget a Gtk::Widget.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
the new Gdk::GL::Context.

Glib::RefPtr<Gdk::GL::Context> Gtk::GL::Widget::create_gl_context const Gtk::Widget &  widget,
const Glib::RefPtr< const Gdk::GL::Context > &  share_list,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
[static]
 

Create a new Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

See also get_gl_context().

Parameters:
widget a Gtk::Widget.
share_list the Gdk::GL::Context which to share display lists.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
the new Gdk::GL::Context.

Glib::RefPtr<const Gdk::GL::Config> Gtk::GL::Widget::get_gl_config  )  const [inline]
 

Return the Gdk::GL::Config referred by the Gtk::Widget.

Returns:
the Gdk::GL::Config.

Glib::RefPtr<Gdk::GL::Config> Gtk::GL::Widget::get_gl_config  )  [inline]
 

Return the Gdk::GL::Config referred by the Gtk::Widget.

Returns:
the Gdk::GL::Config.

Glib::RefPtr<Gdk::GL::Config> Gtk::GL::Widget::get_gl_config const Gtk::Widget &  widget  )  [static]
 

Return the Gdk::GL::Config referred by the Gtk::Widget.

Parameters:
widget a Gtk::Widget.
Returns:
the Gdk::GL::Config.

Glib::RefPtr<Gdk::GL::Context> Gtk::GL::Widget::get_gl_context  )  [inline]
 

Return the Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

Unlike the GL context returned by create_gl_context(), this context is owned by the widget.

Returns:
the Gdk::GL::Context.

Glib::RefPtr<Gdk::GL::Context> Gtk::GL::Widget::get_gl_context const Gtk::Widget &  widget  )  [static]
 

Return the Gdk::GL::Context with the appropriate Gdk::GL::Drawable for this widget.

Unlike the GL context returned by create_gl_context(), this context is owned by the widget.

Parameters:
widget a Gtk::Widget.
Returns:
the Gdk::GL::Context.

Glib::RefPtr<const Gdk::GL::Drawable> Gtk::GL::Widget::get_gl_drawable  )  const [inline]
 

Return the Gdk::GL::Drawable owned by the Gtk::Widget.

Returns:
the Gdk::GL::Drawable.

Glib::RefPtr<Gdk::GL::Drawable> Gtk::GL::Widget::get_gl_drawable  )  [inline]
 

Return the Gdk::GL::Drawable owned by the Gtk::Widget.

Returns:
the Gdk::GL::Drawable.

Glib::RefPtr<Gdk::GL::Drawable> Gtk::GL::Widget::get_gl_drawable const Gtk::Widget &  widget  )  [static]
 

Return the Gdk::GL::Drawable owned by the Gtk::Widget.

Parameters:
widget a Gtk::Widget.
Returns:
the Gdk::GL::Drawable.

Glib::RefPtr<const Gdk::GL::Window> Gtk::GL::Widget::get_gl_window  )  const [inline]
 

Return the Gdk::GL::Window owned by the Gtk::Widget.

Returns:
the Gdk::GL::Window.

Glib::RefPtr<Gdk::GL::Window> Gtk::GL::Widget::get_gl_window  )  [inline]
 

Return the Gdk::GL::Window owned by the Gtk::Widget.

Returns:
the Gdk::GL::Window.

Glib::RefPtr<Gdk::GL::Window> Gtk::GL::Widget::get_gl_window const Gtk::Widget &  widget  )  [static]
 

Return the Gdk::GL::Window owned by the Gtk::Widget.

Parameters:
widget a Gtk::Widget.
Returns:
the Gdk::GL::Window.

bool Gtk::GL::Widget::is_gl_capable  )  const [inline]
 

Return whether the Gtk::Widget is OpenGL-capable.

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

bool Gtk::GL::Widget::is_gl_capable const Gtk::Widget &  widget  )  [static]
 

Return whether the Gtk::Widget is OpenGL-capable.

Parameters:
widget a Gtk::Widget.
Returns:
true if the Gtk::Widget is OpenGL-capable, false otherwise.

bool Gtk::GL::Widget::set_gl_capability const Glib::RefPtr< const Gdk::GL::Config > &  glconfig,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
[inline]
 

Set the OpenGL-capability to the Gtk::Widget.

The call setup the callbacks to realize a OpenGL-capable window.

Parameters:
glconfig a Gdk::GL::Config.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
true if it is successful, false otherwise.

bool Gtk::GL::Widget::set_gl_capability const Glib::RefPtr< const Gdk::GL::Config > &  glconfig,
const Glib::RefPtr< const Gdk::GL::Context > &  share_list,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
[inline]
 

Set the OpenGL-capability to the Gtk::Widget.

The call setup the callbacks to realize a OpenGL-capable window.

Parameters:
glconfig a Gdk::GL::Config.
share_list the Gdk::GL::Context which to share display lists.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
true if it is successful, false otherwise.

bool Gtk::GL::Widget::set_gl_capability Gtk::Widget &  widget,
const Glib::RefPtr< const Gdk::GL::Config > &  glconfig,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
[static]
 

Set the OpenGL-capability to the Gtk::Widget.

The call setup the callbacks to realize a OpenGL-capable window.

Parameters:
widget the GtkWidget to be used as the rendering area.
glconfig a Gdk::GL::Config.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
true if it is successful, false otherwise.

bool Gtk::GL::Widget::set_gl_capability Gtk::Widget &  widget,
const Glib::RefPtr< const Gdk::GL::Config > &  glconfig,
const Glib::RefPtr< const Gdk::GL::Context > &  share_list,
bool  direct = true,
int  render_type = Gdk::GL::RGBA_TYPE
[static]
 

Set the OpenGL-capability to the Gtk::Widget.

The call setup the callbacks to realize a OpenGL-capable window.

Parameters:
widget the GtkWidget to be used as the rendering area.
glconfig a Gdk::GL::Config.
share_list the Gdk::GL::Context which to share display lists.
direct whether rendering is to be done with a direct connection to the graphics system.
render_type Gdk::GL::RGBA_TYPE or Gdk::GL::COLOR_INDEX_TYPE (currently not used).
Returns:
true if it is successful, false otherwise.


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