MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetQueryString

Method GetQueryString

src/window.cpp:335–339  ·  view source on GitHub ↗

* Return the querystring associated to a editbox. * @param widnum Editbox widget index * @return QueryString or nullptr. */

Source from the content-addressed store, hash-verified

333 * @return QueryString or nullptr.
334 */
335const QueryString *Window::GetQueryString(WidgetID widnum) const
336{
337 auto query = this->querystrings.find(widnum);
338 return query != this->querystrings.end() ? query->second : nullptr;
339}
340
341/**
342 * Return the querystring associated to a editbox.

Callers 8

GetFocusedTextbufMethod · 0.95
GetCaretPositionMethod · 0.95
GetTextBoundingRectMethod · 0.95
HandleEditBoxKeyMethod · 0.95
InsertTextStringMethod · 0.95
DispatchLeftClickEventFunction · 0.80
DrawMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected