textutil

package
v0.0.0-...-f73b11a Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCenter

func GetCenter(face font.Face, str string, pos *vector2.Vector2) *vector2.Vector2

Types

type TextTransform

type TextTransform struct {
	*transform.Transform
	UIText *uitext.UIText // Text object to that pinned the transform.
}

Transform implements ITransform interface. Do not use Transform directly! Use interface instead of. Do not change or get values directly.

func NewTextTransform

func NewTextTransform(pos, scale *vector2.Vector2, rot, layer float64) *TextTransform

func (*TextTransform) GetPosition

func (t *TextTransform) GetPosition() *vector2.Vector2

func (*TextTransform) SetUIText

func (t *TextTransform) SetUIText(uit *uitext.UIText)

Jump to

Keyboard shortcuts

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