|
rigCodeEditor 0.1.0
RigKit pack API - rigCodeEditor
|
Shared ImGui code-editor pack for tool apps. More...
#include <rigCodeEditor/src/rigCodeEditor.h>
Classes | |
| struct | Options |
| Bootstrap - register window, visibility, editor font size. More... | |
Public Member Functions | |
| bool | drawLightEdit (uint32_t entity, std::string &text, const std::string &language, float height, bool readOnly) |
| Highlighted inline TextEditor for a CCode buffer. | |
| void | addWindowHook (std::function< void(CodeEditorWindow &)> hook) |
Run hook on every code window, including ones opened later. | |
Shared ImGui code-editor pack for tool apps.
Registers a Code Editor window via IMui / MWindow. Mirrors every CCode entity into tabs (edits write back); apps may also seed the window with getText / setText. Files dropped on the window open as tabs. Options::windowPerBuffer gives each buffer its own dockable window instead. Vendors ImGuiColorTextEdit under third_party/.
| void rigkit::rigCodeEditor::addWindowHook | ( | std::function< void(CodeEditorWindow &)> | hook | ) |
Run hook on every code window, including ones opened later.
Plotter UI uses this for the resource menu and the print-time note.
| bool rigkit::rigCodeEditor::drawLightEdit | ( | uint32_t | entity, |
| std::string & | text, | ||
| const std::string & | language, | ||
| float | height, | ||
| bool | readOnly ) |
Highlighted inline TextEditor for a CCode buffer.
Shared by Properties and kit panels (e.g. Snippets). Same slots - edits stay in sync when both are visible.