2010-05-18 13:28:54 -06:00
|
|
|
'\" t
|
|
|
|
.\" Title: xdevicebell
|
|
|
|
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
2010-09-04 04:16:57 -06:00
|
|
|
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
|
|
|
.\" Date: 08/04/2010
|
2010-05-18 13:28:54 -06:00
|
|
|
.\" Manual: [FIXME: manual]
|
|
|
|
.\" Source: [FIXME: source]
|
|
|
|
.\" Language: English
|
2006-11-25 10:22:40 -07:00
|
|
|
.\"
|
2010-09-04 04:16:57 -06:00
|
|
|
.TH "XDEVICEBELL" "libmansuffix" "08/04/2010" "[FIXME: source]" "[FIXME: manual]"
|
2010-05-18 13:28:54 -06:00
|
|
|
.\" -----------------------------------------------------------------
|
|
|
|
.\" * set default formatting
|
|
|
|
.\" -----------------------------------------------------------------
|
|
|
|
.\" disable hyphenation
|
|
|
|
.nh
|
|
|
|
.\" disable justification (adjust text to left margin only)
|
|
|
|
.ad l
|
|
|
|
.\" -----------------------------------------------------------------
|
|
|
|
.\" * MAIN CONTENT STARTS HERE *
|
|
|
|
.\" -----------------------------------------------------------------
|
|
|
|
.SH "NAME"
|
2006-11-25 10:22:40 -07:00
|
|
|
XDeviceBell \- ring a bell on a device supported through the input extension
|
2010-05-18 13:28:54 -06:00
|
|
|
.SH "SYNOPSIS"
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
#include <X11/extensions/XInput\&.h>
|
|
|
|
.fi
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
Status XDeviceBell( Display *display,
|
|
|
|
XDevice *device,
|
|
|
|
XID feedbackclass,
|
|
|
|
XID feedbackid,
|
|
|
|
int percent);
|
|
|
|
display
|
|
|
|
Specifies the connection to the X server\&.
|
|
|
|
.fi
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
device
|
|
|
|
Specifies the device with which the bell is associated\&.
|
|
|
|
.fi
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
feedbackclass
|
|
|
|
Specifies the class of the feedback with which the bell
|
|
|
|
is associated\&.
|
|
|
|
.fi
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
feedbackid
|
|
|
|
Specifies the id of the feedback with which the bell is
|
|
|
|
associated\&.
|
|
|
|
.fi
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
percent
|
|
|
|
Specifies the volume in the range \-100 to 100 at which
|
|
|
|
the bell should be rung\&.
|
|
|
|
.fi
|
|
|
|
.SH "DESCRIPTION"
|
|
|
|
.sp
|
|
|
|
.if n \{\
|
|
|
|
.RS 4
|
|
|
|
.\}
|
|
|
|
.nf
|
|
|
|
The XDeviceBell request causes the server to ring a bell on the
|
|
|
|
specified feedback of the specified device, if possible\&. The
|
|
|
|
specified volume is relative to the base volume for the bell\&.
|
|
|
|
If an invalid device is specified, a BadDevice error will be
|
|
|
|
returned\&. The feedbackclass and feedbackid parameters contain
|
|
|
|
values returned by an XGetFeedbackControl request and uniquely
|
|
|
|
identify the bell to ring\&. If a feedbackclass is specified that
|
|
|
|
does not support a bell, or if a nonexistent feedbackid is
|
|
|
|
specified, or a percent value is specified that is not in the
|
|
|
|
range \-100 to 100, a BadValue error will be returned\&.
|
|
|
|
.fi
|
|
|
|
.if n \{\
|
|
|
|
.RE
|
|
|
|
.\}
|
|
|
|
.sp
|
|
|
|
.if n \{\
|
|
|
|
.RS 4
|
|
|
|
.\}
|
|
|
|
.nf
|
|
|
|
The volume at which the bell is rung when the percent argument
|
|
|
|
is nonnegative is: base \- [(base * percent) / 100] + percent
|
|
|
|
.fi
|
|
|
|
.if n \{\
|
|
|
|
.RE
|
|
|
|
.\}
|
|
|
|
.sp
|
|
|
|
.if n \{\
|
|
|
|
.RS 4
|
|
|
|
.\}
|
|
|
|
.nf
|
|
|
|
The volume at which the bell rings when the percent argument is
|
|
|
|
negative is: base + [(base * percent) / 100]
|
|
|
|
.fi
|
|
|
|
.if n \{\
|
|
|
|
.RE
|
|
|
|
.\}
|
|
|
|
.sp
|
|
|
|
.if n \{\
|
|
|
|
.RS 4
|
|
|
|
.\}
|
|
|
|
.nf
|
|
|
|
To change the base volume of the bell, use
|
|
|
|
XChangeFeedbackControl\&.
|
|
|
|
.fi
|
|
|
|
.if n \{\
|
|
|
|
.RE
|
|
|
|
.\}
|
|
|
|
.sp
|
|
|
|
.if n \{\
|
|
|
|
.RS 4
|
|
|
|
.\}
|
|
|
|
.nf
|
|
|
|
XDeviceBell can generate a BadDevice or a BadValue error\&.
|
|
|
|
.fi
|
|
|
|
.if n \{\
|
|
|
|
.RE
|
|
|
|
.\}
|
|
|
|
.SH "DIAGNOSTICS"
|
|
|
|
.sp
|
|
|
|
.if n \{\
|
|
|
|
.RS 4
|
|
|
|
.\}
|
|
|
|
.nf
|
|
|
|
BadDevice
|
|
|
|
An invalid device was specified\&. The specified device
|
|
|
|
does not exist, or has not been opened by this client
|
|
|
|
via XOpenInputDevice\&.
|
|
|
|
.fi
|
|
|
|
.if n \{\
|
|
|
|
.RE
|
|
|
|
.\}
|
|
|
|
.sp
|
|
|
|
.if n \{\
|
|
|
|
.RS 4
|
|
|
|
.\}
|
|
|
|
.nf
|
|
|
|
BadValue
|
|
|
|
An invalid feedbackclass, feedbackid, or percent value
|
|
|
|
was specified\&.
|
|
|
|
.fi
|
|
|
|
.if n \{\
|
|
|
|
.RE
|
|
|
|
.\}
|
2006-11-25 10:22:40 -07:00
|
|
|
.SH "SEE ALSO"
|
2010-05-18 13:28:54 -06:00
|
|
|
.sp
|
|
|
|
.if n \{\
|
|
|
|
.RS 4
|
|
|
|
.\}
|
|
|
|
.nf
|
|
|
|
XChangeFeedbackControl(libmansuffix), XBell(libmansuffix)
|
|
|
|
.fi
|
|
|
|
.if n \{\
|
|
|
|
.RE
|
|
|
|
.\}
|