I have a function called on_stop_dragging in resize_point. I'm passing this to a drag_and_drop class in its constructor.
In drag_and_drop, if the user stops dragging an object, I'm firing the on_stop_dragging function using on_stop_dragging.call()
Alternatively, to achieve this I can have a signal in the drag_and_drop class and connect the on_stop_dragging function to the signal.
Are there any recommendations for when to use which? Or are both of these approaches fine in this scenario?
I know for certain that there will be only one function for drag_and_drop. I don't need to connect multiple functions to the signal if I go the signal route.