2003-02-12 02:00:12 +00:00
<Type Name= "IconSet" FullName= "Gtk.IconSet" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "duncan" Value= "public class IconSet : GLib.Opaque" />
2011-11-09 16:01:51 +00:00
<TypeSignature Language= "ILAsm" Value= ".class public auto ansi beforefieldinit IconSet extends GLib.Opaque" />
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
</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>
2011-11-09 16:01:51 +00:00
<Base >
<BaseTypeName > GLib.Opaque</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
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>
<Members >
2011-11-09 16:01:51 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public IconSet ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
2003-02-12 02:00:12 +00:00
<Docs >
2003-07-04 07:49:31 +00:00
<summary >
2011-11-09 16:01:51 +00:00
Creates a new <see cref= "T:Gtk.IconSet" /> . A <see cref= "T:Gtk.IconSet" /> represents a single
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
automatically caches some of the rendered <see cref= "T:Gdk.Pixbuf" /> objects.
</summary>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public IconSet (Gdk.Pixbuf pixbuf);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor(class Gdk.Pixbuf pixbuf) cil managed" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "pixbuf" Type= "Gdk.Pixbuf" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "pixbuf" >
a <see cref= "T:Gdk.Pixbuf" /> </param>
2003-07-04 07:49:31 +00:00
<summary >
2011-11-09 16:01:51 +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>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public IconSet (IntPtr raw);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor(native int raw) cil managed" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
<Docs >
<param name= "raw" > Pointer to the C object.</param>
<summary > Internal constructor</summary>
<remarks >
<para > This is an internal constructor, and should not be used by user code.</para>
</remarks>
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "AddSource" >
<MemberSignature Language= "C#" Value= "public void AddSource (Gtk.IconSource source);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void AddSource(class Gtk.IconSource source) cil managed" />
2003-02-12 02:00:12 +00:00
<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 >
2011-11-09 16:01:51 +00:00
<param name= "source" > an object of type <see cref= "T:Gtk.IconSource" /> </param>
2003-07-04 07:49:31 +00:00
<summary >
Adds an IconSource to the current IconSet.
</summary>
<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>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Copy" >
<MemberSignature Language= "C#" Value= "public Gtk.IconSet Copy ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance class Gtk.IconSet Copy() cil managed" />
2003-02-12 02:00:12 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.IconSet</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary >
Copy the IconSet by value.
</summary>
<returns > a copy of the current IconSet</returns>
2003-07-04 07:49:31 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Finalize" >
<MemberSignature Language= "C#" Value= "~IconSet ();" />
<MemberSignature Language= "ILAsm" Value= ".method familyhidebysig virtual instance void Finalize() cil managed" />
2003-02-12 02:00:12 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary > To be added.</summary>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; }" />
<MemberSignature Language= "ILAsm" Value= ".property valuetype GLib.GType GType" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > GType Property.</summary>
<value > a <see cref= "T:GLib.GType" /> </value>
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gtk.IconSet" /> .</remarks>
</Docs>
</Member>
<Member MemberName= "Ref" >
<MemberSignature Language= "C#" Value= "public Gtk.IconSet Ref ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance class Gtk.IconSet Ref() cil managed" />
<MemberType > Method</MemberType>
<Attributes >
<Attribute >
<AttributeName > System.Obsolete("Gtk.IconSet is now refcounted automatically")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > Gtk.IconSet</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > Increments the reference count.</summary>
<returns > the IconSet with the incremented reference count</returns>
<remarks />
</Docs>
</Member>
<Member MemberName= "Ref" >
<MemberSignature Language= "C#" Value= "protected override void Ref (IntPtr raw);" />
<MemberSignature Language= "ILAsm" Value= ".method familyhidebysig virtual instance void Ref(native int raw) cil managed" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
2003-02-12 02:00:12 +00:00
<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 >
2011-11-09 16:01:51 +00:00
<param name= "raw" > To be added.</param>
<summary > To be added.</summary>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<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);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance class Gdk.Pixbuf RenderIcon(class Gtk.Style style, valuetype Gtk.TextDirection direction, valuetype Gtk.StateType state, valuetype Gtk.IconSize size, class Gtk.Widget widget, string detail) cil managed" />
<MemberType > Method</MemberType>
<Attributes >
<Attribute >
<AttributeName > System.Obsolete</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > Gdk.Pixbuf</ReturnType>
</ReturnValue>
<Parameters >
<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 >
2011-11-09 16:01:51 +00:00
<param name= "style" >
a <see cref= "T:Gtk.Style" /> associated with widget, or <see langword= "null" /> </param>
<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" >
widget that will display the icon, or <see langword= "null" /> </param>
<param name= "detail" >
detail to pass to the theme engine, or <see langword= "null" /> </param>
2003-07-04 07:49:31 +00:00
<summary >
2011-11-09 16:01:51 +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>
<returns > a <see cref= "T:Gdk.Pixbuf" /> to be displayed</returns>
<remarks >
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" /> ;
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>
2011-11-09 16:01:51 +00:00
<Member MemberName= "RenderIconPixbuf" >
<MemberSignature Language= "C#" Value= "public Gdk.Pixbuf RenderIconPixbuf (Gtk.StyleContext context, Gtk.IconSize size);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance class Gdk.Pixbuf RenderIconPixbuf(class Gtk.StyleContext context, valuetype Gtk.IconSize size) cil managed" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gdk.Pixbuf</ReturnType>
</ReturnValue>
2003-02-12 02:00:12 +00:00
<Parameters >
2011-11-09 16:01:51 +00:00
<Parameter Name= "context" Type= "Gtk.StyleContext" />
<Parameter Name= "size" Type= "Gtk.IconSize" />
2003-07-31 21:44:39 +00:00
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "context" > To be added.</param>
<param name= "size" > To be added.</param>
<summary > To be added.</summary>
<returns > To be added.</returns>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "Sizes" >
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "C#" Value= "public Gtk.IconSize[] Sizes { get; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance valuetype Gtk.IconSize[] Sizes" />
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>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:Gtk.IconSize[]" /> </value>
2004-08-06 13:18:10 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Unref" >
<MemberSignature Language= "C#" Value= "public void Unref ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Unref() cil managed" />
<MemberType > Method</MemberType>
<Attributes >
<Attribute >
<AttributeName > System.Obsolete("Gtk.IconSet is now refcounted automatically")</AttributeName>
</Attribute>
</Attributes>
2003-07-17 06:38:40 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Void</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 >
2011-11-09 16:01:51 +00:00
<summary > Decrements the reference count</summary>
<remarks >
Decrements the reference count, and frees memory
if the reference count reaches 0.
</remarks>
</Docs>
</Member>
<Member MemberName= "Unref" >
<MemberSignature Language= "C#" Value= "protected override void Unref (IntPtr raw);" />
<MemberSignature Language= "ILAsm" Value= ".method familyhidebysig virtual instance void Unref(native int raw) cil managed" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
<Docs >
<param name= "raw" > To be added.</param>
<summary > To be added.</summary>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
2003-07-17 06:38:40 +00:00
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>