hsfonteditor

package
v0.0.0-...-667d129 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package hsfonteditor contains font editor's data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(_ *hsconfig.Config,
	_ hscommon.TextureLoader,
	pathEntry *hscommon.PathEntry,
	_ []byte,
	data *[]byte, x, y float32, project *hsproject.Project) (hscommon.EditorWindow, error)

Create creates a new font editor

Types

type FontEditor

type FontEditor struct {
	*hseditor.Editor
	*hsfont.Font
}

FontEditor represents a font editor

func (*FontEditor) Build

func (e *FontEditor) Build()

Build builds an editor

func (*FontEditor) Cleanup

func (e *FontEditor) Cleanup()

Cleanup hides an editor

func (*FontEditor) GenerateSaveData

func (e *FontEditor) GenerateSaveData() []byte

GenerateSaveData generates data to be saved

func (*FontEditor) Save

func (e *FontEditor) Save()

Save saves an editor

func (*FontEditor) UpdateMainMenuLayout

func (e *FontEditor) UpdateMainMenuLayout(l *g.Layout)

UpdateMainMenuLayout updates main menu layout to it contains editors options

Jump to

Keyboard shortcuts

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