2003-02-12 02:00:12 +00:00
<Type Name= "IconSet" FullName= "Gtk.IconSet" >
2003-07-04 07:49:31 +00:00
<TypeSignature Language= "C#" Value= "public class IconSet : GLib.Opaque, IWrapper" 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 >
2003-07-04 07:49:31 +00:00
<summary >
A <see cref= "T:Gtk.IconSet" /> represents a single icon in various sizes and widget states.
</summary>
<remarks >
A <see cref= "T:Gtk.IconSet" /> represents a single icon in
2003-07-17 06:38:40 +00:00
various sizes and widget states. It can provide a <see cref= "T:Gdk.Pixbuf" /> for a given size and state on request,
2004-11-05 21:25:40 +00:00
and automatically caches some of the rendered <see cref= "T:Gdk.Pixbuf" /> objects.
2003-07-04 07:49:31 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Base >
<BaseTypeName > GLib.Opaque</BaseTypeName>
</Base>
<Interfaces >
<Interface >
<InterfaceName > GLib.IWrapper</InterfaceName>
</Interface>
</Interfaces>
<Attributes />
<Members >
<Member MemberName= "RenderIcon" >
<MemberSignature Language= "C#" Value= "public Gdk.Pixbuf RenderIcon (Gtk.Style style, Gtk.TextDirection direction, Gtk.StateType state, Gtk.IconSize size, Gtk.Widget widget, string detail);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gdk.Pixbuf</ReturnType>
</ReturnValue>
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "style" Type= "Gtk.Style" />
<Parameter Name= "direction" Type= "Gtk.TextDirection" />
<Parameter Name= "state" Type= "Gtk.StateType" />
<Parameter Name= "size" Type= "Gtk.IconSize" />
<Parameter Name= "widget" Type= "Gtk.Widget" />
<Parameter Name= "detail" Type= "System.String" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-07-04 07:49:31 +00:00
<summary >
2003-07-17 06:38:40 +00:00
Renders an icon using <see cref= "M:Gtk.Style.RenderIcon(Gtk.IconSource,Gtk.TextDirection,Gtk.StateType,Gtk.IconSize,Gtk.Widget,System.String)" /> </summary>
2003-07-04 07:49:31 +00:00
<param name= "style" >
2003-07-17 06:38:40 +00:00
a <see cref= "T:Gtk.Style" /> associated with widget, or <see langword= "null" /> </param>
2003-07-04 07:49:31 +00:00
<param name= "direction" > The text direction</param>
<param name= "state" > The widget state</param>
<param name= "size" > The size of the icon</param>
<param name= "widget" >
2003-07-17 06:38:40 +00:00
widget that will display the icon, or <see langword= "null" /> </param>
2003-07-04 07:49:31 +00:00
<param name= "detail" >
2003-07-17 06:38:40 +00:00
detail to pass to the theme engine, or <see langword= "null" /> </param>
2003-07-04 07:49:31 +00:00
<returns > a <see cref= "T:Gdk.Pixbuf" /> to be displayed</returns>
<remarks >
2003-07-17 06:38:40 +00:00
Renders an icon using <see cref= "M:Gtk.Style.RenderIcon(Gtk.IconSource,Gtk.TextDirection,Gtk.StateType,Gtk.IconSize,Gtk.Widget,System.String)" /> . In
most cases, <see cref= "M:Gtk.Widget.RenderIcon(System.String,Gtk.IconSize,System.String)" /> is better, since it automatically provides most of the arguments from the
current widget settings. This function never returns <see langword= "null" /> ;
2003-07-04 07:49:31 +00:00
if the icon can't be rendered (perhaps because an image file
fails to load), a default "missing image" icon will be
returned instead.
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Copy" >
<MemberSignature Language= "C#" Value= "public Gtk.IconSet Copy ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.IconSet</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-07-04 07:49:31 +00:00
<summary >
Copy the IconSet by value.
</summary>
<returns > a copy of the current IconSet</returns>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "AddSource" >
<MemberSignature Language= "C#" Value= "public void AddSource (Gtk.IconSource source);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "source" Type= "Gtk.IconSource" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-07-04 07:49:31 +00:00
<summary >
Adds an IconSource to the current IconSet.
</summary>
2004-08-06 13:18:10 +00:00
<param name= "source" > an object of type <see cref= "T:Gtk.IconSource" /> </param>
2003-07-04 07:49:31 +00:00
<remarks >
<para >
Icon sets have a list of <see cref= "T:Gtk.IconSource" /> ,
which they use as base icons for rendering icons in
different states and sizes. Icons are scaled, made to look
2003-07-17 06:38:40 +00:00
insensitive, etc. in <see cref= "M:Gtk.Style.RenderIcon(Gtk.IconSource,Gtk.TextDirection,Gtk.StateType,Gtk.IconSize,Gtk.Widget,System.String)" /> ,
2003-07-04 07:49:31 +00:00
but <see cref= "T:Gtk.IconSet" /> needs base images to work
with. The base images and when to use them are described
by a <see cref= "T:Gtk.IconSource" /> .
</para>
<para >
2003-07-31 21:44:39 +00:00
This function copies <paramref name= "source" /> , so you can reuse the same
2003-07-04 07:49:31 +00:00
source immediately without affecting the icon set.
</para>
<para >
An example of when you'd use this function: a web
browser's "Back to Previous Page" icon might point in a
different direction in Hebrew and in English; it might
look different when insensitive; and it might change size
depending on toolbar mode (small/large icons). So a single
icon set would contain all those variants of the icon, and
you might add a separate source for each one.
</para>
<para >
You should nearly always add a "default" icon source with
all fields wildcarded, which will be used as a fallback if
2003-07-17 06:38:40 +00:00
no more specific source matches. <see cref= "T:Gtk.IconSet" /> always prefers more specific icon sources to more
2003-07-04 07:49:31 +00:00
generic icon sources. The order in which you add the
sources to the icon set does not matter.
</para>
<para >
This <see cref= "C:Gtk.IconSet(Gdk.Pixbuf)" /> constructor
creates a new icon set with a default icon source based on
the given pixbuf.
</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Ref" >
<MemberSignature Language= "C#" Value= "public Gtk.IconSet Ref ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.IconSet</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-07-04 07:49:31 +00:00
<summary > Increments the reference count.</summary>
<returns > the IconSet with the incremented reference count</returns>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Unref" >
<MemberSignature Language= "C#" Value= "public void Unref ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-07-04 07:49:31 +00:00
<summary > Decrements the reference count</summary>
<remarks >
Decrements the reference count, and frees memory
if the reference count reaches 0.
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public IconSet (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 IconSet, 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 IconSet ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2003-07-04 07:49:31 +00:00
<summary >
2003-07-17 06:38:40 +00:00
Creates a new <see cref= "T:Gtk.IconSet" /> . A <see cref= "T:Gtk.IconSet" /> represents a single
2003-07-04 07:49:31 +00:00
icon in various sizes and widget states. It can provide a
<see cref= "T:Gdk.Pixbuf" /> for a given size and state on request, and
2003-07-17 06:38:40 +00:00
automatically caches some of the rendered <see cref= "T:Gdk.Pixbuf" /> objects.
2003-07-04 07:49:31 +00:00
</summary>
<returns > a new IconSet</returns>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public IconSet (Gdk.Pixbuf pixbuf);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "pixbuf" Type= "Gdk.Pixbuf" />
</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
Creates a new <see cref= "T:Gtk.IconSet" /> with <paramref name= "pixbuf" /> as the default/fallback source image.
2003-07-04 07:49:31 +00:00
</summary>
<param name= "pixbuf" >
2003-07-17 06:38:40 +00:00
a <see cref= "T:Gdk.Pixbuf" /> </param>
2003-07-04 07:49:31 +00:00
<returns > an <see cref= "T:Gtk.IconSet" /> .</returns>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "Sizes" >
<MemberSignature Language= "C#" Value= "public Gtk.IconSize [] Sizes { get; };" />
2003-02-12 02:00:12 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
2003-12-24 01:35:30 +00:00
<ReturnType > Gtk.IconSize[]</ReturnType>
2003-02-12 02:00:12 +00:00
</ReturnValue>
<Docs >
2004-08-06 13:18:10 +00:00
<summary > The available icon sizes on this system.</summary>
2003-12-24 01:35:30 +00:00
<returns > a <see cref= "T:Gtk.IconSize[]" /> </returns>
2004-08-06 13:18:10 +00:00
<remarks />
2003-02-12 02:00:12 +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; };" />
2003-07-17 06:38:40 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
2003-12-24 01:35:30 +00:00
<ReturnType > GLib.GType</ReturnType>
2003-07-17 06:38:40 +00:00
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters />
2003-07-17 06:38:40 +00:00
<Docs >
2004-06-21 20:14:42 +00:00
<summary > GType Property.</summary>
2003-12-24 01:35:30 +00:00
<returns > a <see cref= "T:GLib.GType" /> </returns>
2004-06-21 20:14:42 +00:00
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gtk.IconSet" /> .</remarks>
2003-07-17 06:38:40 +00:00
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2004-11-05 21:25:40 +00:00
</Type>