51 const PROXIMITY& aProximity =
nullptr )
const;
57 void BrightenOnly(
const std::vector<BOARD_ITEM*>& aItems );
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
PCB_SELECTION_TOOL * m_selectionTool
void Brighten(BOARD_ITEM *aItem)
HOVER_PICKER(TOOL_MANAGER *aToolMgr)
std::function< double(const BOARD_ITEM &aItem, const VECTOR2I &aPointer)> PROXIMITY
Optional tie-break among what the selection heuristics left. Nearest wins.
~HOVER_PICKER()
Puts back whatever is still lit, so an early exit cannot strand a highlight.
std::function< bool(BOARD_ITEM &aItem)> ACCEPTS
Everything it sees is already selectable.
void BrightenOnly(const std::vector< BOARD_ITEM * > &aItems)
Light exactly these, leaving what is already lit alone.
void ClearBrightening()
Items go back by id, so a commit that replaced one still puts the original back.
BOARD_ITEM * Pick(const VECTOR2I &aPointer, const ACCEPTS &aAccepts, const PROXIMITY &aProximity=nullptr) const
The item a click would take, or null.
std::vector< KIID > m_brightened
VECTOR2< int32_t > VECTOR2I