2015 ソフトウェア設計及び演習用の班Wiki
15::gr05::ivent.h
# ifndef _EVENT_H_ # define _EVENT_H_ # include <stdlib.h> # include <glib.h> # include <glib/gprintf.h> # include <gtk/gtk.h> # include <gdk-pixbuf/gdk-pixbuf.h> # include <gtk_lib.h> typedef struct { GtkWidget *widget; gpointer self; GdkEventMotion *motion_event; GdkEventButton *button_event; GdkEventKey *key_event; GSourceFunc m_notify; GSourceFunc m_press; GSourceFunc m_release; GSourceFunc k_press; GSourceFunc k_release; } myEvent; myEvent *my_event_new(GtkWidget *widget); void my_event_set(myEvent *ev, gpointer sprite); # endif
最終更新日:2015/08/09 20:35:00