2016 ソフトウェア設計及び演習用の班Wiki
16::gr13::event.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> //# include "display.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_press_left; GSourceFunc k_press_right; GSourceFunc k_press_j; GSourceFunc k_press_a; GSourceFunc k_release; GSourceFunc k_release_left; GSourceFunc k_release_right; GSourceFunc k_release_j; GSourceFunc k_release_a; } Event; Event *event_new(GtkWidget *widget); void event_set(Event *ev, gpointer sprite, GtkWidget *window); void event_for_anime(gpointer data, GtkWidget *widget); #endif
最終更新日:2016/08/05 06:44:27