Skip to content

package editor_stage_view

import "kaijuengine.com/editor/editor_stage_manager/editor_stage_view"

Types

EditorStageViewWorkspaceInterface

interface

type EditorStageViewWorkspaceInterface interface {
    History() *memento.History
    Project() *project.Project
    ProjectFileSystem() *project_file_system.FileSystem
    Cache() *content_database.Cache
    FocusInterface()
    BlurInterface()
    Settings() *editor_settings.Settings
    StageView() *StageView
}

StageView

struct

type StageView struct {
    // Has unexported fields.
}

StageView.Camera

func (v *StageView) Camera() *editor_controls.EditorCamera

StageView.Close

func (v *StageView) Close()

StageView.DuplicateSelected

func (v *StageView) DuplicateSelected(proj *project.Project)

StageView.Initialize

func (v *StageView) Initialize(host *engine.Host, ed EditorStageViewWorkspaceInterface)

StageView.IsGridVisible

func (v *StageView) IsGridVisible() bool

IsGridVisible returns whether the editor viewport grid is currently shown.

StageView.IsView3D

func (v *StageView) IsView3D() bool

StageView.LookAtPoint

func (v *StageView) LookAtPoint() matrix.Vec3

StageView.Manager

func (v *StageView) Manager() *editor_stage_manager.StageManager

StageView.Open

func (v *StageView) Open()

StageView.SetCameraMode

func (v *StageView) SetCameraMode(mode editor_controls.EditorCameraMode)

StageView.SetGridVisible

func (v *StageView) SetGridVisible(visible bool)

SetGridVisible toggles the editor viewport grid. The change is applied immediately to the live drawing; persistence is the caller's responsibility.

StageView.Update

func (v *StageView) Update(deltaTime float64, proj *project.Project) bool

Update will update the stage view and return true if the view is taking control of the keyboard interactions. It'll return false otherwise. If this returns true, then the caller shouldn't process any hotkeys or other types of keyboard actions.

StageView.WorkspaceHost

func (v *StageView) WorkspaceHost() *engine.Host

ToolState

uint8

type ToolState = uint8

const ( ToolStateNone ToolState = iota ToolStateMove ToolStateRotate ToolStateScale )

TransformationManager

struct

type TransformationManager struct {
    // Has unexported fields.
}

TransformationManager.Initialize

func (t *TransformationManager) Initialize(stageView *StageView, history *memento.History, snapSettings *editor_settings.SnapSettings)

TransformationManager.IsBusy

func (t *TransformationManager) IsBusy() bool

TransformationManager.Update

func (t *TransformationManager) Update(host *engine.Host)