I want to create a custom button with multiple click actions. For e.g., the button can have 4 actions depending on whether the user clicked on the top, bottom, left or right.
I’m looking for pointers on how I should go about this. Should I group 4 buttons and a Text widget into a group or if there is a way for the button to get the coordinate of where the click occurred then translate it to the region within the button and take the correct action. The same hit-test can also be done for hover to tell the user that there are multiple actions possible.
Any help / guidance is appreciated.
P.S. New to C++, have spent the last couple of weeks working with Dear ImGui for my tool / app while getting up to speed on Desktop GUI, C++, IMGUI …