Explications de code test-simple.c
Je m arrache les cheveu a essayer d'apprendre la gtksdl
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| static void Clicked (GtkWidget * pWindow, gpointer data)
{
GtkSDL *pSdl = data;
/* */
int main (int argc, char **argv)
{
GtkWidget *pSdl = NULL;
/* */
g_signal_connect (G_OBJECT (pButton), "clicked", G_CALLBACK (Clicked),
pSdl);
/* */ |
Comment cet appel peut fonctionner alors que dans gtk-sdl.h :
Code:
1 2 3 4 5 6 7 8 9 10 11
| struct _GtkSDL
{
GtkWidget widget;
/*< public >*/
SDL_Surface *surface;
gint width;
gint height;
gint bpp;
Uint16 flags;
}; |
Merci
PS; + dans le code test-simple je suis oblige de changer le #include <gtk-sdl.h> en #include "gtk-sdl.h"