activeButton is a pointer. What is typeButton?
How do i add the equality operator to ImageButton (JUCE)?
-
28-11-2021 - |
Domanda
i have a few imagebuttons with their respective buttonListeners.
on the buttonClicked function i try to:
void TestComponent::buttonClicked (Button* activeButton) {
if (activeButton == typeButton) {
//do something
}
}
But i get
"No match for operator == in activeButton..."
How can i add the parent class Button equality operator to ImageButton?
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow