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

📄 xsetscreensaver.html

📁 linux图形界面x liberary手册
💻 HTML
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: XSetScreenSaver</TITLE></HEAD><BODY><H1 ALIGN=center>XSetScreenSaver</H1><H2>Syntax</H2><!.IN "XSetScreenSaver" "" "@DEF@"><CODE><PRE>XSetScreenSaver(<B>display</B>, <B>timeout</B>, <B>interval</B>, <B>prefer_blanking</B>, <B>allow_exposures</B>)      <A HREF="../display/opening.html#Display">Display</A> *<B>display</B>;      int <B>timeout</B>, <B>interval</B>;      int <B>prefer_blanking</B>;       int <B>allow_exposures</B>;</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>display</B><TD> Specifies the connection to the X server.<TR><TD> <B>timeout</B><TD> Specifies the timeout, in seconds, until the screen saver turns on.<TR><TD> <B>interval</B><TD> Specifies the interval, in seconds, between screen saver alterations.<TR><TD> <B>prefer_blanking</B><TD> Specifies how to enable screen blanking.You can pass<B>DontPreferBlanking</B>,<B>PreferBlanking</B>,or<B>DefaultBlanking</B>.<TR><TD> <B>allow_exposures</B><TD> Specifies the screen save control values.You can pass<B>DontAllowExposures</B>,<B>AllowExposures</B>,or<B>DefaultExposures</B>.</TABLE><H2>Description</H2>Timeout and interval are specified in seconds. A timeout of 0 disables the screen saver (but an activated screen saver is not deactivated),and a timeout of \-1 restores the default.Other negative values generate a<B>BadValue</B>error.If the timeout value is nonzero, <B>XSetScreenSaver()</B>enables the screen saver.An interval of 0 disables the random-pattern motion.If no input from devices (keyboard, mouse, and so on) is generated for the specified number of timeout seconds once the screen saver is enabled,the screen saver is activated.<P>For each screen, if blanking is preferred and the hardware supports video blanking, the screen simply goes blank.  Otherwise, if either exposures are allowed or the screen can be regenerated without sending <B><A HREF="../events/exposure/expose.html">Expose</A></B> events to clients, the screen is tiled with the root window background tile randomly re-origined each interval seconds.Otherwise, the screens' state do not change, and the screen saver is not activated.The screen saver is deactivated,and all screen states are restored at the nextkeyboard or pointer input or at the next call to<B><A HREF="XForceScreenSaver.html">XForceScreenSaver()</A></B>with mode<B>ScreenSaverReset</B>.  <P>If the server-dependent screen saver method supports periodic change,the interval argument serves as a hint about how long the change periodshould be, and zero hints that no periodic change should be made.Examples of ways to change the screen include scrambling the colormapperiodically, moving an icon image around the screen periodically, or tilingthe screen with the root window background tile, randomly re-originedperiodically.<P><B>XSetScreenSaver()</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="XForceScreenSaver.html">XForceScreenSaver()</A></B>,<B><A HREF="XActivateScreenSaver.html">XActivateScreenSaver()</A></B>,<B><A HREF="XResetScreenSaver.html">XResetScreenSaver()</A></B>,<B><A HREF="XGetScreenSaver.html">XGetScreenSaver()</A></B>,"<A HREF="screen-saver.html">Screen Saver Control</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 + -