dpms

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: BSD-3-Clause, GooglePatentClause Imports: 5 Imported by: 0

Documentation

Overview

FILE GENERATED AUTOMATICALLY FROM "dpms.xml"

Index

Constants

View Source
const (
	// ExtName is the user-friendly name string of this X extension.
	ExtName = "DPMS"

	// ExtXName is the name string this extension is known by to the X server.
	ExtXName = "DPMS"
)
View Source
const (
	DPMSModeOn      = 0
	DPMSModeStandby = 1
	DPMSModeSuspend = 2
	DPMSModeOff     = 3
)

Variables

This section is empty.

Functions

func CapableUnchecked

func CapableUnchecked(c *xgb.XConn) error

CapableUnchecked sends an unchecked request.

func Disable

func Disable(c *xgb.XConn) error

Disable sends a checked request.

func DisableUnchecked added in v1.1.0

func DisableUnchecked(c *xgb.XConn) error

DisableUnchecked sends an unchecked request.

func Enable

func Enable(c *xgb.XConn) error

Enable sends a checked request.

func EnableUnchecked added in v1.1.0

func EnableUnchecked(c *xgb.XConn) error

EnableUnchecked sends an unchecked request.

func ForceLevel

func ForceLevel(c *xgb.XConn, PowerLevel uint16) error

ForceLevel sends a checked request.

func ForceLevelUnchecked added in v1.1.0

func ForceLevelUnchecked(c *xgb.XConn, PowerLevel uint16) error

ForceLevelUnchecked sends an unchecked request.

func GetTimeoutsUnchecked

func GetTimeoutsUnchecked(c *xgb.XConn) error

GetTimeoutsUnchecked sends an unchecked request.

func GetVersionUnchecked

func GetVersionUnchecked(c *xgb.XConn, ClientMajorVersion uint16, ClientMinorVersion uint16) error

GetVersionUnchecked sends an unchecked request.

func InfoUnchecked

func InfoUnchecked(c *xgb.XConn) error

InfoUnchecked sends an unchecked request.

func Register added in v1.1.0

func Register(xconn *xgb.XConn) error

Register will query the X server for DPMS extension support, and register relevant extension unmarshalers with the XConn.

func SetTimeouts

func SetTimeouts(c *xgb.XConn, StandbyTimeout uint16, SuspendTimeout uint16, OffTimeout uint16) error

SetTimeouts sends a checked request.

func SetTimeoutsUnchecked added in v1.1.0

func SetTimeoutsUnchecked(c *xgb.XConn, StandbyTimeout uint16, SuspendTimeout uint16, OffTimeout uint16) error

SetTimeoutsUnchecked sends an unchecked request.

Types

type CapableReply

type CapableReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Capable bool
}

CapableReply represents the data returned from a Capable request.

func Capable

func Capable(c *xgb.XConn) (CapableReply, error)

Capable sends a checked request.

func (*CapableReply) Unmarshal added in v1.1.0

func (v *CapableReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a CapableReply value.

type GetTimeoutsReply

type GetTimeoutsReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	StandbyTimeout uint16
	SuspendTimeout uint16
	OffTimeout     uint16
}

GetTimeoutsReply represents the data returned from a GetTimeouts request.

func GetTimeouts

func GetTimeouts(c *xgb.XConn) (GetTimeoutsReply, error)

GetTimeouts sends a checked request.

func (*GetTimeoutsReply) Unmarshal added in v1.1.0

func (v *GetTimeoutsReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetTimeoutsReply value.

type GetVersionReply

type GetVersionReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	ServerMajorVersion uint16
	ServerMinorVersion uint16
}

GetVersionReply represents the data returned from a GetVersion request.

func GetVersion

func GetVersion(c *xgb.XConn, ClientMajorVersion uint16, ClientMinorVersion uint16) (GetVersionReply, error)

GetVersion sends a checked request.

func (*GetVersionReply) Unmarshal added in v1.1.0

func (v *GetVersionReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a GetVersionReply value.

type InfoReply

type InfoReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	PowerLevel uint16
	State      bool
}

InfoReply represents the data returned from a Info request.

func Info

func Info(c *xgb.XConn) (InfoReply, error)

Info sends a checked request.

func (*InfoReply) Unmarshal added in v1.1.0

func (v *InfoReply) Unmarshal(buf []byte) error

Unmarshal reads a byte slice into a InfoReply value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL