elementImage

package
v0.0.0-...-772821d Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElementImage

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

func New

func New(renderer types.Renderer, loadFn func([]byte, *types.XY) (types.Image, error)) *ElementImage

func (*ElementImage) Close

func (el *ElementImage) Close()

func (*ElementImage) Draw

func (el *ElementImage) Draw(size *types.XY, pos *types.XY)

Draw: size: optional. Defaults to element size pos: required. Position to draw element

func (*ElementImage) Generate

func (el *ElementImage) Generate(apc *types.ApcSlice) error

func (*ElementImage) MouseClick

func (el *ElementImage) MouseClick(_ *types.XY, button uint8, _ uint8, callback types.EventIgnoredCallback)

func (*ElementImage) MouseMotion

func (el *ElementImage) MouseMotion(_ *types.XY, _ *types.XY, callback types.EventIgnoredCallback)

func (*ElementImage) MouseOut

func (el *ElementImage) MouseOut()

func (*ElementImage) MouseWheel

func (el *ElementImage) MouseWheel(_ *types.XY, _ *types.XY, callback types.EventIgnoredCallback)

func (*ElementImage) Rune

func (el *ElementImage) Rune(_ *types.XY) rune

func (*ElementImage) Size

func (el *ElementImage) Size() *types.XY

func (*ElementImage) Write

func (el *ElementImage) Write(_ rune) error

Jump to

Keyboard shortcuts

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