Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

widget.h

Go to the documentation of this file.
00001 /*  Inti-GL: Integrated Foundation Classes
00002  *  Copyright (C) 2003 The Inti Development Team.
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU Library General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00021 
00022 #ifndef INTI_GTK_GL_WIDGET_H
00023 #define INTI_GTK_GL_WIDGET_H
00024 
00025 #ifndef INTI_G_TYPE_H
00026 #include <inti/glib/type.h>
00027 #endif
00028 #ifndef __GTK_GL_WIDGET_H__
00029 #include <gtk/gtkglwidget.h>
00030 #endif
00031 
00032 namespace Inti {
00033 
00034 namespace Gdk {
00035 
00036 namespace GL {
00037 class Config;
00038 class Context;
00039 class Drawable;
00040 class Window;
00041 }
00042 
00043 } // namespace Gdk
00044 
00045 namespace Gtk {
00046 
00047 namespace GL {
00048 
00053 
00054 class Widget : virtual public G::TypeInstance
00055 {
00056 public:
00059 
00060         virtual ~Widget() = 0;
00062 
00066 
00067         bool is_gl_capable() const;
00070 
00071         Gdk::GL::Config* get_gl_config() const;
00074 
00075         Gdk::GL::Context* get_gl_context() const;
00081 
00082         Gdk::GL::Window* get_gl_window() const;
00085 
00086         Gdk::GL::Drawable* get_gl_drawable() const;
00091 
00095 
00096         Pointer<Gdk::GL::Context> create_gl_context(bool direct = true, int render_type = GDK_GL_RGBA_TYPE);
00103 
00104         Pointer<Gdk::GL::Context> create_gl_context(const Gdk::GL::Context& share_list, bool direct = true, int render_type = GDK_GL_RGBA_TYPE);
00112 
00113         bool set_gl_capability(const Gdk::GL::Config& glconfig, bool direct = true, int render_type = GDK_GL_RGBA_TYPE);
00122 
00123         bool set_gl_capability(const Gdk::GL::Config& glconfig, const Gdk::GL::Context& share_list, bool direct = true, int render_type = GDK_GL_RGBA_TYPE);
00132 
00134 };
00135 
00136 } // namespace GL
00137 
00138 } // namespace Gtk
00139 
00140 } // namespace Inti
00141 
00142 #endif // INTI_GTK_GL_WIDGET_H
00143 
Main Page - Footer


Generated on Sun Sep 14 20:59:26 2003 for Inti-GL by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002