MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / TextEditorWindow

Method TextEditorWindow

src/gui/texteditorwindow.cc:8–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6wxDEFINE_EVENT(EDITOR_SAVE_EVENT, EditorSaveEvent);
7
8TextEditorWindow::TextEditorWindow(
9 wxWindow* parent, const std::string& title, const std::string& text):
10 TextEditorWindowGen(parent)
11{
12 auto size = textControl->GetTextExtent("M");
13 SetSize(size.Scale(85, 25));
14 SetTitle(title);
15 textControl->SetValue(text);
16}
17
18TextEditorWindow* TextEditorWindow::Create(
19 wxWindow* parent, const std::string& title, const std::string& text)

Callers

nothing calls this directly

Calls 1

SetValueMethod · 0.80

Tested by

no test coverage detected