iced-rs / iced_aw

Additional widgets for the Iced GUI library
MIT License
424 stars 104 forks source link

Add a TextArea widget #17

Closed Luni-4 closed 9 months ago

Luni-4 commented 3 years ago

It would be nice to implement a TextArea widget for great blocks of text that might be hardly handled through an InputText widget.

Something like this could be a visual example:

immagine

Kaiden42 commented 3 years ago

This topic has come up many times (iced#839, iced#320 & iced#197).

Multi-line text input is really really hard to implement. Nevertheless, to be able to implement such a widget, the current text rendering approach needs a rework first (iced#33).

Luni-4 commented 3 years ago

Oh, I didn't know about that, thanks for the resume, now it's pretty clear. :smile:

Feel free to close this issue anytime. I would leave it open as a reminder, but no problem if it is going to be closed.

m00nwtchr commented 2 years ago

Assuming I don't care about font fallback and non-English text, is this really needed for multi-line input?

kaimast commented 2 years ago

It probably doesn't make sense to develop a widget and then having to rewrite large chunks of it when better font rendering is added.

Rick9622092 commented 1 year ago

I want to coding a Rich Text Editor, but Text widget has no "Selection()", "Range()" methods.

genusistimelord commented 1 year ago

this will probably get much better once cosmic-text is added to Iced

genusistimelord commented 1 year ago

Cosmic Text is finally in iced since the last update. also there is a cosmic multi line text box. Which is not in iced_aw. https://github.com/pop-os/cosmic-text/tree/main/examples/editor-libcosmic/src

max397574 commented 9 months ago

I think this should be closed now that TextEditor got merged?

Luni-4 commented 9 months ago

I agree, thanks a lot for the reminder!