Gjsify LogoGjsify Logo

Hierarchy

  • Color

Index

Constructors

Properties

blue: number
green: number
pixel: number
red: number
name: string

Methods

  • Makes a copy of a color structure. The result must be freed using gdk_color_free().

    Returns Gdk.Color

  • free(): void
  • Frees a color structure created with gdk_color_copy().

    Returns void

  • hash(): number
  • A hash function suitable for using for a hash table that stores #GdkColor's.

    Returns number

  • toString(): string
  • Returns a textual specification of color in the hexadecimal form #rrrrggggbbbb, where r, g and b are hex digits representing the red, green and blue components respectively.

    Returns string

  • Allocates a single color from a colormap.

    Parameters

    • colormap: Gdk.Colormap

      a #GdkColormap.

    • color: Gdk.Color

      The color to allocate. On return, the pixel field will be filled in.

    Returns number

  • Returns the black color for a given colormap. The resulting value has already been allocated.

    Parameters

    Returns number

  • Changes the value of a color that has already been allocated. If colormap is not a private colormap, then the color must have been allocated using gdk_colormap_alloc_colors() with the writeable set to %TRUE.

    Parameters

    • colormap: Gdk.Colormap

      a #GdkColormap.

    • color: Gdk.Color

      a #GdkColor, with the color to change in the pixel field, and the new value in the remaining fields.

    Returns number

  • parse(spec: string): [boolean, Gdk.Color]
  • Parses a textual specification of a color and fill in the red, green, and blue fields of a #GdkColor structure. The color is not allocated, you must call gdk_colormap_alloc_color() yourself. The string can either one of a large set of standard names. (Taken from the X11 rgb.txt file), or it can be a hex value in the form '#rgb' '#rrggbb' '#rrrgggbbb' or '#rrrrggggbbbb' where 'r', 'g' and 'b' are hex digits of the red, green, and blue components of the color, respectively. (White in the four forms is '#fff' '#ffffff' '#fffffffff' and '#ffffffffffff')

    Parameters

    • spec: string

      the string specifying the color.

    Returns [boolean, Gdk.Color]

  • Returns the white color for a given colormap. The resulting value has already allocated been allocated.

    Parameters

    Returns number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method