mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 16:45:35 +00:00
71266c0337
* gdk/Event.cs : derived from Boxed, not Object. * generator/SymbolTable.cs : fixes for Gdk.Events svn path=/trunk/gtk-sharp/; revision=6542
35 lines
593 B
C#
35 lines
593 B
C#
// Gdk.Event.cs - Custom event wrapper
|
|
//
|
|
// Author: Rachel Hestilow <hestilow@ximian.com>
|
|
//
|
|
// (c) 2002 Rachel Hestilow
|
|
|
|
|
|
namespace Gdk {
|
|
|
|
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
|
|
public class Event : GLib.Boxed {
|
|
|
|
[DllImport("gtksharpglue")]
|
|
static extern EventType gtksharp_gdk_event_get_event_type (IntPtr evt);
|
|
|
|
public Event(IntPtr raw) : base(raw) {}
|
|
|
|
public EventType Type {
|
|
get {
|
|
return gtksharp_gdk_event_get_event_type (Handle);
|
|
}
|
|
}
|
|
|
|
public bool IsValid {
|
|
get {
|
|
return (Handle != IntPtr.Zero);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|