xinerama

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: 2

Documentation

Overview

FILE GENERATED AUTOMATICALLY FROM "xinerama.xml"

Index

Constants

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

	// ExtXName is the name string this extension is known by to the X server.
	ExtXName = "XINERAMA"
)

Variables

This section is empty.

Functions

func GetScreenCountUnchecked

func GetScreenCountUnchecked(c *xgb.XConn, Window xproto.Window) error

GetScreenCountUnchecked sends an unchecked request.

func GetScreenSizeUnchecked

func GetScreenSizeUnchecked(c *xgb.XConn, Window xproto.Window, Screen uint32) error

GetScreenSizeUnchecked sends an unchecked request.

func GetStateUnchecked

func GetStateUnchecked(c *xgb.XConn, Window xproto.Window) error

GetStateUnchecked sends an unchecked request.

func IsActiveUnchecked

func IsActiveUnchecked(c *xgb.XConn) error

IsActiveUnchecked sends an unchecked request.

func QueryScreensUnchecked

func QueryScreensUnchecked(c *xgb.XConn) error

QueryScreensUnchecked sends an unchecked request.

func QueryVersionUnchecked

func QueryVersionUnchecked(c *xgb.XConn, Major byte, Minor 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 Xinerama extension support, and register relevant extension unmarshalers with the XConn.

func ScreenInfoListBytes

func ScreenInfoListBytes(buf []byte, list []ScreenInfo) int

ScreenInfoListBytes writes a list of ScreenInfo values to a byte slice.

func ScreenInfoRead

func ScreenInfoRead(buf []byte, v *ScreenInfo) int

ScreenInfoRead reads a byte slice into a ScreenInfo value.

func ScreenInfoReadList

func ScreenInfoReadList(buf []byte, dest []ScreenInfo) int

ScreenInfoReadList reads a byte slice into a list of ScreenInfo values.

Types

type GetScreenCountReply

type GetScreenCountReply struct {
	Sequence    uint16 // sequence number of the request for this reply
	Length      uint32 // number of bytes in this reply
	ScreenCount byte
	Window      xproto.Window
}

GetScreenCountReply represents the data returned from a GetScreenCount request.

func GetScreenCount

func GetScreenCount(c *xgb.XConn, Window xproto.Window) (GetScreenCountReply, error)

GetScreenCount sends a checked request.

func (*GetScreenCountReply) Unmarshal added in v1.1.0

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

Unmarshal reads a byte slice into a GetScreenCountReply value.

type GetScreenSizeReply

type GetScreenSizeReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Width  uint32
	Height uint32
	Window xproto.Window
	Screen uint32
}

GetScreenSizeReply represents the data returned from a GetScreenSize request.

func GetScreenSize

func GetScreenSize(c *xgb.XConn, Window xproto.Window, Screen uint32) (GetScreenSizeReply, error)

GetScreenSize sends a checked request.

func (*GetScreenSizeReply) Unmarshal added in v1.1.0

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

Unmarshal reads a byte slice into a GetScreenSizeReply value.

type GetStateReply

type GetStateReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	State    byte
	Window   xproto.Window
}

GetStateReply represents the data returned from a GetState request.

func GetState

func GetState(c *xgb.XConn, Window xproto.Window) (GetStateReply, error)

GetState sends a checked request.

func (*GetStateReply) Unmarshal added in v1.1.0

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

Unmarshal reads a byte slice into a GetStateReply value.

type IsActiveReply

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

IsActiveReply represents the data returned from a IsActive request.

func IsActive

func IsActive(c *xgb.XConn) (IsActiveReply, error)

IsActive sends a checked request.

func (*IsActiveReply) Unmarshal added in v1.1.0

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

Unmarshal reads a byte slice into a IsActiveReply value.

type QueryScreensReply

type QueryScreensReply struct {
	Sequence uint16 // sequence number of the request for this reply
	Length   uint32 // number of bytes in this reply
	// padding: 1 bytes
	Number uint32
	// padding: 20 bytes
	ScreenInfo []ScreenInfo // size: internal.Pad4((int(Number) * 8))
}

QueryScreensReply represents the data returned from a QueryScreens request.

func QueryScreens

func QueryScreens(c *xgb.XConn) (QueryScreensReply, error)

QueryScreens sends a checked request.

func (*QueryScreensReply) Unmarshal added in v1.1.0

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

Unmarshal reads a byte slice into a QueryScreensReply 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
	Major uint16
	Minor uint16
}

QueryVersionReply represents the data returned from a QueryVersion request.

func QueryVersion

func QueryVersion(c *xgb.XConn, Major byte, Minor 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.

type ScreenInfo

type ScreenInfo struct {
	XOrg   int16
	YOrg   int16
	Width  uint16
	Height uint16
}

func (ScreenInfo) Bytes

func (v ScreenInfo) Bytes() []byte

Bytes writes a ScreenInfo value to a byte slice.

Jump to

Keyboard shortcuts

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