dcc

package
v0.0.0-...-165de30 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package dcc contains dcc editor's data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(cfg *config.Config,
	pathEntry *common.PathEntry,
	state []byte,
	data *[]byte, x, y float32, project *hsproject.Project,
) (editor.Editor, error)

Create creates a new dcc editor

Types

type Editor

type Editor struct {
	*editor.EditorBase
	// contains filtered or unexported fields
}

Editor represents a new dcc editor

func (*Editor) Build

func (e *Editor) Build()

Build builds a dcc editor

func (*Editor) Cleanup

func (e *Editor) Cleanup()

Cleanup hides editor

func (*Editor) GenerateSaveData

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

GenerateSaveData generates data to save

func (*Editor) GetLayout

func (e *Editor) GetLayout() g.Widget

func (*Editor) Save

func (e *Editor) Save()

Save saves editor

func (*Editor) UpdateMainMenuLayout

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

UpdateMainMenuLayout updates main menu to it contain editor's options

Jump to

Keyboard shortcuts

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