element_codeblock

package
v0.0.0-...-4a89964 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElementCodeBlock

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

func New

func New(renderer types.Renderer, tile types.Tile) *ElementCodeBlock

func (*ElementCodeBlock) Draw

func (el *ElementCodeBlock) Draw(pos *types.XY)

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

func (*ElementCodeBlock) Generate

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

func (*ElementCodeBlock) MouseClick

func (el *ElementCodeBlock) MouseClick(_ *types.XY, button types.MouseButtonT, _ uint8, state types.ButtonStateT, callback types.EventIgnoredCallback)

func (*ElementCodeBlock) MouseHover

func (el *ElementCodeBlock) MouseHover(_ *types.XY, _ *types.XY) func()

func (*ElementCodeBlock) MouseMotion

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

func (*ElementCodeBlock) MouseOut

func (el *ElementCodeBlock) MouseOut()

func (*ElementCodeBlock) MouseWheel

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

func (*ElementCodeBlock) Rune

func (el *ElementCodeBlock) Rune(pos *types.XY) rune

func (*ElementCodeBlock) Size

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

func (*ElementCodeBlock) Write

func (el *ElementCodeBlock) Write(r rune) error

Jump to

Keyboard shortcuts

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