Documentation ¶
Index ¶
- Constants
- func Disable(conn *x.Conn)
- func DisableChecked(conn *x.Conn) x.VoidCookie
- func Enable(conn *x.Conn)
- func EnableChecked(conn *x.Conn) x.VoidCookie
- func Ext() *x.Extension
- func ForceLevel(conn *x.Conn, powerLevel uint16)
- func ForceLevelChecked(conn *x.Conn, powerLevel uint16) x.VoidCookie
- func SetTimeouts(conn *x.Conn, standbyTimeout, suspendTimeout, offTimeout uint16)
- func SetTimeoutsChecked(conn *x.Conn, standbyTimeout, suspendTimeout, offTimeout uint16) x.VoidCookie
- type CapableCookie
- type CapableReply
- type GetTimeoutsCookie
- type GetTimeoutsReply
- type GetVersionCookie
- type GetVersionReply
- type InfoCookie
- type InfoReply
Constants ¶
View Source
const ( DPMSModeOn = 0 DPMSModeStandby = 1 DPMSModeSuspend = 2 DPMSModeOff = 3 )
enum DPMSMode
View Source
const CapableOpcode = 1
View Source
const DisableOpcode = 5
View Source
const EnableOpcode = 4
View Source
const ForceLevelOpcode = 6
View Source
const GetTimeoutsOpcode = 2
View Source
const GetVersionOpcode = 0
View Source
const InfoOpcode = 7
View Source
const MajorVersion = 0
_ns.ext_name: DPMS
View Source
const MinorVersion = 0
View Source
const SetTimeoutsOpcode = 3
Variables ¶
This section is empty.
Functions ¶
func DisableChecked ¶
func DisableChecked(conn *x.Conn) x.VoidCookie
func EnableChecked ¶
func EnableChecked(conn *x.Conn) x.VoidCookie
func ForceLevel ¶
func ForceLevelChecked ¶
func ForceLevelChecked(conn *x.Conn, powerLevel uint16) x.VoidCookie
func SetTimeouts ¶
func SetTimeoutsChecked ¶
func SetTimeoutsChecked(conn *x.Conn, standbyTimeout, suspendTimeout, offTimeout uint16) x.VoidCookie
Types ¶
type CapableCookie ¶
func Capable ¶
func Capable(conn *x.Conn) CapableCookie
func (CapableCookie) Reply ¶
func (cookie CapableCookie) Reply(conn *x.Conn) (*CapableReply, error)
type CapableReply ¶
type CapableReply struct {
Capable bool
}
type GetTimeoutsCookie ¶
func GetTimeouts ¶
func GetTimeouts(conn *x.Conn) GetTimeoutsCookie
func (GetTimeoutsCookie) Reply ¶
func (cookie GetTimeoutsCookie) Reply(conn *x.Conn) (*GetTimeoutsReply, error)
type GetTimeoutsReply ¶
type GetVersionCookie ¶
func GetVersion ¶
func GetVersion(conn *x.Conn, clientMajorVersion, clientMinorVersion uint16) GetVersionCookie
func (GetVersionCookie) Reply ¶
func (cookie GetVersionCookie) Reply(conn *x.Conn) (*GetVersionReply, error)
type GetVersionReply ¶
type InfoCookie ¶
func Info ¶
func Info(conn *x.Conn) InfoCookie
Click to show internal directories.
Click to hide internal directories.