Documentation ¶
Overview ¶
FILE GENERATED AUTOMATICALLY FROM "dpms.xml"
Index ¶
- Constants
- func CapableUnchecked(c *xgb.XConn) error
- func Disable(c *xgb.XConn) error
- func DisableUnchecked(c *xgb.XConn) error
- func Enable(c *xgb.XConn) error
- func EnableUnchecked(c *xgb.XConn) error
- func ForceLevel(c *xgb.XConn, PowerLevel uint16) error
- func ForceLevelUnchecked(c *xgb.XConn, PowerLevel uint16) error
- func GetTimeoutsUnchecked(c *xgb.XConn) error
- func GetVersionUnchecked(c *xgb.XConn, ClientMajorVersion uint16, ClientMinorVersion uint16) error
- func InfoUnchecked(c *xgb.XConn) error
- func Register(xconn *xgb.XConn) error
- func SetTimeouts(c *xgb.XConn, StandbyTimeout uint16, SuspendTimeout uint16, OffTimeout uint16) error
- func SetTimeoutsUnchecked(c *xgb.XConn, StandbyTimeout uint16, SuspendTimeout uint16, OffTimeout uint16) error
- type CapableReply
- type GetTimeoutsReply
- type GetVersionReply
- type InfoReply
Constants ¶
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" )
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 DisableUnchecked ¶ added in v1.1.0
func DisableUnchecked(c *xgb.XConn) error
DisableUnchecked sends an unchecked request.
func EnableUnchecked ¶ added in v1.1.0
func EnableUnchecked(c *xgb.XConn) error
EnableUnchecked sends an unchecked request.
func ForceLevel ¶
ForceLevel sends a checked request.
func ForceLevelUnchecked ¶ added in v1.1.0
ForceLevelUnchecked sends an unchecked request.
func GetTimeoutsUnchecked ¶
func GetTimeoutsUnchecked(c *xgb.XConn) error
GetTimeoutsUnchecked sends an unchecked request.
func GetVersionUnchecked ¶
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.
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 (*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.