gdkRgbFindColor            package:RGtk2            R Documentation

_g_d_k_R_g_b_F_i_n_d_C_o_l_o_r

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

     'colormap' should be the colormap for the graphics context and
     drawable you're using to draw. If you're drawing to a 'GtkWidget',
     call 'gtkWidgetGetColormap'.

_U_s_a_g_e:

     gdkRgbFindColor(colormap, color)

_A_r_g_u_m_e_n_t_s:

'colormap': ['GdkColormap']  a 'GdkColormap'

 'color': ['GdkColor']  a 'GdkColor'

_D_e_t_a_i_l_s:

     'color' should have its 'red', 'green', and 'blue' fields
     initialized; 'gdkRgbFindColor' will fill in the 'pixel' field with
     the best matching pixel from a color cube. The color is then ready
     to be used for drawing, e.g. you can call 'gdkGCSetForeground'
     which expects 'pixel' to be initialized.

     In many cases, you can avoid this whole issue by calling
     'gdkGCSetRgbFgColor' or 'gdkGCSetRgbBgColor', which do not expect
     'pixel' to be initialized in advance. If you use those functions,
     there's no need for 'gdkRgbFindColor'.

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

     Derived by RGtkGen from GTK+ documentation

