GtkSharp/gdk/Colormap.custom
Miguel de Icaza ae21ffa9f2 2003-02-28 Miguel de Icaza <miguel@ximian.com>
* 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
2003-02-28 07:28:06 +00:00

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;
}