<Type Name="Quit" FullName="Gtk.Quit">
  <TypeSignature Language="C#" Value="public class Quit" Maintainer="John Luke" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit Quit extends System.Object" />
  <AssemblyInfo>
    <AssemblyName>gtk-sharp</AssemblyName>
    <AssemblyPublicKey>
    </AssemblyPublicKey>
    <AssemblyVersion>2.12.0.0</AssemblyVersion>
  </AssemblyInfo>
  <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
  <Base>
    <BaseTypeName>System.Object</BaseTypeName>
  </Base>
  <Interfaces />
  <Docs>
    <summary>Object to encapsulate code for running at the end of program execution.</summary>
    <remarks>
    </remarks>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public Quit ();" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.12.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue />
      <Parameters />
      <Docs>
        <summary>Default Constructor</summary>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="Add">
      <MemberSignature Language="C#" Value="public static uint Add (uint main_level, Gtk.Function function);" />
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig unsigned int32 Add(unsigned int32 main_level, class Gtk.Function function) cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.12.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.UInt32</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="main_level" Type="System.UInt32" />
        <Parameter Name="function" Type="Gtk.Function" />
      </Parameters>
      <Docs>
        <param name="main_level">a <see cref="T:System.UInt32" /></param>
        <param name="function">a <see cref="T:Gtk.Function" /></param>
        <summary>Registers a function to be called when an instance of the mainloop is left.</summary>
        <returns>a <see cref="T:System.UInt32" /></returns>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="AddDestroy">
      <MemberSignature Language="C#" Value="public static void AddDestroy (uint main_level, Gtk.Object objekt);" />
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig void AddDestroy(unsigned int32 main_level, class Gtk.Object objekt) cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.12.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Void</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="main_level" Type="System.UInt32" />
        <Parameter Name="objekt" Type="Gtk.Object" />
      </Parameters>
      <Docs>
        <param name="main_level">a <see cref="T:System.UInt32" /></param>
        <param name="objekt">a <see cref="T:Gtk.Object" /></param>
        <summary>Trigger destruction of <paramref name="objekt" /> in case the mainloop at level <paramref name="main_level" /> is quit.</summary>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="AddFull">
      <MemberSignature Language="C#" Value="public static uint AddFull (uint main_level, Gtk.Function function, Gtk.CallbackMarshal marshal, IntPtr data, Gtk.DestroyNotify destroy);" />
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig unsigned int32 AddFull(unsigned int32 main_level, class Gtk.Function function, class Gtk.CallbackMarshal marshal, native int data, class Gtk.DestroyNotify destroy) cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.12.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Attributes>
        <Attribute>
          <AttributeName>System.Obsolete("Replaced by Add method")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.UInt32</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="main_level" Type="System.UInt32" />
        <Parameter Name="function" Type="Gtk.Function" />
        <Parameter Name="marshal" Type="Gtk.CallbackMarshal" />
        <Parameter Name="data" Type="System.IntPtr" />
        <Parameter Name="destroy" Type="Gtk.DestroyNotify" />
      </Parameters>
      <Docs>
        <param name="main_level">a <see cref="T:System.UInt32" /></param>
        <param name="function">a <see cref="T:Gtk.Function" /></param>
        <param name="marshal">a <see cref="T:Gtk.CallbackMarshal" /></param>
        <param name="data">a <see cref="T:System.IntPtr" /></param>
        <param name="destroy">a <see cref="T:Gtk.DestroyNotify" /></param>
        <summary>Registers a function to be called when an instance of the mainloop is left.</summary>
        <returns>a <see cref="T:System.UInt32" /></returns>
        <remarks>
          <para>In comparison to <see cref="M:Gtk.Quit.Add()" /> this function adds the possibility to pass a marshaller and a function to be called when the quit handler is freed.</para>
          <para>The former can be used to run interpreted code instead of a compiled function while the latter can be used to free the information stored in data.</para>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="Remove">
      <MemberSignature Language="C#" Value="public static void Remove (uint quit_handler_id);" />
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig void Remove(unsigned int32 quit_handler_id) cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.12.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Void</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="quit_handler_id" Type="System.UInt32" />
      </Parameters>
      <Docs>
        <param name="quit_handler_id">a <see cref="T:System.UInt32" /></param>
        <summary>Removes a quit handler by its identifier.</summary>
        <remarks>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="RemoveByData">
      <MemberSignature Language="C#" Value="public static void RemoveByData (IntPtr data);" />
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig void RemoveByData(native int data) cil managed" />
      <MemberType>Method</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.12.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Void</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="data" Type="System.IntPtr" />
      </Parameters>
      <Docs>
        <param name="data">a <see cref="T:System.IntPtr" /></param>
        <summary>Removes a quit handler identified by its <paramref name="data" /> field.</summary>
        <remarks>
        </remarks>
      </Docs>
    </Member>
  </Members>
</Type>
