MCPcopy Create free account
hub / github.com/WheretIB/nullc / ClearAreaText

Method ClearAreaText

GUI/RichTextarea.cpp:936–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

934}
935
936void RichTextarea::ClearAreaText(HWND wnd)
937{
938 TextareaData *data = GetData(wnd);
939
940 data->firstLine->length = 0;
941 data->lineCount = 1;
942 data->longestLine = 0;
943 data->currLine = data->firstLine;
944 while(data->currLine->next)
945 DeleteLine(data->currLine->next);
946 data->currLine = data->firstLine;
947 data->firstLine->next = NULL;
948}
949
950// Function that returns text with line ending in linear buffer
951const char* RichTextarea::GetAreaText(HWND wnd)

Callers

nothing calls this directly

Calls 2

DeleteLineFunction · 0.85
GetDataFunction · 0.70

Tested by

no test coverage detected