mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 07:45:42 +00:00
ae21ffa9f2
* gdk/Color.custom: Added constructors from System.Drawing.Color and from rgb byte tuples. * gdk/Colormap.custom: Add new .custom file for the AllocColor call. svn path=/trunk/gtk-sharp/; revision=12054
10 lines
391 B
Plaintext
10 lines
391 B
Plaintext
[DllImport("libgdk-win32-2.0-0.dll", EntryPoint="gdk_colormap_alloc_color")]
|
|
static extern bool _gdk_colormap_alloc_color(IntPtr raw, ref Gdk.Color color, bool writeable, bool best_match);
|
|
|
|
public bool AllocColor(ref Gdk.Color color, bool writeable, bool best_match)
|
|
{
|
|
bool raw_ret = _gdk_colormap_alloc_color(Handle, ref color, writeable, best_match);
|
|
bool ret = raw_ret;
|
|
return ret;
|
|
}
|