MCPcopy Create free account
hub / github.com/TurningWheel/Barony / genericgui_deselect_fn

Function genericgui_deselect_fn

src/interface/interface.cpp:736–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734};
735
736static void genericgui_deselect_fn(Widget& widget) {
737 if ( widget.isSelected() )
738 {
739 if ( !inputs.getVirtualMouse(widget.getOwner())->draw_cursor )
740 {
741 widget.deselect();
742 }
743 }
744}
745
746/*-------------------------------------------------------------------------------
747

Callers

nothing calls this directly

Calls 4

isSelectedMethod · 0.80
getVirtualMouseMethod · 0.80
getOwnerMethod · 0.80
deselectMethod · 0.45

Tested by

no test coverage detected