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
}
StagePicking
struct
StagePicking.Close
StagePicking.Initialize
StagePicking.RequestBox
StagePicking.RequestClick
func (p *StagePicking) RequestClick(point matrix.Vec2, mode editor_stage_manager.SelectionMode, ray graviton.Ray) bool
StagePicking.SamplePoint
StagePicking.Update
StageView
struct
StageView.ActiveViewportKind
StageView.Camera
StageView.CanUseTransformToolKeybinding
StageView.ClearViewportToolOwner
StageView.Close
StageView.DuplicateSelected
StageView.EnableTransformTool
StageView.EnableWireframeTransformTool
StageView.FocusSelection
StageView.FocusViewportKind
StageView.HoveredViewportKind
StageView.Initialize
StageView.IsFlyCameraInputActive
StageView.IsGridVisible
IsGridVisible returns whether the editor viewport grid is currently shown.
StageView.IsView3D
StageView.LookAtPoint
StageView.Manager
StageView.Open
StageView.PickIDAtViewportPoint
StageView.RefreshTransformGizmoVisibility
StageView.SetCameraMode
StageView.SetCameraPreviewUI
StageView.SetGridVisible
SetGridVisible toggles the editor viewport grid. The change is applied immediately to the live drawing; persistence is the caller's responsibility.
StageView.SetViewportToolOwner
StageView.SetViewportUI
StageView.SetViewportUIForKind
StageView.SyncStageViewport
StageView.TryBoxSelect
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.ViewportCursorPosition
func (v *StageView) ViewportCursorPosition(mode editor_controls.EditorCameraMode, cursor *hid.Cursor) matrix.Vec2
StageView.ViewportCursorScreenPosition
StageView.ViewportMousePosition
StageView.ViewportReferenceSize
StageView.ViewportSize
StageView.WorkspaceHost
StageViewportKind
const ( StageViewportPerspective StageViewportKind = iota StageViewportTop StageViewportSide StageViewportFront
StageViewportLeft = StageViewportSide StageViewportRight = StageViewportFront )
StageViewportKinds
StageViewportKind.Label
ToolState
const ( ToolStateNone ToolState = iota ToolStateMove ToolStateRotate ToolStateScale )
TransformationManager
struct
TransformationManager.EnableToolState
TransformationManager.EnableTranslationTool
TransformationManager.Initialize
func (t *TransformationManager) Initialize(stageView *StageView, history *memento.History, settings *editor_settings.Settings)
TransformationManager.IsBusy
TransformationManager.RefreshToolVisibility
TransformationManager.Update
VertexSnapTool
struct
VertexSnapTool.Hide
VertexSnapTool.Initialize
func (t *VertexSnapTool) Initialize(host *engine.Host, view *StageView, transformManager *TransformationManager)
VertexSnapTool.IsBusy
VertexSnapTool.Update
ViewportToolOwner
interface