27#ifndef PCB_SELECTION_CONDITIONS_H_ 
   28#define PCB_SELECTION_CONDITIONS_H_ 
static SELECTION_CONDITION SameLayer()
Creates a functor that tests if selection contains items that belong exclusively to the same layer.
 
static bool sameLayerFunc(const SELECTION &aSelection)
 
static bool HasUnlockedItems(const SELECTION &aSelection)
Test if any selected items are unlocked.
 
static SELECTION_CONDITION SameNet(bool aAllowUnconnected=false)
Create a functor that tests if selection contains items belonging to the same net or are unconnected ...
 
static bool sameNetFunc(const SELECTION &aSelection, bool aAllowUnconnected)
< Helper function used by SameNet()
 
static bool HasLockedItems(const SELECTION &aSelection)
Test if any selected items are locked.
 
Class that groups generic conditions for selected items.
 
std::function< bool(const SELECTION &)> SELECTION_CONDITION
Functor type that checks a specific condition for selected items.