⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xchangepointercontrol.html

📁 linux图形界面x liberary手册
💻 HTML
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: XChangePointerControl</TITLE></HEAD><BODY><H1 ALIGN=center>XChangePointerControl</H1><H2>Syntax</H2><!.IN "XChangePointerControl" "" "@DEF@"><CODE><PRE>XChangePointerControl(<B>display</B>, <B>do_accel</B>, <B>do_threshold</B>, <B>accel_numerator</B>,                         <B>accel_denominator</B>, <B>threshold</B>)      <A HREF="../display/opening.html#Display">Display</A> *<B>display</B>;      Bool <B>do_accel</B>, <B>do_threshold</B>;      int <B>accel_numerator</B>, <B>accel_denominator</B>;      int <B>threshold</B>;</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>display</B><TD> Specifies the connection to the X server.<TR><TD> <B>do_accel</B><TD> Specifies a Boolean value that controls whether the values for the accel_numerator or accel_denominator are used.<TR><TD> <B>do_threshold</B><TD> Specifies a Boolean value that controls whether the value for the threshold is used.<TR><TD> <B>accel_numerator</B><TD> Specifies the numerator for the acceleration multiplier.<TR><TD> <B>accel_denominator</B><TD> Specifies the denominator for the acceleration multiplier.<TR><TD> <B>threshold</B><TD> Specifies the acceleration threshold.</TABLE><H2>Description</H2>The<B>XChangePointerControl()</B>function defines how the pointing device moves.The acceleration, expressed as a fraction, is amultiplier for movement. For example,specifying 3/1 means the pointer moves three times as fast as normal.The fraction may be rounded arbitrarily by the X server.  Accelerationonly takes effect if the pointer moves more than threshold pixels atonce and only applies to the amount beyond the value in the threshold argument.Setting a value to \-1 restores the default.The values of the do_accel and do_threshold arguments must be <B>True</B> for the pointer values to be set,or the parameters are unchanged.Negative values (other than \-1) generate a<B>BadValue</B>error, as does a zero valuefor the accel_denominator argument.<P><B>XChangePointerControl()</B>can generate a<B>BadValue</B> error.<H2>Diagnostics</H2><TABLE><TR><TD><B>BadValue</B><TD> Some numeric value falls outside the range of values accepted by the request.     Unless a specific range is specified for an argument, the full range defined     by the argument's type is accepted.  Any argument defined as a set of     alternatives can generate this error.</TABLE><H2>See also</H2><B><A HREF="XGetPointerControl.html">XGetPointerControl()</A></B>,"<A HREF="keyboard-and-pointer-settings.html">Keyboard and Pointer Settings</A>".<HR><ADDRESS><A HREF="http://tronche.com/">Christophe Tronche</A>, <A HREF="mailto:ch.tronche@computer.org">ch.tronche@computer.org</A></ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -