3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
6 .\" Manual: [FIXME: manual]
7 .\" Source: [FIXME: source]
10 .TH "XDEVICEBELL" "libmansuffix" "09/23/2011" "[FIXME: source]" "[FIXME: manual]"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 XDeviceBell \- ring a bell on a device supported through the input extension
35 #include <X11/extensions/XInput\&.h>
39 Status XDeviceBell( Display *display,
45 Specifies the connection to the X server\&.
50 Specifies the device with which the bell is associated\&.
55 Specifies the class of the feedback with which the bell
61 Specifies the id of the feedback with which the bell is
67 Specifies the volume in the range \-100 to 100 at which
68 the bell should be rung\&.
76 The XDeviceBell request causes the server to ring a bell on the
77 specified feedback of the specified device, if possible\&. The
78 specified volume is relative to the base volume for the bell\&.
79 If an invalid device is specified, a BadDevice error will be
80 returned\&. The feedbackclass and feedbackid parameters contain
81 values returned by an XGetFeedbackControl request and uniquely
82 identify the bell to ring\&. If a feedbackclass is specified that
83 does not support a bell, or if a nonexistent feedbackid is
84 specified, or a percent value is specified that is not in the
85 range \-100 to 100, a BadValue error will be returned\&.
95 The volume at which the bell is rung when the percent argument
96 is nonnegative is: base \- [(base * percent) / 100] + percent
106 The volume at which the bell rings when the percent argument is
107 negative is: base + [(base * percent) / 100]
117 To change the base volume of the bell, use
118 XChangeFeedbackControl\&.
128 XDeviceBell can generate a BadDevice or a BadValue error\&.
140 An invalid device was specified\&. The specified device
141 does not exist, or has not been opened by this client
142 via XOpenInputDevice\&.
153 An invalid feedbackclass, feedbackid, or percent value
165 XChangeFeedbackControl(libmansuffix), XBell(libmansuffix)