hstexteditor

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 hstexteditor contains text 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 text editor

Types

type TextEditor

type TextEditor struct {
	*hseditor.Editor
	// contains filtered or unexported fields
}

TextEditor represents a text editor

func (*TextEditor) Build

func (e *TextEditor) Build()

Build builds an editor

func (*TextEditor) Cleanup

func (e *TextEditor) Cleanup()

Cleanup hides an editor

func (*TextEditor) GenerateSaveData

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

GenerateSaveData generates data to be saved

func (*TextEditor) Save

func (e *TextEditor) Save()

Save saves an editor

func (*TextEditor) UpdateMainMenuLayout

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

UpdateMainMenuLayout updates mainMenu layout to it contains editor's options

Jump to

Keyboard shortcuts

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