wimage

package
v1.3.10 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(conn *xgb.Conn)

initialize early to avoid concurrent map read/write (XGB library issue)

func ShmClose

func ShmClose(shmid, addr uintptr) error

func ShmOpen

func ShmOpen(size int) (shmid, addr uintptr, err error)

Types

type Options

type Options struct {
	Conn       *xgb.Conn
	Window     xproto.Window
	ScreenInfo *xproto.ScreenInfo
	GCtx       xproto.Gcontext
}

type PixmapWImage

type PixmapWImage struct {
	// contains filtered or unexported fields
}

func NewPixmapWImage

func NewPixmapWImage(opt *Options) (*PixmapWImage, error)

func (*PixmapWImage) Close

func (wi *PixmapWImage) Close() error

func (*PixmapWImage) Image

func (wi *PixmapWImage) Image() draw.Image

func (*PixmapWImage) PutImage

func (wi *PixmapWImage) PutImage(r image.Rectangle) error

func (*PixmapWImage) PutImageCompleted

func (wi *PixmapWImage) PutImageCompleted()

func (*PixmapWImage) Resize

func (wi *PixmapWImage) Resize(r image.Rectangle) error

type ShmImgWrap

type ShmImgWrap struct {
	Img *imageutil.BGRA
	// contains filtered or unexported fields
}

func NewShmImgWrap

func NewShmImgWrap(r image.Rectangle) (*ShmImgWrap, error)

func (*ShmImgWrap) Close

func (imgWrap *ShmImgWrap) Close() error

type ShmWImage

type ShmWImage struct {
	// contains filtered or unexported fields
}

func NewShmWImage

func NewShmWImage(opt *Options) (*ShmWImage, error)

func (*ShmWImage) Close

func (wi *ShmWImage) Close() error

func (*ShmWImage) Image

func (wi *ShmWImage) Image() draw.Image

func (*ShmWImage) PutImage

func (wi *ShmWImage) PutImage(r image.Rectangle) error

func (*ShmWImage) PutImageCompleted

func (wi *ShmWImage) PutImageCompleted()

func (*ShmWImage) Resize

func (wi *ShmWImage) Resize(r image.Rectangle) error

type WImage

type WImage interface {
	Image() draw.Image
	PutImage(image.Rectangle) error
	PutImageCompleted()
	Resize(image.Rectangle) error
	Close() error
}

Window image for drawing.

func NewWImage

func NewWImage(opt *Options) (WImage, error)

Jump to

Keyboard shortcuts

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