screensaver

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: 6 Imported by: 0

Documentation

Overview

FILE GENERATED AUTOMATICALLY FROM "screensaver.xml"

Index

Constants

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

	// ExtXName is the name string this extension is known by to the X server.
	ExtXName = "MIT-SCREEN-SAVER"
)
View Source
const (
	EventNotifyMask = 1
	EventCycleMask  = 2
)
View Source
const (
	KindBlanked  = 0
	KindInternal = 1
	KindExternal = 2
)
View Source
const (
	StateOff      = 0
	StateOn       = 1
	StateCycle    = 2
	StateDisabled = 3
)
View Source
const Notify = 0

Notify is the event number for a NotifyEvent.

Variables

This section is empty.

Functions

func QueryInfoUnchecked

func QueryInfoUnchecked(c *xgb.XConn, Drawable xproto.Drawable) error

QueryInfoUnchecked sends an unchecked request.

func QueryVersionUnchecked

func QueryVersionUnchecked(c *xgb.XConn, ClientMajorVersion byte, ClientMinorVersion byte) error

QueryVersionUnchecked sends an unchecked request.

func Register added in v1.1.0

func Register(xconn *xgb.XConn) error

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

func SelectInput

func SelectInput(c *xgb.XConn, Drawable xproto.Drawable, EventMask uint32) error

SelectInput sends a checked request.

func SelectInputUnchecked added in v1.1.0

func SelectInputUnchecked(c *xgb.XConn, Drawable xproto.Drawable, EventMask uint32) error

SelectInputUnchecked sends an unchecked request.

func SetAttributes

func SetAttributes(c *xgb.XConn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, BorderWidth uint16, Class byte, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) error

SetAttributes sends a checked request.

func SetAttributesUnchecked added in v1.1.0

func SetAttributesUnchecked(c *xgb.XConn, Drawable xproto.Drawable, X int16, Y int16, Width uint16, Height uint16, BorderWidth uint16, Class byte, Depth byte, Visual xproto.Visualid, ValueMask uint32, ValueList []uint32) error

SetAttributesUnchecked sends an unchecked request.

func Suspend

func Suspend(c *xgb.XConn, Suspend uint32) error

Suspend sends a checked request.

func SuspendUnchecked added in v1.1.0

func SuspendUnchecked(c *xgb.XConn, Suspend uint32) error

SuspendUnchecked sends an unchecked request.

func UnmarshalNotifyEvent added in v1.1.0

func UnmarshalNotifyEvent(buf []byte) (xgb.XEvent, error)

UnmarshalNotifyEvent constructs a NotifyEvent value that implements xgb.Event from a byte slice.

func UnsetAttributes

func UnsetAttributes(c *xgb.XConn, Drawable xproto.Drawable) error

UnsetAttributes sends a checked request.

func UnsetAttributesUnchecked added in v1.1.0

func UnsetAttributesUnchecked(c *xgb.XConn, Drawable xproto.Drawable) error

UnsetAttributesUnchecked sends an unchecked request.

Types

type NotifyEvent

type NotifyEvent struct {
	Sequence uint16
	State    byte
	Time     xproto.Timestamp
	Root     xproto.Window
	Window   xproto.Window
	Kind     byte
	Forced   bool
}

func (*NotifyEvent) Bytes

func (v *NotifyEvent) Bytes() []byte

Bytes writes a NotifyEvent value to a byte slice.

func (*NotifyEvent) SeqID added in v1.1.0

func (v *NotifyEvent) SeqID() uint16

SeqID returns the sequence id attached to the Notify event. Events without a sequence number (KeymapNotify) return 0. This is mostly used internally.

type QueryInfoReply

type QueryInfoReply struct {
	Sequence         uint16 // sequence number of the request for this reply
	Length           uint32 // number of bytes in this reply
	State            byte
	SaverWindow      xproto.Window
	MsUntilServer    uint32
	MsSinceUserInput uint32
	EventMask        uint32
	Kind             byte
}

QueryInfoReply represents the data returned from a QueryInfo request.

func QueryInfo

func QueryInfo(c *xgb.XConn, Drawable xproto.Drawable) (QueryInfoReply, error)

QueryInfo sends a checked request.

func (*QueryInfoReply) Unmarshal added in v1.1.0

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

Unmarshal reads a byte slice into a QueryInfoReply value.

type QueryVersionReply

type QueryVersionReply 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
}

QueryVersionReply represents the data returned from a QueryVersion request.

func QueryVersion

func QueryVersion(c *xgb.XConn, ClientMajorVersion byte, ClientMinorVersion byte) (QueryVersionReply, error)

QueryVersion sends a checked request.

func (*QueryVersionReply) Unmarshal added in v1.1.0

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

Unmarshal reads a byte slice into a QueryVersionReply value.

Jump to

Keyboard shortcuts

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