mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 10:25:34 +00:00
2004-02-18 Mike Kestner <mkestner@ximian.com>
* gdk/Gdk.metadata : hide EventVisibility. * gdk/EventVisibility.cs : glue-based manual implementation. * gdk/EventVisibility.custom : kill * gdk/gdk-api.xml : regen * gdk/gdk-symbols.xml : manual mapping for EventVisibility. * glue/event.cs : expose Visibility struct fields. svn path=/trunk/gtk-sharp/; revision=23227
This commit is contained in:
parent
ff95b08c65
commit
99793aa24f
|
@ -1,3 +1,12 @@
|
|||
2004-02-18 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* gdk/Gdk.metadata : hide EventVisibility.
|
||||
* gdk/EventVisibility.cs : glue-based manual implementation.
|
||||
* gdk/EventVisibility.custom : kill
|
||||
* gdk/gdk-api.xml : regen
|
||||
* gdk/gdk-symbols.xml : manual mapping for EventVisibility.
|
||||
* glue/event.cs : expose Visibility struct fields.
|
||||
|
||||
2004-02-18 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* gdk/Gdk.metadata : hide EventExpose. make Region opaque.
|
||||
|
|
26
gdk/EventVisibility.cs
Normal file
26
gdk/EventVisibility.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
// Gdk.EventVisibility.cs - Custom visibility event wrapper
|
||||
//
|
||||
// Author: Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// (c) 2004 Novell, Inc.
|
||||
|
||||
namespace Gdk {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class EventVisibility : Event {
|
||||
|
||||
[DllImport("gtksharpglue")]
|
||||
static extern VisibilityState gtksharp_gdk_event_visibility_get_state (IntPtr evt);
|
||||
|
||||
public EventVisibility (IntPtr raw) : base (raw) {}
|
||||
|
||||
public VisibilityState State {
|
||||
get {
|
||||
return gtksharp_gdk_event_visibility_get_state (Handle);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
//
|
||||
// gdk/EventVisibility.custom
|
||||
//
|
||||
// Author: Gustavo Giraldez <gustavo.giraldez@gmx.net>
|
||||
//
|
||||
// Copyright (C) 2004 Gustavo Giraldez.
|
||||
//
|
||||
|
||||
[DllImport("libgdk-win32-2.0-0.dll")]
|
||||
static extern IntPtr gdk_event_get_type();
|
||||
|
||||
public static GLib.GType GType {
|
||||
get {
|
||||
IntPtr raw_ret = gdk_event_get_type();
|
||||
GLib.GType ret = new GLib.GType(raw_ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
|
@ -69,6 +69,7 @@
|
|||
<attr path="//struct[@cname='GdkEventKey']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventMotion']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventScroll']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkEventVisibility']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkPixmapObject']" name="hidden">1</attr>
|
||||
<attr path="//struct[@cname='GdkRegion']" name="opaque">1</attr>
|
||||
<attr path="//struct[@cname='GdkTimeCoord']/field[@cname='axes']" name="array_len">128</attr>
|
||||
|
|
|
@ -2415,7 +2415,7 @@
|
|||
<field cname="action" type="GdkSettingAction" />
|
||||
<field cname="name" type="char*" />
|
||||
</struct>
|
||||
<struct name="EventVisibility" cname="GdkEventVisibility">
|
||||
<struct name="EventVisibility" cname="GdkEventVisibility" hidden="1">
|
||||
<field cname="type" type="GdkEventType" />
|
||||
<field cname="window" type="GdkWindow*" />
|
||||
<field cname="send_event" type="gint8" />
|
||||
|
|
|
@ -7,5 +7,6 @@
|
|||
<symbol type="manual" cname="GdkEventKey" name="Gdk.EventKey"/>
|
||||
<symbol type="manual" cname="GdkEventMotion" name="Gdk.EventMotion"/>
|
||||
<symbol type="manual" cname="GdkEventScroll" name="Gdk.EventScroll"/>
|
||||
<symbol type="manual" cname="GdkEventVisibility" name="Gdk.EventVisibility"/>
|
||||
</api>
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ GdkDevice* gtksharp_gdk_event_motion_get_device (GdkEventMotion *event);
|
|||
GdkRectangle gtksharp_gdk_event_expose_get_area (GdkEventExpose *event);
|
||||
gint gtksharp_gdk_event_expose_get_count (GdkEventExpose *event);
|
||||
GdkRegion* gtksharp_gdk_event_expose_get_region (GdkEventExpose *event);
|
||||
GdkVisibilityState gtksharp_gdk_event_visibility_get_state (GdkEventVisibility *event);
|
||||
/* */
|
||||
|
||||
GdkEventType
|
||||
|
@ -272,3 +273,9 @@ gtksharp_gdk_event_expose_get_region (GdkEventExpose *event)
|
|||
return event->region;
|
||||
}
|
||||
|
||||
GdkVisibilityState
|
||||
gtksharp_gdk_event_visibility_get_state (GdkEventVisibility *event)
|
||||
{
|
||||
return event->state;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue