mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 01:15:38 +00:00
9167e8e787
* en/GLib/*.xml : docs for Boxed, ConnectBeforeAttribute, and DefaultSignalHandlerAttribute. svn path=/trunk/gtk-sharp/; revision=30679
89 lines
3.9 KiB
XML
89 lines
3.9 KiB
XML
<Type Name="DefaultSignalHandlerAttribute" FullName="GLib.DefaultSignalHandlerAttribute">
|
|
<TypeSignature Language="C#" Value="public sealed class DefaultSignalHandlerAttribute : System.Attribute" Maintainer="auto" />
|
|
<AssemblyInfo>
|
|
<AssemblyName>glib-sharp</AssemblyName>
|
|
<AssemblyPublicKey>
|
|
</AssemblyPublicKey>
|
|
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
|
<AssemblyCulture>neutral</AssemblyCulture>
|
|
<Attributes />
|
|
</AssemblyInfo>
|
|
<ThreadSafetyStatement />
|
|
<Docs>
|
|
<summary>Identifies a virtual class method on a GLib.Object subclass.</summary>
|
|
<remarks>
|
|
<para>
|
|
When a virtual method tagged with this attribute is overridden in a subclass, the method is automatically hooked into the native object's vtable. For the most part, this is an internal implementation detail, but it can be used by binding code to manually identify GObject virtual methods that can be overridden by subclasses.
|
|
</para>
|
|
<para>
|
|
The following code identifies the ForAll method as an overridable native method on the <see cref="T:Gtk.Container" /> class. When a managed subclass of Container overrides the ForAll method, at type registration time, the OverrideForall method is invoked to connect up a delegate to the native GtkContainerClass::forall vtable slot.
|
|
</para>
|
|
<example>
|
|
<code lang="C#">
|
|
static void Forall_cb (IntPtr container, bool include_internals, IntPtr cb, IntPtr data)
|
|
{
|
|
Container obj = GLib.Object.GetObject (container, false) as Container;
|
|
CallbackInvoker invoker = new CallbackInvoker (cb, data);
|
|
obj.ForAll (include_internals, invoker);
|
|
}
|
|
|
|
static void OverrideForall (GLib.GType gtype)
|
|
{
|
|
if (ForallCallback == null)
|
|
ForallCallback = new ForallDelegate (Forall_cb);
|
|
gtksharp_container_override_forall (gtype, ForallCallback);
|
|
}
|
|
|
|
[GLib.DefaultSignalHandler (Type=typeof(Gtk.Container), ConnectionMethod="OverrideForall")]
|
|
protected virtual void ForAll (bool include_internals, CallbackInvoker invoker)
|
|
{
|
|
gtksharp_container_base_forall (Handle, include_internals, invoker.Callback, invoker.Data);
|
|
} </code>
|
|
</example>
|
|
</remarks>
|
|
</Docs>
|
|
<Base>
|
|
<BaseTypeName>System.Attribute</BaseTypeName>
|
|
</Base>
|
|
<Interfaces />
|
|
<Attributes />
|
|
<Members>
|
|
<Member MemberName=".ctor">
|
|
<MemberSignature Language="C#" Value="public DefaultSignalHandlerAttribute ();" />
|
|
<MemberType>Constructor</MemberType>
|
|
<ReturnValue />
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>Public Constructor.</summary>
|
|
<returns>a <see cref="T:GLib.DefaultSignalHandlerAttribute" /></returns>
|
|
<remarks />
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="ConnectionMethod">
|
|
<MemberSignature Language="C#" Value="public string ConnectionMethod { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.String</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>The method to invoke to hook into the native object's vtable.</summary>
|
|
<returns>a <see cref="T:System.String" /> representing the method name to invoke.</returns>
|
|
<remarks>This method is invoked during type registration to hook up a callback delegate into the native object's vtable for virtual methods.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
<Member MemberName="Type">
|
|
<MemberSignature Language="C#" Value="public Type Type { set; get; };" />
|
|
<MemberType>Property</MemberType>
|
|
<ReturnValue>
|
|
<ReturnType>System.Type</ReturnType>
|
|
</ReturnValue>
|
|
<Parameters />
|
|
<Docs>
|
|
<summary>The Type of the object which exposes the virtual method.</summary>
|
|
<returns>a <see cref="T:System.Type" /></returns>
|
|
<remarks>The type registration code reflects on this type for the <see cref="M:GLib.DefaultSignalHandlerAttribute.ConnectionMethod" /> to invoke.</remarks>
|
|
</Docs>
|
|
</Member>
|
|
</Members>
|
|
</Type> |