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

Method TextViewerWindow

src/gui/textviewerwindow.cc:6–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "textviewerwindow.h"
5
6TextViewerWindow::TextViewerWindow(wxWindow* parent,
7 const std::string& title,
8 const std::string& text,
9 bool autodestroy):
10 TextViewerWindowGen(parent),
11 _autodestroy(autodestroy)
12{
13 auto size = textControl->GetTextExtent("M");
14 SetSize(size.Scale(85, 25));
15 SetTitle(title);
16 textControl->SetValue(text);
17}
18
19TextViewerWindow* TextViewerWindow::Create(wxWindow* parent,
20 const std::string& title,

Callers

nothing calls this directly

Calls 1

SetValueMethod · 0.80

Tested by

no test coverage detected