uitext

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UIText

type UIText struct {
	Transform interfaces.ITransform
	Text      string
	Font      *sfnt.Font
	Options   *interfaces.FontOptions

	ID string
	// contains filtered or unexported fields
}

func New

func New(tf interfaces.ITransform, text string, f *sfnt.Font, fontSize float64) (*UIText, error)

func (*UIText) DrawUI

func (t *UIText) DrawUI(gb interfaces.IGameBase, screen *ebiten.Image)

func (*UIText) DrawUIPriority

func (t *UIText) DrawUIPriority() float64

func (*UIText) GetFontFace

func (t *UIText) GetFontFace() font.Face

func (*UIText) GetID

func (t *UIText) GetID() string

func (*UIText) GetOptions

func (t *UIText) GetOptions() *interfaces.FontOptions

func (*UIText) SetColor

func (t *UIText) SetColor(fontColor color.Color)

func (*UIText) SetDPI

func (t *UIText) SetDPI(dpi float64) error

func (*UIText) SetOptions

func (t *UIText) SetOptions(fontOptions *interfaces.FontOptions) error

func (*UIText) SetSize

func (t *UIText) SetSize(fontSize float64) error

Jump to

Keyboard shortcuts

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