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

  1.  
  2.  
  3.  
  4. XRecolorCursor(3X11)      XLIB FUNCTIONS     XRecolorCursor(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XRecolorCursor, XFreeCursor, XQueryBestCursor - manipulate
  9.        cursors
  10.  
  11. SSYYNNTTAAXX
  12.        XRecolorCursor(_d_i_s_p_l_a_y, _c_u_r_s_o_r, _f_o_r_e_g_r_o_u_n_d___c_o_l_o_r,
  13.        _b_a_c_k_g_r_o_u_n_d___c_o_l_o_r)
  14.          Display *_d_i_s_p_l_a_y;
  15.          Cursor _c_u_r_s_o_r;
  16.          XColor *_f_o_r_e_g_r_o_u_n_d___c_o_l_o_r, *_b_a_c_k_g_r_o_u_n_d___c_o_l_o_r;
  17.  
  18.        XFreeCursor(_d_i_s_p_l_a_y, _c_u_r_s_o_r)
  19.          Display *_d_i_s_p_l_a_y;
  20.          Cursor _c_u_r_s_o_r;
  21.  
  22.        Status XQueryBestCursor(_d_i_s_p_l_a_y, _d, _w_i_d_t_h, _h_e_i_g_h_t,
  23.        _w_i_d_t_h___r_e_t_u_r_n, _h_e_i_g_h_t___r_e_t_u_r_n)
  24.          Display *_d_i_s_p_l_a_y;
  25.          Drawable _d;
  26.          unsigned int _w_i_d_t_h, _h_e_i_g_h_t;
  27.          unsigned int *_w_i_d_t_h___r_e_t_u_r_n, *_h_e_i_g_h_t___r_e_t_u_r_n;
  28.  
  29. AARRGGUUMMEENNTTSS
  30.        _b_a_c_k_g_r_o_u_n_d___c_o_l_o_r
  31.          Specifies the RGB values for the background of
  32.          the source.
  33.  
  34.        _c_u_r_s_o_r     Specifies the cursor.
  35.  
  36.        _d     Specifies the drawable, which indicates the
  37.          screen.
  38.  
  39.        _d_i_s_p_l_a_y     Specifies the connection to the X server.
  40.  
  41.        _f_o_r_e_g_r_o_u_n_d___c_o_l_o_r
  42.          Specifies the RGB values for the foreground of
  43.          the source.
  44.  
  45.        _w_i_d_t_h
  46.        _h_e_i_g_h_t     Specify the width and heightof the cursor that
  47.          you want the size information for.
  48.  
  49.        _w_i_d_t_h___r_e_t_u_r_n
  50.        _h_e_i_g_h_t___r_e_t_u_r_n
  51.          Return the best width and height that is closest
  52.          to the specified width and height.
  53.  
  54. DDEESSCCRRIIPPTTIIOONN
  55.        The _X_R_e_c_o_l_o_r_C_u_r_s_o_r function changes the color of the spec-
  56.        ified cursor, and if the cursor is being displayed on a
  57.        screen, the change is visible immediately.  The pixel mem-
  58.        bers of the _X_C_o_l_o_r structures are ignored; only the RGB
  59.        values are used.
  60.  
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XRecolorCursor(3X11)      XLIB FUNCTIONS     XRecolorCursor(3X11)
  71.  
  72.  
  73.        _X_R_e_c_o_l_o_r_C_u_r_s_o_r can generate a _B_a_d_C_u_r_s_o_r error.
  74.  
  75.        The _X_F_r_e_e_C_u_r_s_o_r function deletes the association between
  76.        the cursor resource ID and the specified cursor.     The cur-
  77.        sor storage is freed when no other resource references it.
  78.        The specified cursor ID should not be referred to again.
  79.  
  80.        _X_F_r_e_e_C_u_r_s_o_r can generate a _B_a_d_C_u_r_s_o_r error.
  81.  
  82.        Some displays allow larger cursors than other displays.
  83.        The _X_Q_u_e_r_y_B_e_s_t_C_u_r_s_o_r function provides a way to find out
  84.        what size cursors are actually possible on the display.
  85.        It returns the largest size that can be displayed.  Appli-
  86.        cations should be prepared to use smaller cursors on dis-
  87.        plays that cannot support large ones.
  88.  
  89.        _X_Q_u_e_r_y_B_e_s_t_C_u_r_s_o_r can generate a _B_a_d_D_r_a_w_a_b_l_e error.
  90.  
  91. DDIIAAGGNNOOSSTTIICCSS
  92.        _B_a_d_C_u_r_s_o_r A value for a Cursor argument does not name a
  93.          defined Cursor.
  94.  
  95.        _B_a_d_D_r_a_w_a_b_l_e
  96.          A value for a Drawable argument does not name a
  97.          defined Window or Pixmap.
  98.  
  99. SSEEEE AALLSSOO
  100.        XCreateColormap(3X11), XCreateFontCursor(3X11), XDefineCu-
  101.        sor(3X11)
  102.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.