editor

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: BSD-3-Clause Imports: 37 Imported by: 0

Documentation

Overview

Package editor and its sub-packages contain the editor-specifics of hacked.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// Version identifies the build of the application.
	Version string

	// ConfigDir is the base path to store configuration in.
	ConfigDir string

	// FontFile specifies the font to use.
	FontFile string
	// FontSize specifies the font size to use.
	FontSize float32
	// GuiScale is applied when the window is initialized.
	GuiScale float32
	// contains filtered or unexported fields
}

Application is the root object of the graphical editor. It is set up by the main method.

func (*Application) InitializeWindow

func (app *Application) InitializeWindow(window opengl.Window) (err error)

InitializeWindow takes the given window and attaches the callbacks.

func (*Application) Queue added in v0.2.0

func (app *Application) Queue(command cmd.Command)

Queue requests to perform the given command.

Jump to

Keyboard shortcuts

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