screensaver

package
v0.0.0-...-17244d7 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindBlanked  = 0
	KindInternal = 1
	KindExternal = 2
)

enum Kind

View Source
const (
	EventNotifyMask = 1
	EventCycleMask  = 2
)

enum Event

View Source
const (
	StateOff      = 0
	StateOn       = 1
	StateCycle    = 2
	StateDisabled = 3
)

enum State

View Source
const MajorVersion = 1

_ns.ext_name: ScreenSaver

View Source
const MinorVersion = 1
View Source
const NotifyEventCode = 0
View Source
const QueryInfoOpcode = 1
View Source
const QueryVersionOpcode = 0
View Source
const SelectInputOpcode = 2
View Source
const SetAttributesOpcode = 3
View Source
const SuspendOpcode = 5
View Source
const UnsetAttributesOpcode = 4

Variables

This section is empty.

Functions

func Ext

func Ext() *x.Extension

func SelectInput

func SelectInput(conn *x.Conn, drawable x.Drawable, eventMask uint32)

func SelectInputChecked

func SelectInputChecked(conn *x.Conn, drawable x.Drawable, eventMask uint32) x.VoidCookie

func SetAttributes

func SetAttributes(conn *x.Conn, drawable x.Drawable, X, y int16, width, height, boardWidth uint16, class, depth uint8, visual x.VisualID, valueMask uint32, valueList []uint32)

func SetAttributesChecked

func SetAttributesChecked(conn *x.Conn, drawable x.Drawable, X, y int16, width, height, boardWidth uint16, class, depth uint8, visual x.VisualID, valueMask uint32, valueList []uint32) x.VoidCookie

func Suspend

func Suspend(conn *x.Conn, suspend bool)

func SuspendChecked

func SuspendChecked(conn *x.Conn, suspend bool) x.VoidCookie

func UnsetAttributes

func UnsetAttributes(conn *x.Conn, drawable x.Drawable)

func UnsetAttributesChecked

func UnsetAttributesChecked(conn *x.Conn, drawable x.Drawable) x.VoidCookie

Types

type NotifyEvent

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

func NewNotifyEvent

func NewNotifyEvent(data []byte) (*NotifyEvent, error)

type QueryInfoCookie

type QueryInfoCookie x.SeqNum

func QueryInfo

func QueryInfo(conn *x.Conn, drawable x.Drawable) QueryInfoCookie

func (QueryInfoCookie) Reply

func (cookie QueryInfoCookie) Reply(conn *x.Conn) (*QueryInfoReply, error)

type QueryInfoReply

type QueryInfoReply struct {
	State            uint8
	SaverWindow      x.Window
	MsUntilServer    uint32
	MsSinceUserInput uint32
	EventMask        uint32
	Kind             uint8
}

type QueryVersionCookie

type QueryVersionCookie x.SeqNum

func QueryVersion

func QueryVersion(conn *x.Conn, clientMajorVersion, clientMinorVersion uint8) QueryVersionCookie

func (QueryVersionCookie) Reply

func (cookie QueryVersionCookie) Reply(conn *x.Conn) (*QueryVersionReply, error)

type QueryVersionReply

type QueryVersionReply struct {
	ServerMajorVersion uint16
	ServerMinorVersion uint16
}

Jump to

Keyboard shortcuts

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