MCPcopy Create free account
hub / github.com/Rezonality/zep / InitDataGrid

Method InitDataGrid

src/editor.cpp:867–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

865}
866
867void ZepEditor::InitDataGrid(ZepBuffer& buffer, const NVec2i& dimensions)
868{
869 std::ostringstream str;
870 for (int column = 0; column < dimensions.y; column++)
871 {
872 for (int row = 0; row < dimensions.x; row++)
873 {
874 str << ".";
875 }
876 str << "\n";
877 }
878 buffer.SetText(str.str());
879}
880
881// Do any special buffer processing
882void ZepEditor::InitBuffer(ZepBuffer& buffer)

Callers

nothing calls this directly

Calls 2

SetTextMethod · 0.80
strMethod · 0.80

Tested by

no test coverage detected