Skip to content

Instantly share code, notes, and snippets.

@donpdonp
Created August 9, 2019 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donpdonp/b6d51d70c4b59c3780d760f8b0938685 to your computer and use it in GitHub Desktop.
Save donpdonp/b6d51d70c4b59c3780d760f8b0938685 to your computer and use it in GitHub Desktop.
/* gdk/gdkevents.h */
struct _GdkEventTouch
{
GdkEventType type;
GdkWindow *window;
gint8 send_event;
guint32 time;
gdouble x;
gdouble y;
gdouble *axes;
guint state;
GdkEventSequence *sequence;
gboolean emulating_pointer;
GdkDevice *device;
gdouble x_root, y_root;
};
struct _GdkEventScroll
{
GdkEventType type;
GdkWindow *window;
gint8 send_event;
guint32 time;
gdouble x;
gdouble y;
guint state;
GdkScrollDirection direction;
GdkDevice *device;
gdouble x_root, y_root;
gdouble delta_x;
gdouble delta_y;
guint is_stop : 1;
};
/* ZIG CACHE */
pub const struct__GdkEventTouch = extern struct {
type: GdkEventType,
window: ?*GdkWindow,
send_event: gint8,
time: guint32,
x: gdouble,
y: gdouble,
axes: [*c]gdouble,
state: guint,
sequence: ?*GdkEventSequence,
emulating_pointer: gboolean,
device: ?*GdkDevice,
x_root: gdouble,
y_root: gdouble,
};
pub const GdkEventTouch = struct__GdkEventTouch;
pub const struct__GdkEventScroll = @OpaqueType();
pub const GdkEventScroll = struct__GdkEventScroll;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment