2003-07-17 06:35:10 +00:00
<Type Name= "Icon" FullName= "Gtk.Icon" >
2003-10-05 07:38:14 +00:00
<TypeSignature Language= "C#" Value= "public class Icon" Maintainer= "Hector Gomez M" />
2003-07-17 06:35:10 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2005-05-23 20:41:51 +00:00
<AssemblyVersion > 2.0.0.0</AssemblyVersion>
2003-07-17 06:35:10 +00:00
</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>
<Docs >
2003-10-05 07:38:14 +00:00
<summary > Methods for handling icon properties.</summary>
<remarks />
2003-07-17 06:35:10 +00:00
</Docs>
<Base >
<BaseTypeName > System.Object</BaseTypeName>
</Base>
<Interfaces />
<Members >
<Member MemberName= "SizeRegisterAlias" >
<MemberSignature Language= "C#" Value= "public static void SizeRegisterAlias (string alias, Gtk.IconSize target);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "alias" Type= "System.String" />
<Parameter Name= "target" Type= "Gtk.IconSize" />
</Parameters>
2003-07-17 06:35:10 +00:00
<Docs >
2003-10-05 07:38:14 +00:00
<summary > Registers <paramref name= "alias" /> as another name for <paramref name= "target" /> .</summary>
<param name= "alias" > An alias for <paramref name= "name" /> .</param>
<param name= "target" > An existing icon size.</param>
<remarks >
2003-10-12 09:06:39 +00:00
<para >
2003-10-05 07:38:14 +00:00
Calling <see cref= "M:Gtk.Icon.SizeFromName" /> with <paramref name= "alias" /> as argument will return <paramref name= "target" /> .
</para>
2003-10-12 09:06:39 +00:00
</remarks>
2003-07-17 06:35:10 +00:00
</Docs>
</Member>
<Member MemberName= "SizeFromName" >
<MemberSignature Language= "C#" Value= "public static Gtk.IconSize SizeFromName (string name);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.IconSize</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "name" Type= "System.String" />
</Parameters>
2003-07-17 06:35:10 +00:00
<Docs >
2003-10-05 07:38:14 +00:00
<summary > Looks up the icon size associated with <paramref name= "name" /> .</summary>
<param name= "name" > The name to look up.</param>
<returns > The icon size with the given name.</returns>
<remarks />
2003-07-17 06:35:10 +00:00
</Docs>
</Member>
<Member MemberName= "SizeRegister" >
<MemberSignature Language= "C#" Value= "public static Gtk.IconSize SizeRegister (string name, int width, int height);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.IconSize</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "name" Type= "System.String" />
<Parameter Name= "width" Type= "System.Int32" />
<Parameter Name= "height" Type= "System.Int32" />
</Parameters>
2003-07-17 06:35:10 +00:00
<Docs >
2003-10-05 07:38:14 +00:00
<summary > Registers a new icon size.</summary>
<param name= "name" > Name of the icon size.</param>
<param name= "width" > The icon width.</param>
<param name= "height" > The icon height.</param>
<returns > Integer value representing the size.</returns>
<remarks >
2003-10-12 09:06:39 +00:00
<para >
2003-10-05 07:38:14 +00:00
Along the same lines as <see cref= "F:Gtk.IconSize.Menu" /> . Returns integer value for the size.
</para>
2003-10-12 09:06:39 +00:00
</remarks>
2003-07-17 06:35:10 +00:00
</Docs>
</Member>
<Member MemberName= "SizeGetName" >
<MemberSignature Language= "C#" Value= "public static string SizeGetName (Gtk.IconSize size);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "size" Type= "Gtk.IconSize" />
</Parameters>
2003-07-17 06:35:10 +00:00
<Docs >
2003-10-05 07:38:14 +00:00
<summary > Obtains the canonical name of the given icon size.</summary>
<param name= "size" > A <see cref= "T:Gtk.IconSize" /> .</param>
<returns > The name of the given icon size.</returns>
<remarks >
2003-10-12 09:06:39 +00:00
<para >
2003-10-05 07:38:14 +00:00
The returned string is statically allocated and should not be freed.
</para>
2003-10-12 09:06:39 +00:00
</remarks>
2003-07-17 06:35:10 +00:00
</Docs>
</Member>
2003-10-28 00:48:23 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Icon ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
<summary > A constructor.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName= "SizeLookup" >
<MemberSignature Language= "C#" Value= "public static bool SizeLookup (Gtk.IconSize size, out int width, out int height);" />
2003-07-17 06:35:10 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "size" Type= "Gtk.IconSize" />
2003-10-28 00:48:23 +00:00
<Parameter Name= "width" Type= "System.Int32&" RefType= "out" />
<Parameter Name= "height" Type= "System.Int32&" RefType= "out" />
2003-09-17 21:56:59 +00:00
</Parameters>
2003-07-17 06:35:10 +00:00
<Docs >
2003-10-28 00:48:23 +00:00
<summary > Obtains the pixel size of a semantic icon size, possibly modified by user preferences fot the default <see cref= "T:Gtk.Settings" /> .</summary>
2003-10-05 07:38:14 +00:00
<param name= "size" > An icon size.</param>
<param name= "width" > Location to store icon width.</param>
<param name= "height" > Location to store icon height.</param>
2003-10-12 09:06:39 +00:00
<returns >
<see langword= "true" /> if <paramref name= "size" /> was a valid size.</returns>
2003-10-05 07:38:14 +00:00
<remarks >
2003-10-12 09:06:39 +00:00
<para >
2003-10-28 00:48:23 +00:00
Normally size would be <see cref= "F:Gtk.IconSize.Menu" /> , <see cref= "F:Gtk.IconSize.Button" /> , etc. This method is not normally needed, <see cref= "M:Gtk.Widget.RenderIcon" /> is the usual way to get an icon for rendering, then just look at the size of the rendered pixbuf. The rendered pixbuf may not even correspond to the width/height returned by <see cref= "M:Gtk.Icon.SizeLookup" /> , because themes are free to render the pixbuf however they like, including changing the usual size.
</para>
2003-10-12 09:06:39 +00:00
</remarks>
2003-07-17 06:35:10 +00:00
</Docs>
</Member>
2003-10-28 00:48:23 +00:00
<Member MemberName= "SizeLookupForSettings" >
<MemberSignature Language= "C#" Value= "public static bool SizeLookupForSettings (Gtk.Settings settings, Gtk.IconSize size, out int width, out int height);" />
2003-07-17 06:35:10 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
2003-10-28 00:48:23 +00:00
<Parameter Name= "settings" Type= "Gtk.Settings" />
2003-09-17 21:56:59 +00:00
<Parameter Name= "size" Type= "Gtk.IconSize" />
2003-10-28 00:48:23 +00:00
<Parameter Name= "width" Type= "System.Int32&" RefType= "out" />
<Parameter Name= "height" Type= "System.Int32&" RefType= "out" />
2003-09-17 21:56:59 +00:00
</Parameters>
2003-07-17 06:35:10 +00:00
<Docs >
2003-10-28 00:48:23 +00:00
<summary > Obtains the pixel size of a semantic icon size, possibly modified by user preferences for a particular <see cref= "T:Gtk.Settings" /> .</summary>
<param name= "settings" > A <see cref= "T:Gtk.Settings" /> object, used to determine which set of user preferences to use.</param>
2003-10-05 07:38:14 +00:00
<param name= "size" > An icon size.</param>
<param name= "width" > Location to store icon width.</param>
<param name= "height" > Location to store icon height.</param>
2003-10-12 09:06:39 +00:00
<returns >
<see langword= "true" /> if <paramref name= "size" /> was a valid size.</returns>
2003-10-05 07:38:14 +00:00
<remarks >
2003-10-12 09:06:39 +00:00
<para >
2003-10-28 00:48:23 +00:00
Normally size would be <see cref= "F:Gtk.IconSize.Menu" /> , <see cref= "F:Gtk.IconSize.Button" /> , etc. This method is not normally needed, <see cref= "M:Gtk.Widget.RenderIcon" /> is the usual way to get an icon for rendering, then just look at the size of the rendered pixbuf. The rendered pixbuf may not even correspond to the width/height returned by <see cref= "M:Gtk.Icon.SizeLookup" /> , because themes are free to render the pixbuf however they like, including changing the usual size.
</para>
2003-10-12 09:06:39 +00:00
</remarks>
2003-07-17 06:35:10 +00:00
</Docs>
</Member>
</Members>
2005-05-23 20:41:51 +00:00
</Type>