I found this example here: https://docs.opencv.org/3.1.0/db/d5b/tutorial_py_mouse_handling.html
But it's written in Python. Is there it's C++ version too? It seems many of Opencv examples are only written in Python, even inside it's documentation page?