buffer

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageBuffer

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

func NewImageBuffer

func NewImageBuffer() *ImageBuffer

func NewImageBufferByHandle

func NewImageBufferByHandle(handle uintptr) *ImageBuffer

func (*ImageBuffer) Clear

func (i *ImageBuffer) Clear() bool

func (*ImageBuffer) Destroy

func (i *ImageBuffer) Destroy()

func (*ImageBuffer) Get added in v1.1.0

func (i *ImageBuffer) Get() image.Image

Get retrieves the image from raw data stored in the buffer.

func (*ImageBuffer) Handle

func (i *ImageBuffer) Handle() uintptr

func (*ImageBuffer) IsEmpty

func (i *ImageBuffer) IsEmpty() bool

func (*ImageBuffer) Set added in v1.1.0

func (i *ImageBuffer) Set(img image.Image) bool

Set converts an image.Image to raw data and sets it in the buffer.

type ImageListBuffer

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

func NewImageListBuffer

func NewImageListBuffer() *ImageListBuffer

func NewImageListBufferByHandle

func NewImageListBufferByHandle(handle uintptr) *ImageListBuffer

func (*ImageListBuffer) Append

func (il *ImageListBuffer) Append(value *ImageBuffer) bool

func (*ImageListBuffer) Clear

func (il *ImageListBuffer) Clear() bool

func (*ImageListBuffer) Destroy

func (il *ImageListBuffer) Destroy()

func (*ImageListBuffer) Get

func (il *ImageListBuffer) Get(index uint64) image.Image

func (*ImageListBuffer) GetAll

func (il *ImageListBuffer) GetAll() []image.Image

func (*ImageListBuffer) Handle

func (il *ImageListBuffer) Handle() uintptr

func (*ImageListBuffer) IsEmpty

func (il *ImageListBuffer) IsEmpty() bool

func (*ImageListBuffer) Remove

func (il *ImageListBuffer) Remove(index uint64) bool

func (*ImageListBuffer) Size

func (il *ImageListBuffer) Size() uint64

type Rect added in v1.0.1

type Rect struct {
	X, Y, W, H int32
}

func (Rect) ToInts added in v1.1.0

func (r Rect) ToInts() [4]int32

type RectBuffer added in v1.0.1

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

func NewRectBuffer added in v1.0.1

func NewRectBuffer() *RectBuffer

func NewRectBufferByHandle added in v1.0.1

func NewRectBufferByHandle(handle uintptr) *RectBuffer

func (*RectBuffer) Destroy added in v1.0.1

func (r *RectBuffer) Destroy()

func (*RectBuffer) Get added in v1.0.1

func (r *RectBuffer) Get() Rect

func (*RectBuffer) GetH added in v1.0.1

func (r *RectBuffer) GetH() int32

func (*RectBuffer) GetW added in v1.0.1

func (r *RectBuffer) GetW() int32

func (*RectBuffer) GetX added in v1.0.1

func (r *RectBuffer) GetX() int32

func (*RectBuffer) GetY added in v1.0.1

func (r *RectBuffer) GetY() int32

func (*RectBuffer) Handle added in v1.0.1

func (r *RectBuffer) Handle() uintptr

func (*RectBuffer) Set added in v1.0.1

func (r *RectBuffer) Set(rect Rect) bool

type StringBuffer

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

func NewStringBuffer

func NewStringBuffer() *StringBuffer

func NewStringBufferByHandle

func NewStringBufferByHandle(handle uintptr) *StringBuffer

func (*StringBuffer) Clear

func (s *StringBuffer) Clear() bool

func (*StringBuffer) Destroy

func (s *StringBuffer) Destroy()

func (*StringBuffer) Get

func (s *StringBuffer) Get() string

func (*StringBuffer) Handle

func (s *StringBuffer) Handle() uintptr

func (*StringBuffer) IsEmpty

func (s *StringBuffer) IsEmpty() bool

func (*StringBuffer) Set

func (s *StringBuffer) Set(str string) bool

func (*StringBuffer) SetWithSize

func (s *StringBuffer) SetWithSize(str string, size uint64) bool

func (*StringBuffer) Size

func (s *StringBuffer) Size() uint64

type StringListBuffer

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

func NewStringListBuffer

func NewStringListBuffer() *StringListBuffer

func NewStringListBufferByHandle

func NewStringListBufferByHandle(handle uintptr) *StringListBuffer

func (*StringListBuffer) Append

func (sl *StringListBuffer) Append(value *StringBuffer) bool

func (*StringListBuffer) Clear

func (sl *StringListBuffer) Clear() bool

func (*StringListBuffer) Destroy

func (sl *StringListBuffer) Destroy()

func (*StringListBuffer) Get

func (sl *StringListBuffer) Get(index uint64) string

func (*StringListBuffer) GetAll

func (sl *StringListBuffer) GetAll() []string

func (*StringListBuffer) Handle

func (sl *StringListBuffer) Handle() uintptr

func (*StringListBuffer) IsEmpty

func (sl *StringListBuffer) IsEmpty() bool

func (*StringListBuffer) Remove

func (sl *StringListBuffer) Remove(index uint64) bool

func (*StringListBuffer) Size

func (sl *StringListBuffer) Size() uint64

Jump to

Keyboard shortcuts

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