mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-23 22:11:00 +00:00
Added IconFactory.custom file from mathias.hasselmann@gmx.de
svn path=/trunk/gtk-sharp/; revision=13730
This commit is contained in:
parent
b5cfb4ba67
commit
0676f9ddc9
18
gtk/IconFactory.custom
Normal file
18
gtk/IconFactory.custom
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||||
|
extern static void gtk_icon_size_lookup (IconSize size, out int width, out int height);
|
||||||
|
|
||||||
|
/// <summary> Query icon dimensions </summary>
|
||||||
|
/// <remarks> Queries dimensions for icons of the specified size. </remarks>
|
||||||
|
public void LookupIconSize (IconSize size, out int width, out int height)
|
||||||
|
{
|
||||||
|
gtk_icon_size_lookup (size, out width, out height);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary> Query icon dimensions </summary>
|
||||||
|
/// <remarks> Queries dimensions for icons of the specified size. </remarks>
|
||||||
|
public System.Drawing.Size LookupIconSize (IconSize size)
|
||||||
|
{
|
||||||
|
int width, height;
|
||||||
|
gtk_icon_size_lookup (size, out width, out height);
|
||||||
|
return new System.Drawing.Size(width, height);
|
||||||
|
}
|
Loading…
Reference in a new issue