MCPcopy Create free account
hub / github.com/crossuo/crossuo / GetLinesCountW

Method GetLinesCountW

src/TextEngine/EntryText.cpp:145–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145int CEntryText::GetLinesCountW(uint8_t font, TEXT_ALIGN_TYPE align, uint16_t flags, int width)
146{
147 if (width == 0)
148 {
149 width = Width;
150 }
151
152 auto *info = g_FontManager.GetInfoW(font, GetTextW(), align, flags, width);
153 int count = 0;
154 while (info != nullptr)
155 {
156 auto *next = info->m_Next;
157 delete info;
158 info = next;
159 count++;
160 }
161
162 return count;
163}
164
165bool CEntryText::Insert(char16_t ch, CGump *gump)
166{

Callers 2

InsertInContentMethod · 0.80
OnTextInputMethod · 0.80

Calls 1

GetInfoWMethod · 0.80

Tested by

no test coverage detected