16 : m_main_window(main_window), m_type(type), m_widget(NULL), m_obj(NULL)
72 static GType ttt_type = 0;
76 static const GTypeInfo ttt_info =
89 ttt_type = g_type_register_static (GTK_TYPE_DRAWING_AREA,
111 GTK_WIDGET_SET_FLAGS(ttt, GTK_CAN_FOCUS);
124 static void ivtglwidget_class_init (IVTGLWidgetClass *klass);
125 static void ivtglwidget_init (IVTGLWidget *ttt);
126 static void ivtglwidget_destroy (GtkObject *
object);
128 static GtkDrawingAreaClass *parent_class = NULL;
130 GType ivtglwidget_get_type(
void)
132 static GType ttt_type = 0;
136 static const GTypeInfo ttt_info =
138 sizeof (IVTGLWidgetClass),
141 (GClassInitFunc) ivtglwidget_class_init,
144 sizeof (IVTGLWidget),
146 (GInstanceInitFunc) ivtglwidget_init,
149 ttt_type = g_type_register_static (GTK_TYPE_DRAWING_AREA,
158 static void ivtglwidget_class_init (IVTGLWidgetClass *klass)
160 GtkObjectClass *object_class;
162 parent_class = (GtkDrawingAreaClass*)g_type_class_peek_parent(klass);
163 object_class = (GtkObjectClass*) klass;
165 object_class->destroy = ivtglwidget_destroy;
168 static void ivtglwidget_init (IVTGLWidget *ttt)
170 ttt->glcontext = NULL;
171 ttt->main_window_widget = NULL;
173 GTK_WIDGET_SET_FLAGS(ttt, GTK_CAN_FOCUS);
176 static void ivtglwidget_destroy(GtkObject *
object)
180 g_return_if_fail (
object != NULL);
181 g_return_if_fail (IS_IVTGLWIDGET(
object));
183 glw = IVTGLWIDGET(
object);
186 delete glw->glcontext;
187 glw->glcontext = NULL;
189 if (GTK_OBJECT_CLASS (parent_class)->destroy)
190 (* GTK_OBJECT_CLASS (parent_class)->destroy) (
object);
192 GtkWidget* ivtglwidget_new ()
194 IVTGLWidget *glw = (IVTGLWidget*)g_object_new (ivtglwidget_get_type (), NULL);
196 return (GtkWidget*)glw;
struct _IVTImage IVTImage
virtual void ButtonPushed(WIDGET_HANDLE widget)
virtual void ValueChanged(WIDGET_HANDLE widget, int value)
GType ivtimage_get_type(void)
GLuint GLuint GLsizei GLenum type
struct _IVTImageClass IVTImageClass
void ValueChanged(int value)
GtkWidget * ivtimage_new()
GLsizei const GLfloat * value
static void ivtimage_class_init(IVTImageClass *klass)
CGTKMainWindowWidget * main_window_widget
CMainWindowEventInterface * GetEventCallback()
void TextChanged(const char *str)
CGTKMainWindowWidget(CGTKMainWindow *main_window, GTKWidgetType type)
CGTKMainWindow * m_main_window
Interface for the event mechanism of GUIs using the GUI toolkit of the IVT.
static void ivtimage_init(IVTImage *ttt)