MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / readOnlyMultiline

Method readOnlyMultiline

Source/UIComponents/CtrlrTextEditor.cpp:87–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87CtrlrTextEditor *CtrlrTextEditor::readOnlyMultiline(const String &xmlSource, const Colour backgroundColour, const Colour outlineColour, const Colour shadowColour)
88{
89 CtrlrTextEditor *t = new CtrlrTextEditor();
90 t->setColour (TextEditor::backgroundColourId, backgroundColour);
91 t->setColour (TextEditor::shadowColourId, shadowColour);
92 t->setColour (TextEditor::outlineColourId, outlineColour);
93 t->setReadOnly (true);
94 t->setMultiLine (true, true);
95 t->setXmlSource (xmlSource);
96
97 return (t);
98}
99
100void CtrlrTextEditor::setXmlSource (const String &xmlSource)
101{

Callers

nothing calls this directly

Calls 3

setReadOnlyMethod · 0.80
setXmlSourceMethod · 0.80
setColourMethod · 0.45

Tested by

no test coverage detected