GTKMainWindowWidget.h
Go to the documentation of this file.
1 // ****************************************************************************
2 // Filename: GTKMainWindowWidget.h
3 // Author: Florian Hecht
4 // Date: 2009
5 // ****************************************************************************
6 
7 
8 #ifndef _GTK_MAIN_WINDOW_WIDGET_H_
9 #define _GTK_MAIN_WINDOW_WIDGET_H_
10 
11 
12 // ****************************************************************************
13 // Necessary includes
14 // ****************************************************************************
15 
16 #include <gtk/gtk.h>
17 
18 
19 // ****************************************************************************
20 // Forward declarations
21 // ****************************************************************************
22 
23 class CGTKMainWindow;
24 class CByteImage;
25 
26 
27 // ****************************************************************************
28 // Enums
29 // ****************************************************************************
30 
32 {
33  eImage = 0,
41 };
42 
43 
44 
45 // ****************************************************************************
46 // CGTKMainWindowWidget
47 // ****************************************************************************
48 
50 {
51 public:
54 
55 public:
56  void Clicked();
57  void ValueChanged(int value);
58  void Toggled(bool flag);
59  void TextChanged(const char *str);
60 
61 public:
64  GtkWidget *m_widget;
65  GtkObject *m_obj;
66 };
67 
68 // *****************************************************************
69 // New GTK classes: IVTImage and IVTGLWidget
70 // *****************************************************************
71 
72 #include <glib.h>
73 
74 G_BEGIN_DECLS
75 
76 // *****************************************************************
77 // IVTImage
78 // *****************************************************************
79 
80 #define IVTIMAGE_TYPE (ivtimage_get_type ())
81 #define IVTIMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IVTIMAGE_TYPE, IVTImage))
82 #define IVTIMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IVTIMAGE_TYPE, IVTImageClass))
83 #define IS_IVTIMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IVTIMAGE_TYPE))
84 #define IS_IVTIMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IVTIMAGE_TYPE))
85 
86 
87 typedef struct _IVTImage IVTImage;
89 
90 struct _IVTImage
91 {
92  GtkDrawingArea parent;
93 
97 
101  int mouse_x;
102  int mouse_y;
103 };
104 
106 {
107  GtkDrawingAreaClass parent_class;
108 
109  void (* ivtimage) (IVTImage *ttt);
110 };
111 
112 GType ivtimage_get_type (void);
113 GtkWidget* ivtimage_new (void);
114 
115 #ifdef USE_OPENGL
116 
117 // *****************************************************************
118 // IVTGLWidget
119 // *****************************************************************
120 
121 class CGTKGLContext;
122 
123 #define IVTGLWIDGET_TYPE (ivtglwidget_get_type ())
124 #define IVTGLWIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IVTGLWIDGET_TYPE, IVTGLWidget))
125 #define IVTGLWIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), IVTGLWIDGET_TYPE, IVTGLWidgetClass))
126 #define IS_IVTGLWIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IVTGLWIDGET_TYPE))
127 #define IS_IVTGLWIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), IVTGLWIDGET_TYPE))
128 
129 
130 typedef struct _IVTGLWidget IVTGLWidget;
131 typedef struct _IVTGLWidgetClass IVTGLWidgetClass;
132 
133 struct _IVTGLWidget
134 {
135  GtkDrawingArea parent;
136 
137  CGTKGLContext *glcontext;
138  CGTKMainWindowWidget *main_window_widget;
139 };
140 
141 struct _IVTGLWidgetClass
142 {
143  GtkDrawingAreaClass parent_class;
144 
145  void (* ivtglwidget) (IVTGLWidget *ttt);
146 };
147 
148 GType ivtglwidget_get_type (void);
149 GtkWidget* ivtglwidget_new (void);
150 
151 #endif /* USE_OPENGL */
152 
153 G_END_DECLS
154 
155 #endif /* _GTK_MAIN_WINDOW_WIDGET_H_ */
CByteImage * image
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
Definition: ByteImage.h:80
_GdkDrawable GdkPixmap
Definition: GTKGLContext.h:27
GLuint GLuint GLsizei GLenum type
Definition: glext.h:3121
GtkDrawingAreaClass parent_class
GtkWidget * ivtimage_new(void)
GdkPixmap * pixmap
void ValueChanged(int value)
GLsizei const GLfloat * value
Definition: glext.h:3538
CGTKMainWindowWidget * main_window_widget
void TextChanged(const char *str)
CGTKMainWindowWidget(CGTKMainWindow *main_window, GTKWidgetType type)
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
GtkDrawingArea parent
CGTKMainWindow * m_main_window
GType ivtimage_get_type(void)
GTKWidgetType


asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Mon Dec 2 2019 03:47:28