2003-02-12 01:57:20 +00:00
<Type Name= "Colormap" FullName= "Gdk.Colormap" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "auto" Value= "public class Colormap : GLib.Object" />
2003-02-12 01:57:20 +00:00
<AssemblyInfo >
<AssemblyName > gdk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2005-12-09 23:12:49 +00:00
<AssemblyVersion > 2.8.0.0</AssemblyVersion>
2003-02-12 01:57:20 +00:00
</AssemblyInfo>
2003-02-23 07:26:30 +00:00
<ThreadSafetyStatement > Gtk# is thread aware, but not thread safe; See the <link location= "node:gtk-sharp/programming/threads" > Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
2003-02-12 01:57:20 +00:00
<Docs >
2004-06-29 04:45:04 +00:00
<summary > A structure that contains different colors.</summary>
<remarks > None.</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
<Base >
<BaseTypeName > GLib.Object</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
<Members >
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Colormap (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-12 01:57:20 +00:00
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Internal constructor</summary>
<param name= "raw" > Pointer to the C object.</param>
<remarks >
<para > This is an internal constructor, and should not be used by user code.</para>
</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Colormap (Gdk.Visual visual, bool allocate);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "visual" Type= "Gdk.Visual" />
<Parameter Name= "allocate" Type= "System.Boolean" />
</Parameters>
2003-02-12 01:57:20 +00:00
<Docs >
2004-06-29 04:45:04 +00:00
<summary > Creates a new colormap for the given visual.</summary>
<param name= "visual" > A <see cref= "T:Gdk.Visual" /> </param>
<param name= "allocate" > if true, the newly created colormap will be a private colormap, and all colors in it will be allocated for the applications use.</param>
<remarks > None.</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
<Member MemberName= "System" >
<MemberSignature Language= "C#" Value= "public static Gdk.Colormap System { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.Colormap</ReturnType>
</ReturnValue>
<Docs >
2004-06-29 04:45:04 +00:00
<summary > Gets the system's default colormap for the default screen.</summary>
2005-05-23 20:41:51 +00:00
<value > The system's default colormap for the default screen.</value>
2004-06-29 04:45:04 +00:00
<remarks > None.</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
<Member MemberName= "Visual" >
<MemberSignature Language= "C#" Value= "public Gdk.Visual Visual { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.Visual</ReturnType>
</ReturnValue>
<Docs >
2004-06-29 04:45:04 +00:00
<summary > Returns the visual for which a given colormap was created.</summary>
2005-05-23 20:41:51 +00:00
<value > The <see cref= "Gdk.Visual" /> of the colormap.</value>
2004-06-29 04:45:04 +00:00
<remarks > None.</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2003-03-07 01:30:00 +00:00
<Member MemberName= "AllocColor" >
2003-03-26 00:38:24 +00:00
<MemberSignature Language= "C#" Value= "public bool AllocColor (ref Gdk.Color color, bool writeable, bool best_match);" />
2003-03-07 01:30:00 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "color" Type= "Gdk.Color&" RefType= "ref" />
<Parameter Name= "writeable" Type= "System.Boolean" />
<Parameter Name= "best_match" Type= "System.Boolean" />
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
2004-06-29 04:45:04 +00:00
<summary > Allocates a single color from a colormap.</summary>
<param name= "color" > The color to allocate. On return the pixel field will be filled in if allocation succeeds.</param>
<param name= "writeable" > If true, the color is allocated writeable (their values can later be changed using <see cref= "M:Gdk.Color.Change" /> ). Writeable colors cannot be shared between applications.</param>
<param name= "best_match" > If true, GDK will attempt to do matching against existing colors if the color cannot be allocated as requested.</param>
<returns > True if the allocation succeeded.</returns>
<remarks > None.</remarks>
2003-03-07 01:30:00 +00:00
</Docs>
</Member>
2003-07-17 06:38:40 +00:00
<Member MemberName= "Screen" >
<MemberSignature Language= "C#" Value= "public Gdk.Screen Screen { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.Screen</ReturnType>
</ReturnValue>
<Docs >
2004-06-29 04:45:04 +00:00
<summary > Gets the screen for which this colormap was created.</summary>
2005-05-23 20:41:51 +00:00
<value > The screen for which this colormap was created.</value>
2004-06-29 04:45:04 +00:00
<remarks > None.</remarks>
2003-07-17 06:38:40 +00:00
</Docs>
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-21 20:14:42 +00:00
<summary > GType Property.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:GLib.GType" /> </value>
2004-06-21 20:14:42 +00:00
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gdk.Colormap" /> .</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "QueryColor" >
<MemberSignature Language= "C#" Value= "public void QueryColor (ulong pixel, ref Gdk.Color result);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "pixel" Type= "System.UInt64" />
<Parameter Name= "result" Type= "Gdk.Color&" RefType= "ref" />
</Parameters>
<Docs >
2004-06-29 04:45:04 +00:00
<summary > Locates the RGB color in the colormap corresponding to the given hardware pixel.</summary>
<param name= "pixel" > Pixel value in hardware display format.</param>
<param name= "result" >
<see cref= "T:Gdk.Color" /> with red, green, blue fields initialized.</param>
<remarks > Pixel must be a valid pixel in the colormap; it's a programmer error to call his function with a pixel which is not in the colormap. Hardware pixels are normally obtained from <see cref= "M:Gdk.Colormap.AllocColors" /> , or from a <see cref= "T:Gdk.Image" /> . (A <see cref= "T:Gdk.Image" /> contains image data in hardware format, a <see cref= "T:Gdk.Pixbuf" /> contains image data in a canonical 24-bit RGB format.)</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "FreeColors" >
<MemberSignature Language= "C#" Value= "public void FreeColors (Gdk.Color[] colors, int ncolors);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "colors" Type= "Gdk.Color[]" />
<Parameter Name= "ncolors" Type= "System.Int32" />
</Parameters>
<Docs >
2004-06-29 04:45:04 +00:00
<summary > Frees previously allocated colors.</summary>
<param name= "colors" > The colors to free.</param>
<param name= "ncolors" > The number of colors in colors.</param>
<remarks > None.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2003-10-28 00:48:23 +00:00
<Member MemberName= "AllocColors" >
2005-05-23 20:41:51 +00:00
<MemberSignature Language= "C#" Value= "public int AllocColors (Gdk.Color[] colors, int ncolors, bool writeable, bool best_match, bool[] success);" />
2003-10-28 00:48:23 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Parameters >
2003-12-24 01:35:30 +00:00
<Parameter Name= "colors" Type= "Gdk.Color[]" />
2003-10-28 00:48:23 +00:00
<Parameter Name= "ncolors" Type= "System.Int32" />
<Parameter Name= "writeable" Type= "System.Boolean" />
<Parameter Name= "best_match" Type= "System.Boolean" />
2003-12-24 01:35:30 +00:00
<Parameter Name= "success" Type= "System.Boolean[]" />
2003-10-28 00:48:23 +00:00
</Parameters>
<Docs >
2004-06-29 04:45:04 +00:00
<summary > Allocates colors from a colormap.</summary>
<param name= "colors" > The color values to allocate. On return, the pixel values for allocated colors will be filled in.</param>
<param name= "ncolors" > The number of colors in colors.</param>
<param name= "writeable" > If true, the colors are allocated writeable (their values can later be changed using <see cref= "M:Gdk.Color.Change" /> ). Writeable colors cannot be shared between applications.</param>
<param name= "best_match" > If true, GDK will attempt to do matching against existing colors if the colors cannot be allocated as requested.</param>
<param name= "success" > An array of length ncolors. On return, this indicates whether the corresponding color in colors was sucessfully allocated or not.</param>
<returns > The number of colors that were not successfully allocated.</returns>
<remarks > None.</remarks>
2003-10-28 00:48:23 +00:00
</Docs>
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected Colormap (GLib.GType gtype);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "gtype" Type= "GLib.GType" />
</Parameters>
<Docs >
<summary > Internal constructor</summary>
<param name= "gtype" > a <see cref= "T:GLib.GType" /> </param>
<remarks > This is a constructor used by derivative types of <see cref= "T:Gdk.Colormap" /> that would have their own GLib.GType assigned to it. This is not typically used by C# code.</remarks>
</Docs>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2004-11-05 19:03:16 +00:00
<Member MemberName= "SystemSize" >
<MemberSignature Language= "C#" Value= "public static int SystemSize { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > To be added</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:System.Int32" /> </value>
2004-11-05 19:03:16 +00:00
<remarks > To be added</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 19:03:16 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
</Member>
2004-11-05 19:03:16 +00:00
<Member MemberName= "Ref" >
<MemberSignature Language= "C#" Value= "public Gdk.Colormap Ref ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gdk.Colormap</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > To be added</summary>
<returns > a <see cref= "T:Gdk.Colormap" /> </returns>
<remarks > To be added</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 19:03:16 +00:00
</Docs>
</Member>
<Member MemberName= "Unref" >
<MemberSignature Language= "C#" Value= "public void Unref ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > To be added</summary>
<remarks > To be added</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 19:03:16 +00:00
</Docs>
</Member>
<Member MemberName= "Change" >
<MemberSignature Language= "C#" Value= "public void Change (int ncolors);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "ncolors" Type= "System.Int32" />
</Parameters>
<Docs >
<summary > To be added</summary>
<param name= "ncolors" > a <see cref= "T:System.Int32" /> </param>
<remarks > To be added</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-11-05 19:03:16 +00:00
</Docs>
</Member>
* generator/StructBase.cs: update field-generation logic a bit
* generator/CodeGenerator.cs: add a --glue-includes flag
* generator/GenerationInfo.cs: Accept glue_includes value from
Main and output it to the glue_filename.
* generator/FieldBase.cs (Ignored): handle more ignorable cases.
(CheckGlue): New method to figure out what kind of glue we'll need
for a field.
(GenerateImports): generate appropriate imports per CheckGlue.
(GenerateGlue): Generate C glue for accessing a struct field;
either a fully-C-based accessor, or a method to just return the
field's offset in the struct.
(Generate): Use the generated glue to read the field.
* generator/PropertyBase.cs (CType): if the field is a single bit,
set its type to gboolean.
* generator/ObjectGen.cs (Generate):
* generator/OpaqueGen.cs (Generate): Call GenFields.
* generator/StructField.cs: Use FieldBase's glue-generation code
to handle bitfields. [#54489]
* generator/ObjectField.cs: Generates accessors for public fields
of objects and opaque structs. [#69514]
* generator/ClassBase.cs (ClassBase): Parse <fields> nodes and
create ObjectField objects.
(GenFields): Output field properties
(IgnoreMethod): Ignore Get/Set methods that duplicate fields
* generator/Makefile.am (sources): update
* {gdk,gnome,gtk,pango}/*.metadata: Mark some additional fields as
public. Rename/retype some fields for consistency with earlier
hand-coded bindings.
* {gdk,gnome,gtk,pango}/*.custom: Remove custom methods that can
now be autogenerated.
* {gdk,gnome,gtk,pango}/glue/*.c: Remove glue methods that can now
be autogenerated
* {gdk,glade,gnome,gtk,pango,vte}/Makefile.am
* {gdk,glade,gnome,gtk,pango,vte}/glue/Makefile.am
* {gdk,gnome,gtk,pango}/glue/makefile.win32: Update
svn path=/trunk/gtk-sharp/; revision=44563
2005-05-16 14:28:55 +00:00
<Member MemberName= "Size" >
<MemberSignature Language= "C#" Value= "public int Size { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > The size of the <see cref= "T:Gdk.Colormap" /> </summary>
2005-05-23 20:41:51 +00:00
<value > The size of the <see cref= "T:Gdk.Colormap" /> </value>
<remarks >
</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
* generator/StructBase.cs: update field-generation logic a bit
* generator/CodeGenerator.cs: add a --glue-includes flag
* generator/GenerationInfo.cs: Accept glue_includes value from
Main and output it to the glue_filename.
* generator/FieldBase.cs (Ignored): handle more ignorable cases.
(CheckGlue): New method to figure out what kind of glue we'll need
for a field.
(GenerateImports): generate appropriate imports per CheckGlue.
(GenerateGlue): Generate C glue for accessing a struct field;
either a fully-C-based accessor, or a method to just return the
field's offset in the struct.
(Generate): Use the generated glue to read the field.
* generator/PropertyBase.cs (CType): if the field is a single bit,
set its type to gboolean.
* generator/ObjectGen.cs (Generate):
* generator/OpaqueGen.cs (Generate): Call GenFields.
* generator/StructField.cs: Use FieldBase's glue-generation code
to handle bitfields. [#54489]
* generator/ObjectField.cs: Generates accessors for public fields
of objects and opaque structs. [#69514]
* generator/ClassBase.cs (ClassBase): Parse <fields> nodes and
create ObjectField objects.
(GenFields): Output field properties
(IgnoreMethod): Ignore Get/Set methods that duplicate fields
* generator/Makefile.am (sources): update
* {gdk,gnome,gtk,pango}/*.metadata: Mark some additional fields as
public. Rename/retype some fields for consistency with earlier
hand-coded bindings.
* {gdk,gnome,gtk,pango}/*.custom: Remove custom methods that can
now be autogenerated.
* {gdk,gnome,gtk,pango}/glue/*.c: Remove glue methods that can now
be autogenerated
* {gdk,glade,gnome,gtk,pango,vte}/Makefile.am
* {gdk,glade,gnome,gtk,pango,vte}/glue/Makefile.am
* {gdk,gnome,gtk,pango}/glue/makefile.win32: Update
svn path=/trunk/gtk-sharp/; revision=44563
2005-05-16 14:28:55 +00:00
</Docs>
</Member>
2003-02-12 01:57:20 +00:00
</Members>
2005-06-17 18:43:30 +00:00
</Type>