40template <
class SelectableItemType>
99template <
class SelectableItemType>
121 jassert (lassoSource !=
nullptr);
126 if (lassoSource !=
nullptr)
155 if (
e.mods.isShiftDown())
160 else if (
e.mods.isCommandDown() ||
e.mods.isAltDown())
163 originalMinusNew.removeValuesIn (itemsInLasso);
166 itemsInLasso.
addArray (originalMinusNew);
213 bool hitTest (
int,
int)
override {
return false; }
Definition juce_Array.h:56
void addArray(const Type *elementsToAdd, int numElementsToAdd)
Definition juce_Array.h:583
void removeValuesIn(const OtherArrayType &otherArray)
Definition juce_Array.h:961
static bool JUCE_CALLTYPE isMouseButtonDownAnywhere() noexcept
Definition juce_Component.cpp:3205
Component * getParentComponent() const noexcept
Definition juce_Component.h:804
Rectangle< int > getBounds() const noexcept
Definition juce_Component.h:304
Component() noexcept
Definition juce_Component.cpp:517
void setBounds(int x, int y, int width, int height)
Definition juce_Component.cpp:1147
void setSize(int newWidth, int newHeight)
Definition juce_Component.cpp:1262
LookAndFeel & getLookAndFeel() const noexcept
Definition juce_Component.cpp:2173
virtual void setVisible(bool shouldBeVisible)
Definition juce_Component.cpp:575
Definition juce_GraphicsContext.h:45
Array< SelectableItemType > originalSelection
Definition juce_LassoComponent.h:217
void endLasso()
Definition juce_LassoComponent.h:176
bool hitTest(int, int) override
Definition juce_LassoComponent.h:213
void beginLasso(const MouseEvent &e, LassoSource< SelectableItemType > *lassoSource)
Definition juce_LassoComponent.h:118
void paint(Graphics &g) override
Definition juce_LassoComponent.h:202
Point< int > dragStartPos
Definition juce_LassoComponent.h:219
void dragLasso(const MouseEvent &e)
Definition juce_LassoComponent.h:145
LassoSource< SelectableItemType > * source
Definition juce_LassoComponent.h:218
ColourIds
Definition juce_LassoComponent.h:195
@ lassoFillColourId
Definition juce_LassoComponent.h:196
@ lassoOutlineColourId
Definition juce_LassoComponent.h:197
Definition juce_LassoComponent.h:42
virtual ~LassoSource()=default
virtual void findLassoItemsInArea(Array< SelectableItemType > &itemsFound, const Rectangle< int > &area)=0
virtual SelectedItemSet< SelectableItemType > & getLassoSelection()=0
Definition juce_MouseEvent.h:39
Definition juce_Point.h:42
Definition juce_Rectangle.h:67
Definition juce_SelectedItemSet.h:46
* e
Definition inflate.c:1404
int g
Definition inflate.c:1573
Definition carla_juce.cpp:31