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

Method HandleEditBox

src/misc_gui.cpp:702–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700}
701
702void QueryString::HandleEditBox(Window *w, WidgetID wid)
703{
704 if (w->IsWidgetGloballyFocused(wid) && this->text.HandleCaret()) {
705 w->SetWidgetDirty(wid);
706
707 /* For the OSK also invalidate the parent window */
708 if (w->window_class == WC_OSK) w->InvalidateData();
709 }
710}
711
712static int GetCaretWidth()
713{

Callers 1

DecreaseWindowCountersFunction · 0.80

Calls 4

HandleCaretMethod · 0.80
SetWidgetDirtyMethod · 0.80
InvalidateDataMethod · 0.45

Tested by

no test coverage detected