home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat3 / xsetfunction.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  4.0 KB  |  133 lines

  1.  
  2.  
  3.  
  4. XSetState(3X11)          XLIB FUNCTIONS      XSetState(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XSetState, XSetFunction, XSetPlanemask, XSetForeground,
  9.        XSetBackground - GC convenience routines
  10.  
  11. SSYYNNTTAAXX
  12.        XSetState(_d_i_s_p_l_a_y, _g_c, _f_o_r_e_g_r_o_u_n_d, _b_a_c_k_g_r_o_u_n_d, _f_u_n_c_t_i_o_n,
  13.        _p_l_a_n_e___m_a_s_k)
  14.          Display *_d_i_s_p_l_a_y;
  15.          GC _g_c;
  16.          unsigned long _f_o_r_e_g_r_o_u_n_d, _b_a_c_k_g_r_o_u_n_d;
  17.          int _f_u_n_c_t_i_o_n;
  18.          unsigned long _p_l_a_n_e___m_a_s_k;
  19.  
  20.        XSetFunction(_d_i_s_p_l_a_y, _g_c, _f_u_n_c_t_i_o_n)
  21.          Display *_d_i_s_p_l_a_y;
  22.          GC _g_c;
  23.          int _f_u_n_c_t_i_o_n;
  24.  
  25.        XSetPlaneMask(_d_i_s_p_l_a_y, _g_c, _p_l_a_n_e___m_a_s_k)
  26.          Display *_d_i_s_p_l_a_y;
  27.          GC _g_c;
  28.          unsigned long _p_l_a_n_e___m_a_s_k;
  29.  
  30.        XSetForeground(_d_i_s_p_l_a_y, _g_c, _f_o_r_e_g_r_o_u_n_d)
  31.          Display *_d_i_s_p_l_a_y;
  32.          GC _g_c;
  33.          unsigned long _f_o_r_e_g_r_o_u_n_d;
  34.  
  35.        XSetBackground(_d_i_s_p_l_a_y, _g_c, _b_a_c_k_g_r_o_u_n_d)
  36.          Display *_d_i_s_p_l_a_y;
  37.          GC _g_c;
  38.          unsigned long _b_a_c_k_g_r_o_u_n_d;
  39.  
  40. AARRGGUUMMEENNTTSS
  41.        _b_a_c_k_g_r_o_u_n_d
  42.          Specifies the background you want to set for the
  43.          specified GC.
  44.  
  45.        _d_i_s_p_l_a_y     Specifies the connection to the X server.
  46.  
  47.        _f_o_r_e_g_r_o_u_n_d
  48.          Specifies the foreground you want to set for the
  49.          specified GC.
  50.  
  51.        _f_u_n_c_t_i_o_n     Specifies the function you want to set for the
  52.          specified GC.
  53.  
  54.        _g_c     Specifies the GC.
  55.  
  56.        _p_l_a_n_e___m_a_s_k
  57.          Specifies the plane mask.
  58.  
  59. DDEESSCCRRIIPPTTIIOONN
  60.        The _X_S_e_t_S_t_a_t_e function sets the foreground, background,
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XSetState(3X11)          XLIB FUNCTIONS      XSetState(3X11)
  71.  
  72.  
  73.        plane mask, and function components for the specified GC.
  74.  
  75.        _X_S_e_t_S_t_a_t_e can generate _B_a_d_A_l_l_o_c, _B_a_d_G_C, and _B_a_d_V_a_l_u_e
  76.        errors.
  77.  
  78.        _X_S_e_t_F_u_n_c_t_i_o_n sets a specified value in the specified GC.
  79.  
  80.        _X_S_e_t_F_u_n_c_t_i_o_n can generate _B_a_d_A_l_l_o_c, _B_a_d_G_C, and _B_a_d_V_a_l_u_e
  81.        errors.
  82.  
  83.        The _X_S_e_t_P_l_a_n_e_M_a_s_k function sets the plane mask in the
  84.        specified GC.
  85.  
  86.        _X_S_e_t_P_l_a_n_e_M_a_s_k can generate _B_a_d_A_l_l_o_c and _B_a_d_G_C errors.
  87.  
  88.        The _X_S_e_t_F_o_r_e_g_r_o_u_n_d function sets the foreground in the
  89.        specified GC.
  90.  
  91.        _X_S_e_t_F_o_r_e_g_r_o_u_n_d can generate _B_a_d_A_l_l_o_c and _B_a_d_G_C errors.
  92.  
  93.        The _X_S_e_t_B_a_c_k_g_r_o_u_n_d function sets the background in the
  94.        specified GC.
  95.  
  96.        _X_S_e_t_B_a_c_k_g_r_o_u_n_d can generate _B_a_d_A_l_l_o_c and _B_a_d_G_C errors.
  97.  
  98. DDIIAAGGNNOOSSTTIICCSS
  99.        _B_a_d_A_l_l_o_c     The server failed to allocate the requested
  100.          resource or server memory.
  101.  
  102.        _B_a_d_G_C     A value for a GContext argument does not name a
  103.          defined GContext.
  104.  
  105.        _B_a_d_V_a_l_u_e     Some numeric value falls outside the range of
  106.          values accepted by the request.  Unless a spe-
  107.          cific range is specified for an argument, the
  108.          full range defined by the argument's type is
  109.          accepted.  Any argument defined as a set of
  110.          alternatives can generate this error.
  111.  
  112. SSEEEE AALLSSOO
  113.        XCreateGC(3X11), XQueryBestSize(3X11), XSetArcMode(3X11),
  114.        XSetClipOrigin(3X11), XSetFillStyle(3X11), XSetFont(3X11),
  115.        XSetLineAttributes(3X11), XSetTile(3X11)
  116.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.