Skip to main content

Module editor

Module editor 

Source
Expand description

Abstract editor framework: panel system, dock layout, UI builder, and theme.

All types here are backend-agnostic. Concrete implementations (egui, etc.) live in khora-infra.

Re-exports§

pub use camera::EditorCamera;
pub use command::CommandHistory;
pub use command::EditorCommand;
pub use dock::ratio_from_pointer;
pub use dock::zone_at;
pub use dock::DockLayout;
pub use dock::DockNode;
pub use dock::DockRect;
pub use dock::DockTree;
pub use dock::DropZone;
pub use dock::SplitAxis;
pub use dock::SplitId;
pub use dock::SplitterLayout;
pub use dock::TabGroupLayout;
pub use gizmo::generate_selection_gizmos;
pub use gizmo::gizmo_world_size;
pub use gizmo::GizmoKind;
pub use gizmo::GizmoLineInstance;
pub use gizmo::SelectionGizmo;
pub use gizmo_interact::gizmo_basis;
pub use gizmo_interact::pick_handle;
pub use gizmo_interact::GizmoAxis;
pub use gizmo_interact::GizmoBasis;
pub use gizmo_interact::GizmoDelta;
pub use gizmo_interact::GizmoDrag;
pub use gizmo_interact::GizmoTransform;
pub use icons::Icon;
pub use log_capture::EditorLogCapture;
pub use panel::EditorPanel;
pub use panel::PanelLocation;
pub use shell::EditorShell;
pub use state::AssetEntry;
pub use state::ComponentJson;
pub use state::EditorMode;
pub use state::EditorState;
pub use state::EntityIcon;
pub use state::GizmoMode;
pub use state::InspectedEntity;
pub use state::LogEntry;
pub use state::LogLevel;
pub use state::PlayMode;
pub use state::PropertyEdit;
pub use state::SceneNode;
pub use state::StatusBarData;
pub use ui_builder::FontFamilyHint;
pub use ui_builder::InlineEditEvent;
pub use ui_builder::Interaction;
pub use ui_builder::TextAlign;
pub use ui_builder::UiBuilder;
pub use viewport_texture::ViewportTextureHandle;

Modules§

camera
Editor camera with orbit / pan / zoom controls.
command
Undo/redo command history for editor operations.
dock
Dock model — the tree of splits and tab groups behind the editor workbench.
gizmo
Editor gizmo geometry generation.
gizmo_interact
Gizmo manipulation — grabbing a handle and turning cursor motion into a transform delta.
icons
Editor icon set — names and Unicode codepoints from the Lucide font.
log_capture
A dual-output logger that captures log entries for the editor console while also printing to stderr for development.
panel
Abstract editor panel and dock location types.
shell
Abstract editor shell — generic host for dock-based panel layouts.
state
Editor state shared between the application logic and UI panels.
ui_builder
Abstract widget builder for editor panels.
viewport_texture
Abstract viewport texture handle for displaying engine-rendered images in editor panels.