gdk-Colormaps-and-Colors        package:RGtk2        R Documentation

_C_o_l_o_r_m_a_p_s _a_n_d _C_o_l_o_r_s

_D_e_s_c_r_i_p_t_i_o_n:

     Manipulation of colors and colormaps

_M_e_t_h_o_d_s _a_n_d _F_u_n_c_t_i_o_n_s:

     'gdkColormapNew(visual, allocate)'
      'gdkColormapGetSystem()'
      'gdkColormapGetSystemSize()'
      'gdkColormapAllocColors(colormap, colors, writeable, best.match)'
      'gdkColormapAllocColor(object, color, writeable, best.match)'
      'gdkColormapFreeColors(object, colors)'
      'gdkColormapQueryColor(object, pixel)'
      'gdkColormapGetVisual(object)'
      'gdkColormapGetScreen(object)'
      'gdkColorsStore(object, colors)'
      'gdkColorWhite(object)'
      'gdkColorBlack(object)'
      'gdkColorParse(spec)'
      'gdkColorAlloc(object, color)'
      'gdkColorChange(object, color)'
      'gdkColorToString(object)'
      'gdkColormap(visual, allocate)'

_D_e_t_a_i_l_e_d _D_e_s_c_r_i_p_t_i_o_n:

     These functions are used to modify colormaps. A colormap is an
     object that contains the mapping between the color values stored
     in memory and the RGB values that are used to display color
     values. In general, colormaps only contain significant information
     for pseudo-color visuals, but even for other visual types, a
     colormap object is required in some circumstances.

     There are a couple of special colormaps that can be retrieved. The
     system colormap (retrieved  with 'gdkColormapGetSystem') is the
     default colormap of the system. If you are using GdkRGB, there is
     another colormap that is important - the colormap in which GdkRGB
     works, retrieved with 'gdkRgbGetColormap'. However, when using
     GdkRGB,  it is not generally necessary to allocate colors
     directly.

     In previous revisions of this interface, a number of functions
     that take a 'GdkColormap' parameter were replaced with functions
     whose names began with "gdk_colormap_". This process will probably
     be extended somewhat in the future -  'gdkColorWhite',
     'gdkColorBlack', and  'gdkColorChange' will probably become
     aliases.

_S_t_r_u_c_t_u_r_e_s:


     '_G_d_k_C_o_l_o_r' The 'GdkColor' structure is used to describe an 
          allocated or unallocated color. *'GdkColor' is a
          transparent-type.*

          '_p_i_x_e_l' [numeric] For allocated colors, the value used to
               draw this color on the screen.

          '_r_e_d' [integer] The red component of the color. This is a
               value between 0 and 65535, with 65535 indicating full
               intensitiy.

          '_g_r_e_e_n' [integer] The blue component of the color.

          '_b_l_u_e' [integer] The green component of the color.


     '_G_d_k_C_o_l_o_r_m_a_p' The colormap structure contains the following public
          fields.

          '_s_i_z_e' [integer] For pseudo-color colormaps, the number of
               colors in the colormap.

          '_c_o_l_o_r_s' ['GdkColor'] An list containing the current values
               in the colormap. This can be used to map from pixel
               values back to RGB values. This is only meaningful for
               pseudo-color colormaps.


_C_o_n_v_e_n_i_e_n_t _C_o_n_s_t_r_u_c_t_i_o_n:

     'gdkColormap' is the equivalent of 'gdkColormapNew'.

_A_u_t_h_o_r(_s):

     Derived by RGtkGen from GTK+ documentation

_R_e_f_e_r_e_n_c_e_s:

     <URL:
     http://developer.gnome.org/doc/API/2.0/gdk/gdk-Colormaps-and-Colors.html>

