mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 08:15:38 +00:00
2005-12-10 Mike Kestner <mkestner@novell.com>
* gdk/gdk-symbols.xml : add GrabBroken mapping. * gdk/Event.cs : add GrabBroken to GetEvent. * gdk/EventGrabBroken.cs : manual Event subclass. * gdk/Gdk.metadata : hide new GrabBroken event. * gdk/Makefile.am : add new source file. svn path=/trunk/gtk-sharp/; revision=54186
This commit is contained in:
parent
e89d2e166b
commit
9c82ac0620
|
@ -1,3 +1,11 @@
|
|||
2005-12-10 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* gdk/gdk-symbols.xml : add GrabBroken mapping.
|
||||
* gdk/Event.cs : add GrabBroken to GetEvent.
|
||||
* gdk/EventGrabBroken.cs : manual Event subclass.
|
||||
* gdk/Gdk.metadata : hide new GrabBroken event.
|
||||
* gdk/Makefile.am : add new source file.
|
||||
|
||||
2005-12-09 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* pango/Pango.metadata : 2.8 API tweaks
|
||||
|
|
78
doc/en/Gdk/EventGrabBroken.xml
Normal file
78
doc/en/Gdk/EventGrabBroken.xml
Normal file
|
@ -0,0 +1,78 @@
|
|||
<Type Name="EventGrabBroken" FullName="Gdk.EventGrabBroken">
|
||||
<TypeSignature Language="C#" Value="public class EventGrabBroken : Gdk.Event" />
|
||||
<AssemblyInfo>
|
||||
<AssemblyName>gdk-sharp</AssemblyName>
|
||||
<AssemblyVersion>2.8.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>Gdk.Event</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Members>
|
||||
<Member MemberName="Window">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Window Window { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Window</ReturnType>
|
||||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>The event window.</summary>
|
||||
<value>a <see cref="T:Gdk.Window" />.</value>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="GrabWindow">
|
||||
<MemberSignature Language="C#" Value="public Gdk.Window GrabWindow { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>Gdk.Window</ReturnType>
|
||||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>The Window which broke the grab.</summary>
|
||||
<value>a <see cref="T:Gdk.Window" />, or <see langword="null" />.</value>
|
||||
<remarks>If the window which broke the grab is outside the application, the value will be <see langword="null" />.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public EventGrabBroken (IntPtr raw);" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<Parameters>
|
||||
<Parameter Name="raw" Type="System.IntPtr" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<param name="raw">Native struct pointer.</param>
|
||||
<summary>Internal constructor.</summary>
|
||||
<remarks>This constructor is exposed for binding use and should not be used by application code.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Keyboard">
|
||||
<MemberSignature Language="C#" Value="public bool Keyboard { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>Indicates a keyboard grab.</summary>
|
||||
<value><see langword="true" /> for a keyboard grab or <see langword="false" /> for mouse.</value>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Implicit">
|
||||
<MemberSignature Language="C#" Value="public bool Implicit { get; };" />
|
||||
<MemberType>Property</MemberType>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Boolean</ReturnType>
|
||||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>Indicates if the broken grab was implicit.</summary>
|
||||
<value><see langword="true" /> for an implicit grab.</value>
|
||||
<remarks />
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
<Docs>
|
||||
<summary>Indicates a grab was broken by another grab.</summary>
|
||||
<remarks />
|
||||
<since version="Gtk# 2.8" />
|
||||
</Docs>
|
||||
</Type>
|
|
@ -615,7 +615,7 @@
|
|||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>The width at which text is wrapped.</summary>
|
||||
<value>a width >= -1, where -1 denotes no wrapping.</value>
|
||||
<value>a width >= -1, where -1 denotes no wrapping.</value>
|
||||
<remarks />
|
||||
<since version="Gtk# 2.8" />
|
||||
</Docs>
|
||||
|
|
|
@ -631,7 +631,8 @@ public class DemoEntryCompletion : Window
|
|||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>Controls if popup is displayed on a single match.</summary>
|
||||
<value><see langword="true" /> if popup is displayed on single matches.</value>
|
||||
<value>
|
||||
<see langword="true" /> if popup is displayed on single matches.</value>
|
||||
<remarks>Set this to <see langword="false" /> for inline completion.</remarks>
|
||||
<since version="Gtk# 2.8" />
|
||||
</Docs>
|
||||
|
@ -649,7 +650,8 @@ public class DemoEntryCompletion : Window
|
|||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>Controls if the popup is sized to the same width as the entry.</summary>
|
||||
<value><see langword="true" /> if popup size is same as entry size.</value>
|
||||
<value>
|
||||
<see langword="true" /> if popup size is same as entry size.</value>
|
||||
<remarks />
|
||||
<since version="Gtk# 2.8" />
|
||||
</Docs>
|
||||
|
|
|
@ -806,7 +806,8 @@
|
|||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>Controls if Overwrite Confirmation is performed.</summary>
|
||||
<value><see langword="true" /> to perform overwrite confirmations.</value>
|
||||
<value>
|
||||
<see langword="true" /> to perform overwrite confirmations.</value>
|
||||
<remarks>When this property is set, the implementation will raise <see cref="E:Gtk.FileChooser.ConfirmOverwrite" /> any time the chooser is in Save mode and an existing file is selected.</remarks>
|
||||
<since version="Gtk# 2.8" />
|
||||
</Docs>
|
||||
|
|
|
@ -1940,7 +1940,8 @@ Sometimes when you think you want to use allow_shrink, the real problem is that
|
|||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>Urgency Hint.</summary>
|
||||
<value><see langword="true" /> if the hint should be set on the window.</value>
|
||||
<value>
|
||||
<see langword="true" /> if the hint should be set on the window.</value>
|
||||
<remarks>This hint notifies the desktop environment to draw the user's attention to the window for urgent action.</remarks>
|
||||
<since version="Gtk# 2.8" />
|
||||
</Docs>
|
||||
|
|
|
@ -128,6 +128,10 @@ namespace Gdk {
|
|||
return new EventWindowState (raw);
|
||||
case EventType.Setting:
|
||||
return new EventSetting (raw);
|
||||
#if GTK_SHARP_2_8
|
||||
case EventType.GrabBroken:
|
||||
return new EventGrabBroken (raw);
|
||||
#endif
|
||||
case EventType.Map:
|
||||
case EventType.Unmap:
|
||||
case EventType.NoExpose:
|
||||
|
|
67
gdk/EventGrabBroken.cs
Normal file
67
gdk/EventGrabBroken.cs
Normal file
|
@ -0,0 +1,67 @@
|
|||
// Gdk.EventGrabBroken.cs - Custom GrabBroken event wrapper
|
||||
//
|
||||
// Author: Mike Kestner <mkestner@ximian.com>
|
||||
//
|
||||
// Copyright (c) 2005 Novell, Inc.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
#if GTK_SHARP_2_8
|
||||
namespace Gdk {
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class EventGrabBroken : Event {
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
struct NativeEventGrabBroken {
|
||||
EventType type;
|
||||
IntPtr window;
|
||||
sbyte send_event;
|
||||
public bool Keyboard;
|
||||
public bool Implicit;
|
||||
public IntPtr GrabWindowHandle;
|
||||
}
|
||||
|
||||
NativeEventGrabBroken native_struct;
|
||||
|
||||
public EventGrabBroken (IntPtr raw) : base (raw)
|
||||
{
|
||||
native_struct = (NativeEventGrabBroken) Marshal.PtrToStructure (raw, typeof (NativeEventGrabBroken));
|
||||
}
|
||||
|
||||
public bool Keyboard {
|
||||
get {
|
||||
return native_struct.Keyboard;
|
||||
}
|
||||
}
|
||||
|
||||
public bool Implicit {
|
||||
get {
|
||||
return native_struct.Implicit;
|
||||
}
|
||||
}
|
||||
|
||||
public Window GrabWindow {
|
||||
get {
|
||||
return GLib.Object.GetObject(native_struct.GrabWindowHandle) as Window;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
@ -155,6 +155,7 @@
|
|||
<attr path="/api/namespace/struct[@cname='GdkEventDND']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventExpose']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventFocus']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventGrabBroken']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventKey']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventMotion']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/struct[@cname='GdkEventNoExpose']" name="hidden">1</attr>
|
||||
|
|
|
@ -16,6 +16,7 @@ sources = \
|
|||
EventDND.cs \
|
||||
EventExpose.cs \
|
||||
EventFocus.cs \
|
||||
EventGrabBroken.cs \
|
||||
EventKey.cs \
|
||||
EventMotion.cs \
|
||||
EventProperty.cs \
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
<symbol type="manual" cname="GdkEventDND" name="Gdk.EventDND"/>
|
||||
<symbol type="manual" cname="GdkEventExpose" name="Gdk.EventExpose"/>
|
||||
<symbol type="manual" cname="GdkEventFocus" name="Gdk.EventFocus"/>
|
||||
<symbol type="manual" cname="GdkEventGrabBroken" name="Gdk.EventGrabBroken"/>
|
||||
<symbol type="manual" cname="GdkEventKey" name="Gdk.EventKey"/>
|
||||
<symbol type="manual" cname="GdkEventMotion" name="Gdk.EventMotion"/>
|
||||
<symbol type="marshal" cname="GdkEventNoExpose" name="Gdk.Event" marshal_type="IntPtr" call_fmt="{0}.Handle" from_fmt="Gdk.Event.GetEvent ({0})"/>
|
||||
|
|
Loading…
Reference in a new issue