epezent / epezent/implot

IsAnnotationHovered() or equivalent

Open
#547 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
6.2k
Forks
693
PR merge metrics
No merged PRs in 30d

Description

Hi,

This is the second time I'm bothering you, but you were quite helpful last time and now I'm back. If the below has been answered elsewhere, please excuse the redundancy; I've done what I thought was a reasonably-thorough check of what's been asked as well as meandering through the ImPlot and demo source code.

I'm using the annotation feature which is working great. Is there an equivalent of ImGui::IsItemHovered() for the annotation? I would like to be able to select it for deletion or to drag it so that the text can be moved as seen below:

![before](https://github.com/epezent/implot/assets/74018774/ae12609f-0d52-47ad-91e8-ac575a74722d)

and adjust the text to a new position (by dragging):

![after](https://github.com/epezent/implot/assets/74018774/64b842af-6ddc-443c-9013-294aa21cec54)

If there is no equivalent IsItemHovered() feature for annotation, would there be another avenue you'd recommend to adjust these positions of annotated items?

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.