2003-02-12 02:00:12 +00:00
<Type Name= "IconFactory" FullName= "Gtk.IconFactory" >
2003-07-04 07:49:31 +00:00
<TypeSignature Language= "C#" Value= "public class IconFactory : GLib.Object, IWrapper, IDisposable" Maintainer= "duncan" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2003-02-12 02:00:12 +00:00
<AssemblyVersion > 0.0.0.0</AssemblyVersion>
2003-10-28 00:48:23 +00:00
<AssemblyCulture > neutral</AssemblyCulture>
2003-02-12 02:00:12 +00:00
<Attributes />
</AssemblyInfo>
2003-02-23 07:26:30 +00:00
<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>
2003-02-12 02:00:12 +00:00
<Docs >
2004-04-10 22:07:38 +00:00
<summary > An icon factory manages a collection of Gtk.IconSet.</summary>
2003-07-04 07:49:31 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
<Base >
<BaseTypeName > GLib.Object</BaseTypeName>
</Base>
<Interfaces >
<Interface >
<InterfaceName > GLib.IWrapper</InterfaceName>
</Interface>
<Interface >
<InterfaceName > System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes />
<Members >
<Member MemberName= "LookupDefault" >
<MemberSignature Language= "C#" Value= "public static Gtk.IconSet LookupDefault (string stock_id);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.IconSet</ReturnType>
</ReturnValue>
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "stock_id" Type= "System.String" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-07-04 07:49:31 +00:00
<summary > Looks for an icon in the list of default icon factories.</summary>
<param name= "stock_id" > an icon name</param>
<returns >
a <see cref= "T:Gtk.IconSet" /> , or <see langword= "null" /> .
</returns>
<remarks >
Looks for an icon in the list of default icon factories. For
display to the user, you should use
2003-07-17 06:38:40 +00:00
<see cref= "M:Gtk.Style.LookupIconSet(System.String)" /> on the <see cref= "T:Gtk.Style" /> for the widget
2003-07-04 07:49:31 +00:00
that will display the icon, instead of using this function
directly, so that themes are taken into account.
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "AddDefault" >
<MemberSignature Language= "C#" Value= "public void AddDefault ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-07-04 07:49:31 +00:00
<summary >
Adds an icon factory to the list of icon factories searched
by <see cref= "M:Gtk.Style.LookupIconSet" /> .
</summary>
<remarks >
Adds an icon factory to the list of icon factories searched
2003-07-17 06:38:40 +00:00
by <see cref= "M:Gtk.Style.LookupIconSet(System.String)" /> . This means that, for example, <see cref= "C:Gtk.Image(System.String,Gtk.IconSize)" /> will be
2003-07-04 07:49:31 +00:00
able to find icons in factory. There will normally be an
icon factory added for each library or application that
comes with icons. The default icon factories can be
overridden by themes.
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Add" >
<MemberSignature Language= "C#" Value= "public void Add (string stock_id, Gtk.IconSet icon_set);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "stock_id" Type= "System.String" />
<Parameter Name= "icon_set" Type= "Gtk.IconSet" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-07-04 07:49:31 +00:00
<summary >
2003-07-31 21:44:39 +00:00
Adds the given <paramref name= "icon_set" /> to the icon factory, under the name
<paramref name= "stock_id" /> .
2003-07-04 07:49:31 +00:00
</summary>
<param name= "stock_id" > The icon's name</param>
<param name= "icon_set" > The icon set</param>
<remarks >
2003-07-31 21:44:39 +00:00
Adds the given <paramref name= "icon_set" /> to the icon factory, under the name
<paramref name= "stock_id" /> . <paramref name= "stock_id" /> should be namespaced for your
2003-07-04 07:49:31 +00:00
application, e.g. "myapp-name-of-icon". Normally
applications create a <see cref= "T:Gtk.IconFactory" /> , then add it to the
list of default factories with
<see cref= "M:Gtk.IconFactory.AddDefault" /> . They pass the
2003-07-31 21:44:39 +00:00
<paramref name= "stock_id" /> to widgets such as <see cref= "T:Gtk.Image" /> to display the icon. Themes can
2003-07-04 07:49:31 +00:00
provide an icon with the same name (such as
"myapp-name-of-icon") to override your application's
default icons. If an icon already existed in factory for
2003-07-31 21:44:39 +00:00
<paramref name= "stock_id" /> , it is unreferenced and replaced with the new
<paramref name= "icon_set" /> .
2003-07-04 07:49:31 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Lookup" >
<MemberSignature Language= "C#" Value= "public Gtk.IconSet Lookup (string stock_id);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.IconSet</ReturnType>
</ReturnValue>
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "stock_id" Type= "System.String" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-07-04 07:49:31 +00:00
<summary >
Looks up a Stock ID in the icon factory.
</summary>
<param name= "stock_id" > an icon name</param>
<returns >
a <see cref= "T:Gtk.IconSet" /> , or <see langword= "null" /> .
</returns>
<remarks >
2003-07-31 21:44:39 +00:00
Looks up <paramref name= "stock_id" /> in the icon factory, returning an icon set
2003-07-04 07:49:31 +00:00
if found, otherwise <see langword= "null" /> . For display to the user, you
should use <see cref= "M:Gtk.Style.LookupIconSet(System.String)" /> on the
<see cref= "T:Gtk.Style" /> for
the widget that will display the icon, instead of using this
function directly, so that themes are taken into account.
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "RemoveDefault" >
<MemberSignature Language= "C#" Value= "public void RemoveDefault ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-07-04 07:49:31 +00:00
<summary >
Removes an icon factory from the list of default icon factories.
</summary>
<remarks >
Removes an icon factory from the list of default icon
factories. Not normally used; you might use it for a library
that can be unloaded or shut down.
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Finalize" >
2003-10-13 22:55:58 +00:00
<MemberSignature Language= "C#" Value= "protected override void Finalize ();" />
2003-02-12 02:00:12 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Disposes the resources associated with the object.</summary>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public IconFactory (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Internal constructor</summary>
<param name= "raw" > Pointer to the C object.</param>
<returns > An instance of IconFactory, wrapping the C object.</returns>
<remarks >
<para > This is an internal constructor, and should not be used by user code.</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public IconFactory ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2003-07-04 07:49:31 +00:00
<summary > Creates a new <see cref= "T:Gtk.IconFactory" /> .</summary>
<returns > A new <see cref= "T:Gtk.IconFactory" /> .</returns>
<remarks >
Creates a new <see cref= "T:Gtk.IconFactory" /> . An icon factory manages a
2003-07-17 06:38:40 +00:00
collection of <see cref= "T:Gtk.IconSet" /> s; a <see cref= "T:Gtk.IconSet" /> manages a set of
2003-07-04 07:49:31 +00:00
variants of a particular icon (i.e. a GtkIconSet contains
variants for different sizes and widget states). Icons in an
icon factory are named by a stock ID, which is a simple
string identifying the icon. Each <see cref= "T:Gtk.Style" /> has a list of
GtkIconFactorys derived from the current theme; those icon
factories are consulted first when searching for an icon. If
the theme doesn't set a particular icon, GTK+ looks for the
icon in a list of default icon factories, maintained by
<see cref= "M:Gtk.IconFactory.AddDefault" /> and
<see cref= "M:Gtk.IconFactory.RemoveDefault" /> . Applications with icons
should add a default icon factory with their icons, which
will allow themes to override the icons for the application.
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2003-05-08 20:26:02 +00:00
<Member MemberName= "LookupIconSize" >
2003-07-17 06:38:40 +00:00
<MemberSignature Language= "C#" Value= "public void LookupIconSize (Gtk.IconSize size, out int width, out int height);" />
2003-05-08 20:26:02 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2003-07-17 06:38:40 +00:00
<ReturnType > System.Void</ReturnType>
2003-05-08 20:26:02 +00:00
</ReturnValue>
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "size" Type= "Gtk.IconSize" />
<Parameter Name= "width" Type= "System.Int32&" RefType= "out" />
<Parameter Name= "height" Type= "System.Int32&" RefType= "out" />
</Parameters>
2003-05-08 20:26:02 +00:00
<Docs >
2003-07-17 06:38:40 +00:00
<summary > Obtains the pixel size of a semantic icon size</summary>
<param name= "size" > an icon size</param>
<param name= "width" > an integer to store the icon's width</param>
<param name= "height" > an integer to store the icon's height</param>
2003-07-04 07:49:31 +00:00
<remarks />
2003-05-08 20:26:02 +00:00
</Docs>
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > To be added</summary>
<returns > a <see cref= "T:GLib.GType" /> </returns>
<remarks > To be added</remarks>
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected IconFactory (GLib.GType gtype);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "gtype" Type= "GLib.GType" />
</Parameters>
<Docs >
<summary > To be added</summary>
<param name= "gtype" > a <see cref= "T:GLib.GType" /> </param>
<returns > a <see cref= "T:Gtk.IconFactory" /> </returns>
<remarks > To be added</remarks>
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2003-07-31 21:44:39 +00:00
</Type>