shm

package
v0.0.0-...-7ad2634 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AttachFdOpcode = 6
View Source
const AttachOpcode = 1
View Source
const BadSegErrorCode = 0
View Source
const CompletionEventCode = 0
View Source
const CreatePixmapOpcode = 5
View Source
const CreateSegmentOpcode = 7
View Source
const DetachOpcode = 2
View Source
const GetImageOpcode = 4
View Source
const MajorVersion = 1

_ns.ext_name: Shm

View Source
const MinorVersion = 2
View Source
const PutImageOpcode = 3
View Source
const QueryVersionOpcode = 0

Variables

This section is empty.

Functions

func Attach

func Attach(conn *x.Conn, shmSeg Seg, shmId uint32, readOnly bool)

func AttachChecked

func AttachChecked(conn *x.Conn, shmSeg Seg, shmId uint32, readOnly bool) x.VoidCookie

func CreatePixmap

func CreatePixmap(conn *x.Conn, pid x.Pixmap, drawable x.Drawable, width, height uint16, depth uint8, shmSeg Seg, offset uint32)

func CreatePixmapChecked

func CreatePixmapChecked(conn *x.Conn, pid x.Pixmap, drawable x.Drawable, width, height uint16, depth uint8, shmSeg Seg, offset uint32) x.VoidCookie

func Detach

func Detach(conn *x.Conn, shmSeg Seg)

func DetachChecked

func DetachChecked(conn *x.Conn, shmSeg Seg) x.VoidCookie

func Ext

func Ext() *x.Extension

func PutImage

func PutImage(conn *x.Conn, drawable x.Drawable, gc x.GContext, totalWidth, totalHeight, srcX, srcY, srcWidth, srcHeight uint16, dstX, dstY int16, depth, format uint8, sendEvent bool, shmSeg Seg, offset uint32)

func PutImageChecked

func PutImageChecked(conn *x.Conn, drawable x.Drawable, gc x.GContext, totalWidth, totalHeight, srcX, srcY, srcWidth, srcHeight uint16, dstX, dstY int16, depth, format uint8, sendEvent bool, shmSeg Seg, offset uint32) x.VoidCookie

Types

type CompletionEvent

type CompletionEvent struct {
	Sequence uint16
}

func NewCompletionEvent

func NewCompletionEvent(data []byte) (*CompletionEvent, error)

type CreateSegmentCookie

type CreateSegmentCookie x.SeqNum

type GetImageCookie

type GetImageCookie x.SeqNum

func GetImage

func GetImage(conn *x.Conn, drawable x.Drawable, X, y int16, width, height uint16, planeMask uint32, format uint8, shmSeg Seg, offset uint32) GetImageCookie

func (GetImageCookie) Reply

func (cookie GetImageCookie) Reply(conn *x.Conn) (*GetImageReply, error)

type GetImageReply

type GetImageReply struct {
	Depth  uint8
	Visual x.VisualID
	Size   uint32
}

type QueryVersionCookie

type QueryVersionCookie x.SeqNum

func QueryVersion

func QueryVersion(conn *x.Conn) QueryVersionCookie

func (QueryVersionCookie) Reply

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

type QueryVersionReply

type QueryVersionReply struct {
	SharedPixmaps bool
	MajorVersion  uint16
	MinorVersion  uint16
	Uid           uint16
	Gid           uint16
	PixmapFormat  uint8
}

type Seg

type Seg uint32

simple ('xcb', 'Shm', 'SEG')

Jump to

Keyboard shortcuts

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