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

Method SetStyleToSelection

GUI/RichTextarea.cpp:848–856  ·  view source on GitHub ↗

Style is changed for linear buffer

Source from the content-addressed store, hash-verified

846
847// Style is changed for linear buffer
848void RichTextarea::SetStyleToSelection(HWND wnd, unsigned int start, unsigned int end, int style)
849{
850 TextareaData *data = GetData(wnd);
851
852 // Simply set style to the specified range of symbols
853 for(unsigned int i = start; i <= end; i++)
854 data->areaTextEx[i] = (char)style;
855 maximumEnd = maximumEnd < end ? end : maximumEnd;
856}
857
858// Function is called after setting style to text parts. It copies style information from linear buffer to AreaLine list
859void RichTextarea::EndStyleUpdate(HWND wnd)

Callers

nothing calls this directly

Calls 1

GetDataFunction · 0.70

Tested by

no test coverage detected