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

  1.  
  2.  
  3.  
  4. XDeviceBell(3X11)       X FUNCTIONS        XDeviceBell(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XDeviceBell  -  ring  a bell on a device supported through
  9.        the input extension
  10.  
  11. SSYYNNTTAAXX
  12.        Status    XDeviceBell(_d_i_s_p_l_a_y,    _d_e_v_i_c_e,       _f_e_e_d_b_a_c_k_c_l_a_s_s,
  13.        _f_e_e_d_b_a_c_k_i_d, _p_e_r_c_e_n_t)
  14.          Display *_d_i_s_p_l_a_y;
  15.          XDevice *_d_e_v_i_c_e;
  16.          XID *_f_e_e_d_b_a_c_k_c_l_a_s_s;
  17.          XID *_f_e_e_d_b_a_c_k_i_d;
  18.          int *_p_e_r_c_e_n_t;
  19.  
  20. AARRGGUUMMEENNTTSS
  21.        _d_i_s_p_l_a_y       Specifies the connection to the X server.
  22.  
  23.        _d_e_v_i_c_e       Specifies  the  device  with which the bell is
  24.            associated.
  25.  
  26.        _f_e_e_d_b_a_c_k_c_l_a_s_s
  27.            Specifies the class of the feedback with which
  28.            the bell is associated.
  29.  
  30.        _f_e_e_d_b_a_c_k_i_d  Specifies  the  id  of the feedback with which
  31.            the bell is associated.
  32.  
  33.        _p_e_r_c_e_n_t       Specifies the volume in the range -100 to  100
  34.            at which the bell should be rung.
  35.  
  36. DDEESSCCRRIIPPTTIIOONN
  37.        The  _X_D_e_v_i_c_e_B_e_l_l     request causes the server to ring a bell
  38.        on the specified feedback of the specified device, if pos-
  39.        sible.    The specified volume is relative to the base vol-
  40.        ume for the bell.  If an invalid device    is  specified,    a
  41.        _B_a_d_D_e_v_i_c_e  error     will be returned.  The feedbackclass and
  42.        feedbackid parameters contain values returned by an  _X_G_e_t_-
  43.        _F_e_e_d_b_a_c_k_C_o_n_t_r_o_l    request and uniquely identify the bell to
  44.        ring.  If a feedbackclass is specified that does not  sup-
  45.        port  a bell, or if a nonexistent feedbackid is specified,
  46.        or a percent value is specified that is not in  the  range
  47.        -100 to 100, a _B_a_d_V_a_l_u_e error will be returned.
  48.  
  49.        The  volume  at    which  the  bell is rung when the percent
  50.        argument is nonnegative is:
  51.  
  52.           base - [(base * percent) / 100] + percent
  53.  
  54.        The volume at which the bell rings when the percent  argu-
  55.        ment is negative is:
  56.  
  57.           base + [(base * percent) / 100]
  58.  
  59.        To  change  the    base volume of the bell, use _X_C_h_a_n_g_e_F_e_e_d_-
  60.        _b_a_c_k_C_o_n_t_r_o_l.
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XDeviceBell(3X11)       X FUNCTIONS        XDeviceBell(3X11)
  71.  
  72.  
  73.        _X_D_e_v_i_c_e_B_e_l_l can generate a _B_a_d_D_e_v_i_c_e or a _B_a_d_V_a_l_u_e  error.
  74.  
  75. DDIIAAGGNNOOSSTTIICCSS
  76.        _B_a_d_D_e_v_i_c_e   An  invalid    device was specified.  The speci-
  77.            fied device does not exist, or  has    not  been
  78.            opened by this client via _X_O_p_e_n_I_n_p_u_t_D_e_v_i_c_e.
  79.  
  80.        _B_a_d_V_a_l_u_e       An  invalid feedbackclass, feedbackid, or per-
  81.            cent value was specified.
  82.  
  83. SSEEEE AALLSSOO
  84.        XChangeFeedbackControl(3X), XBell(3X)
  85.        _P_r_o_g_r_a_m_m_i_n_g _W_i_t_h _X_l_i_b
  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.