EditorShell class
#include <Editor/Public/EditorShell.h>
Public functions
- void Initialize(EditorContext& editor, TrinyxEngine& engine)
- void Post(std::function<void()> work)
- Run on Encoder at the top of the editor's frame.
- void RunPosted()
- void RefreshLog()
- Pick up new log lines for the Log panel. Encoder, once a frame.
- void AfterUpdate()
- auto PointsToUnits() const -> float
- UI units per window coordinate (what the mouse moves in) in the main window.
- void Refresh()
- Something the document shows changed: build it again. Encoder, at the end of the frame.
- void AskResetLayout()
- Go back to the default layout, at the next update. Any thread.
-
void AskUnsaved(std::vector<EditorContext::
UnsavedDocument> unsaved) - void AskRecovery()
- Offer back what the last session left unsaved (EditorContext::
AnswerRecovery). Encoder. - void AssetIssuesChanged()
- EditorContext::AssetIssues changed: show them, or close the list once it is empty. Encoder.
- void OpenPalette()
- Open the command palette. UI update.
Function documentation
void EditorShell:: AfterUpdate()
Read where the title bar's drag area and maximize button are after the UI update, for the platform. Encoder, at the start of the editor's frame.
void EditorShell:: AskUnsaved(std::vector<EditorContext:: UnsavedDocument> unsaved)
Ask which of unsaved to save before going on (EditorContext::