commit | 2196cff397d3663831ff5a2d617f159e0976b96f | [log] [tgz] |
---|---|---|
author | Bérenger Dalle-Cort <contact@dalle-cort.fr> | Sun Jun 02 15:10:42 2019 +0200 |
committer | Bérenger Dalle-Cort <contact@dalle-cort.fr> | Sun Jun 02 15:17:25 2019 +0200 |
tree | 691a8b9b488b0ff5c29488859d85f6261342b39f | |
parent | 947e6a848513d261930cd4027b3e07d7bc4c0b8c [diff] |
Fix relative to mouse cursor When i draw other items on top of TextEditor, when my mouse passes over the item draw on top the cursor was still a TextInput. But this is not correct if I'm hovering a button/label/unvisibleButton on top (for example)
Syntax highlighting text editor for ImGui
Demo project: https://github.com/BalazsJako/ColorTextEditorDemo
This started as my attempt to write a relatively simple widget which provides source code editing functionality with basic syntax highlighting. Now there are other contributors who provide valuable additions.
While it relies on Omar Cornut's https://github.com/ocornut/imgui, it does not follow the “pure” one widget - one function approach. Since the editor has to maintain a relatively complex and large internal state, it did not seem to be practical to try and enforce fully immediate mode.
The code is (still) work in progress, please report if you find any issues.
Don't forget to post your screenshots if you use this little piece of software in order to keep me us motivated. :)
If you want to contribute, please refer to CONTRIBUTE file.
Thank you. :)