Skip to content

Text Cursor #82

Answered by grovesNL
CoralynnMay asked this question in Q&A
Jan 24, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

👋 Hi @CoralynnMay! I haven't had a need to render a cursor yet so I haven't spent much time working with cosmic-text's editing functionality. I'd probably take a look at what iced does to start, because I think their editor contains a cursor buitl it's still built on top of glyphon.

glyphon re-exposes all of cosmic-text, so you should be able to access the editor struct the same way as usual just with glyphon:: as a prefix, like use glyphon::cosmic_text. If it's more convenient, you could also depend on cosmic_text directly (matching versions between cosmic-text and the version used by glyphon).

Happy to help if you're stuck on this, but hopefully that should give you a starting point!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@CoralynnMay
Comment options

Answer selected by CoralynnMay
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants