XtGetGC(3Xt) AIX (XT FUNCTIONS) XtGetGC(3Xt) NAME XtGetGC, XtReleaseGC - obtain and destroy a sharable GC SYNTAX GC XtGetGC(_w, _v_a_l_u_e__m_a_s_k, _v_a_l_u_e_s) Widget _w; XtGCMask _v_a_l_u_e__m_a_s_k; XGCValues *_v_a_l_u_e_s; void XtReleaseGC(_w, _g_c) Widget _w; GC _g_c; ARGUMENTS _g_c Specifies the GC to be deallocated. _v_a_l_u_e_s Specifies the actual values for this GC. _v_a_l_u_e__m_a_s_k Specifies which fields of the values are speci- fied. _w Specifies the widget. DESCRIPTION The _X_t_G_e_t_G_C function returns a sharable, read-only GC. The parameters to this function are the same as those for _X_C_r_e_a_t_e_G_C except that a widget is passed instead of a display. _X_t_G_e_t_G_C shares only GCs in which all values in the GC returned by _X_C_r_e_a_t_e_G_C are the same. In particular, it does not use the value_mask provided to determine which fields of the GC a widget considers relevant. The value_mask is used only to tell the server which fields should be filled in with widget data and which it should fill in with default values. For further information about value_mask and values, see _X_C_r_e_a_t_e_G_C in the _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e. The _X_t_R_e_l_e_a_s_e_G_C function deallocate the specified shared GC. SEE ALSO _X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s - _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e Rev. Release 3 Page 1