<Type Name="WidgetAttribute" FullName="Glade.WidgetAttribute">
  <TypeSignature Language="C#" Maintainer="miguel" Value="public class WidgetAttribute : Attribute" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit WidgetAttribute extends System.Attribute" />
  <AssemblyInfo>
    <AssemblyName>glade-sharp</AssemblyName>
    <AssemblyPublicKey>
    </AssemblyPublicKey>
    <AssemblyVersion>2.12.0.0</AssemblyVersion>
  </AssemblyInfo>
  <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement>
  <Base>
    <BaseTypeName>System.Attribute</BaseTypeName>
  </Base>
  <Interfaces />
  <Attributes>
    <Attribute>
      <AttributeName>System.AttributeUsage(System.AttributeTargets.Field)</AttributeName>
    </Attribute>
  </Attributes>
  <Docs>
    <summary>Marks a widget for auto-binding</summary>
    <remarks>
      <para>
	This attribute when attached to a field value is used by the
	Autoconnect functionality in <see cref="T:Glade.XML" /> to bind a
	widget created by Glade to the field.  
      </para>
      <para>
	The attribute can be applied to any widgets (widgets derive
	from the <see cref="T:Gtk.Widget" /> class) and it can be
	applied to static and instance fields.
      </para>
      <para>
	By default the runtime will match the tagged field name with
	the name that was given to the widget on the Glade user
	interface designer. An optional string argument can be
	provided on the constructor to bind the widget to a different
	name. 
      </para>
      <para>
	For the binding to take place, the <see cref="M:Glade.XML.Autoconnect()" /> method has to be invoked
	on either the class or the instance.
      </para>
    </remarks>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public WidgetAttribute ();" />
      <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>Flags a <see cref="T:Gtk.Widget" /> to be auto-connected</summary>
        <remarks>
          <para>
	      This will bind the widget whose name in the Glade
	      designer is the same as the field name.  If you want to
	      target a different widget in the glade file, use the
	      <see cref="M:Glade.WidgetAttribute.WidgetAttribute(string)" />
	      attribute instead.
	    </para>
          <para>
	      For the binding to take place, the <see cref="M:Glade.XML.Autoconnect()" /> method has to be invoked
		on either the class or the instance.
	    </para>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public WidgetAttribute (string name);" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string name) cil managed" />
      <MemberType>Constructor</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.12.0.0</AssemblyVersion>
      </AssemblyInfo>
      <Parameters>
        <Parameter Name="name" Type="System.String" />
      </Parameters>
      <Docs>
        <param name="name">The name of the widget in the Glade file
	    that this widget should be mapped to</param>
        <summary>Flags a <see cref="T:Gtk.Widget" /> to be auto-connected</summary>
        <remarks>
          <para>
	      This will bind the widget whose name in the Glade
	      designer is <paramref name="name" /> to the field that
	      the attribute is attached to.  If the field name is the
	      same as the widget name in the Glade designer, you can
	      avoid the name parameter.
	    </para>
          <para>
	      For the binding to take place, the <see cref="M:Glade.XML.Autoconnect()" /> method has to be invoked
		on either the class or the instance.
	    </para>
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="Name">
      <MemberSignature Language="C#" Value="public string Name { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance string Name" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.12.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>The name of the widget targetted</summary>
        <value>The name of the widget targeted in the Glade
	  definition file.</value>
        <remarks />
      </Docs>
    </Member>
    <Member MemberName="Specified">
      <MemberSignature Language="C#" Value="public bool Specified { get; }" />
      <MemberSignature Language="ILAsm" Value=".property instance bool Specified" />
      <MemberType>Property</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>2.12.0.0</AssemblyVersion>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>System.Boolean</ReturnType>
      </ReturnValue>
      <Docs>
        <summary>Whether a specific binding was requested</summary>
        <value>This returns <see langword="true" /> if a specific
	  widget name was requested to be bound, or <see langword="false" /> if the runtime has to use the field name
	  as the Glade name.</value>
        <remarks />
      </Docs>
    </Member>
  </Members>
</Type>
