package 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
StageView.Camera
StageView.Close
StageView.DuplicateSelected
StageView.Initialize
StageView.IsGridVisible
IsGridVisible returns whether the editor viewport grid is currently shown.
StageView.IsView3D
StageView.LookAtPoint
StageView.Manager
StageView.Open
StageView.SetCameraMode
StageView.SetGridVisible
SetGridVisible toggles the editor viewport grid. The change is applied immediately to the live drawing; persistence is the caller's responsibility.
StageView.Update
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
ToolState
const ( ToolStateNone ToolState = iota ToolStateMove ToolStateRotate ToolStateScale )
TransformationManager
struct
TransformationManager.Initialize
func (t *TransformationManager) Initialize(stageView *StageView, history *memento.History, snapSettings *editor_settings.SnapSettings)