diff --git a/doc/en/Gdk/Color.xml b/doc/en/Gdk/Color.xml
index ef28e0e10..1534bbd3b 100644
--- a/doc/en/Gdk/Color.xml
+++ b/doc/en/Gdk/Color.xml
@@ -20,19 +20,19 @@
DrawRedLine (Gdk.Drawable drawable)
{
- Gdk.GC gc = new Gdk.GC (drawable);
+ Gdk.GC gc = new Gdk.GC (drawable);
- Gdk.Color red_color = new Gdk.Color (0xff, 0, 0);
+ Gdk.Color red_color = new Gdk.Color (0xff, 0, 0);
- // Use the system colormap, easy.
- Gdk.Colormap colormap = Gdk.Colormap.System;
+ // Use the system colormap, easy.
+ Gdk.Colormap colormap = Gdk.Colormap.System;
+
+ colormap.AllocColor (red_color, true, true);
+
+ gc.Foreground = red_color;
- colormap.AllocColor (red_color, true, true);
-
- gc.Foreground = red_color;
-
- // Now you can use it
- drawable.DrawLine (gc, 0, 0, 100, 100);
+ // Now you can use it
+ drawable.DrawLine (gc, 0, 0, 100, 100);
}
@@ -222,10 +222,16 @@
- To be added
- To be added: an object of type 'IntPtr'
- To be added: an object of type 'Gdk.Color'
- To be added
+ Creates a color from an unmanaged location.
+ A pointer to the unmanaged GdkColor structure.
+ This returns a Gdk.Color structure.
+
+
+ The parameter points to a C-based
+ GdkColor structure. This routine creates a Gdk.Color
+ structure from its unmanaged version.
+
+
@@ -295,9 +301,10 @@
- To be added
- To be added: an object of type 'uint'
- To be added
+ A hash function suitable for using for a hash table
+ that stores objects.
+ The hash code.
+ Use the GetHashCode method instead.
@@ -320,10 +327,41 @@
- To be added
- To be added: an object of type 'Drawing.Color'
- To be added: an object of type 'Gdk.Color'
- To be added
+ Color constructor from a System.Drawing.Color.
+ The object.
+ The constructed color structure from the
+ System.Drawing.Color definition.
+
+
+ This constructs the color from the specified
+ System.Drawing.Color object. Notice that the Gdk.Color
+ structure actually uses 16-bit color values, so the byte
+ values are mapped into the 16-bit value space. This is
+ just a convenience routine to initialize this structure.
+
+
+ To use the Gdk.Color you must allocate it within the
+ current colormap.
+
+
+
+ DrawRedLine (Gdk.Drawable drawable)
+ {
+ Gdk.GC gc = new Gdk.GC (drawable);
+
+ Gdk.Color red_color = new Gdk.Color (0xff, 0, 0);
+
+ // Use the system colormap, easy.
+ Gdk.Colormap colormap = Gdk.Colormap.System;
+
+ colormap.AllocColor (red_color, true, true);
+
+ // Now you can use it
+ drawable.DrawLine (gc, 0, 0, 100, 100);
+ }
+
+
+