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

  1.  
  2.  
  3.  
  4. XSaveContext(3X11)      XLIB FUNCTIONS       XSaveContext(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XSaveContext, XFindContext, XDeleteContext, XUniqueContext
  9.        - associative look-up routines
  10.  
  11. SSYYNNTTAAXX
  12.        int XSaveContext(_d_i_s_p_l_a_y, _r_i_d, _c_o_n_t_e_x_t, _d_a_t_a)
  13.          Display *_d_i_s_p_l_a_y;
  14.          XID _r_i_d;
  15.          XContext _c_o_n_t_e_x_t;
  16.          XPointer _d_a_t_a;
  17.  
  18.        int XFindContext(_d_i_s_p_l_a_y, _r_i_d, _c_o_n_t_e_x_t, _d_a_t_a___r_e_t_u_r_n)
  19.          Display *_d_i_s_p_l_a_y;
  20.          XID _r_i_d;
  21.          XContext _c_o_n_t_e_x_t;
  22.          XPointer *_d_a_t_a___r_e_t_u_r_n;
  23.  
  24.        int XDeleteContext(_d_i_s_p_l_a_y, _r_i_d, _c_o_n_t_e_x_t)
  25.          Display *_d_i_s_p_l_a_y;
  26.          XID _r_i_d;
  27.          XContext _c_o_n_t_e_x_t;
  28.  
  29.        XContext XUniqueContext()
  30.  
  31. AARRGGUUMMEENNTTSS
  32.        _c_o_n_t_e_x_t     Specifies the context type to which the data
  33.          belongs.
  34.  
  35.        _d_a_t_a     Specifies the data to be associated with the
  36.          window and type.
  37.  
  38.        _d_a_t_a___r_e_t_u_r_n
  39.          Returns the data.
  40.  
  41.        _d_i_s_p_l_a_y     Specifies the connection to the X server.
  42.  
  43.        _r_i_d     Specifies the resource ID with which the data is
  44.          associated.
  45.  
  46. DDEESSCCRRIIPPTTIIOONN
  47.        If an entry with the specified resource ID and type
  48.        already exists, _X_S_a_v_e_C_o_n_t_e_x_t overrides it with the speci-
  49.        fied context.  The _X_S_a_v_e_C_o_n_t_e_x_t function returns a nonzero
  50.        error code if an error has occurred and zero otherwise.
  51.        Possible errors are _X_C_N_O_M_E_M (out of memory).
  52.  
  53.        Because it is a return value, the data is a pointer.  The
  54.        _X_F_i_n_d_C_o_n_t_e_x_t function returns a nonzero error code if an
  55.        error has occurred and zero otherwise.  Possible errors
  56.        are _X_C_N_O_E_N_T (context-not-found).
  57.  
  58.        The _X_D_e_l_e_t_e_C_o_n_t_e_x_t function deletes the entry for the
  59.        given resource ID and type from the data structure.  This
  60.        function returns the same error codes that _X_F_i_n_d_C_o_n_t_e_x_t
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XSaveContext(3X11)      XLIB FUNCTIONS       XSaveContext(3X11)
  71.  
  72.  
  73.        returns if called with the same arguments.  _X_D_e_l_e_t_e_C_o_n_t_e_x_t
  74.        does not free the data whose address was saved.
  75.  
  76.        The _X_U_n_i_q_u_e_C_o_n_t_e_x_t function creates a unique context type
  77.        that may be used in subsequent calls to _X_S_a_v_e_C_o_n_t_e_x_t.
  78.  
  79. SSEEEE AALLSSOO
  80.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  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.