man-pages/man3/DPMSInfo.3.html
2021-03-31 01:06:50 +01:00

100 lines
2.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of DPMSInfo</TITLE>
</HEAD><BODY>
<H1>DPMSInfo</H1>
Section: X FUNCTIONS (3)<BR>Updated: libXext 1.3.4<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
DPMSInfo - returns information about the current DPMS state
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<P>
<PRE>
<B>cc</B> [ <I>flag</I> ... ] <I>file</I> ... -<B>lXext</B> [ <I>library</I> ... ]
#include &lt;<A HREF="file:///usr/include/X11/extensions/dpms.h">X11/extensions/dpms.h</A>&gt;
<DL COMPACT>
<DT id="1"><B>Status DPMSInfo</B>
(
<DD> Display <I>*display</I>,
<DD> CARD16 <I>*power_level</I>,
<DD> BOOL <I>*state</I>
);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DL>
</PRE><A NAME="lbAD">&nbsp;</A>
<H2>ARGUMENTS</H2>
<DL COMPACT>
<DT id="2"><I>display</I>
<DD>
<DD>Specifies the connection to the X server
<DT id="3"><I>power_level</I>
<DD>
Specifies the current power level
<DT id="4"><I>state</I>
<DD>
Specifies the current DPMS state
</DL>
<A NAME="lbAE">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
The
<I>DPMSInfo</I>
function returns information about the current Display Power Management
Signaling (DPMS) state. The <I>state</I>
return parameter indicates whether or not DPMS is enabled (TRUE) or
disabled (FALSE). The <I>power_level</I> return parameter indicates the
current power level (one of DPMSModeOn, DPMSModeStandby, DPMSModeSuspend, or
DPMSModeOff.)
<A NAME="lbAF">&nbsp;</A>
<H2>RETURN VALUES</H2>
<DL COMPACT>
<DT id="5">TRUE<DD>
The
<I>DPMSInfo</I>
function returns TRUE, if values are returned.
<DT id="6">FALSE<DD>
The
<I>DPMSInfo</I>
function returns FALSE, if no values are returned.
</DL>
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?3+DPMSEnable">DPMSEnable</A></B>(3)
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="7"><A HREF="#lbAB">NAME</A><DD>
<DT id="8"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="9"><A HREF="#lbAD">ARGUMENTS</A><DD>
<DT id="10"><A HREF="#lbAE">DESCRIPTION</A><DD>
<DT id="11"><A HREF="#lbAF">RETURN VALUES</A><DD>
<DT id="12"><A HREF="#lbAG">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:39 GMT, March 31, 2021
</BODY>
</HTML>