mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 12:25:40 +00:00
29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
||
|
unsafe static extern void gtk_icon_set_get_sizes (
|
||
|
IntPtr raw, out int *pointer_to_enum, out int n_sizes);
|
||
|
|
||
|
[DllImport("libglib-2.0-0.dll")]
|
||
|
unsafe static extern void g_free (int *mem);
|
||
|
|
||
|
/// <summary> Sizes Property </summary>
|
||
|
/// <remarks> To be completed </remarks>
|
||
|
public Gtk.IconSize [] Sizes {
|
||
|
get {
|
||
|
|
||
|
Gtk.IconSize [] retval;
|
||
|
|
||
|
unsafe {
|
||
|
int length;
|
||
|
int *pointer_to_enum;
|
||
|
gtk_icon_set_get_sizes (Handle, out pointer_to_enum, out length);
|
||
|
retval = new Gtk.IconSize [length];
|
||
|
for (int i = 0; i < length; i++)
|
||
|
retval [i] = (Gtk.IconSize) pointer_to_enum [i];
|
||
|
|
||
|
g_free (pointer_to_enum);
|
||
|
}
|
||
|
|
||
|
return retval;
|
||
|
}
|
||
|
}
|