2017 ソフトウェア設計及び演習用の班Wiki

17::g04::発表::ヘッダーファイル::event

# 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 area, GtkWidget *window);

# endif


最終更新日:2017/08/04 11:54:29