I need to make some kind of widget decorations that take up a character location in the editor, such that the cursor can sit at either side of the decoration. From what I tried, the widget can only take the cursor on one side but not the other. I also experimented with the replace decorations but they take up as many cursor positions as what they have replaced and I don’t want to actually insert anything. I just want a widget that takes up a character slot, so to speak.
I tried some experimenting with the PointDecoration class, but couldn’t find a way to make it work. Is this possible?