dalerank / nanogui-sdl

Minimalistic port of NanoGUI claim works with SDL API w/o external dependencies.
Other
437 stars 77 forks source link

Multiline TextBox or TextArea #44

Open staltux opened 4 years ago

staltux commented 4 years ago

How a can set the TextBox to handle multiple lines?

siredmar commented 4 years ago

@staltux as far as i know multiline there currently is no multiline support for TextBox or Label. This issue has been opened in April. Did you ever built a solution and might be interested in contributing a PR?

cesss commented 1 year ago

The new repository of nanogui (non-SDL) seems to have a multiline TextArea, but the code says it's read-only. I didn't check, though.

dalerank commented 1 year ago

which nanogui repo u mean? because wjacob halt work for nanogui many years ago Im halt support this repo when move to imgui Idk if any still use it, because it was a pet project for hardware, which support small debian port with sdl package

cesss commented 1 year ago

I mean the mitsuba one, which seems to be maintained: https://github.com/mitsuba-renderer/nanogui

Are you going to drop nanogui and use imgui instead? I'm in fact comparing different minimalist GUI libraries just now. I want to use a C library, not C++ (yes, I've been coding in C++ for many years, but I have decided to go back to C). For this reason, I've almost decided to use Nuklear, which is C. The weak point of Nuklear is that its automatic layout is only partially automatic, and I don't want to hardcode widgets sizes anymore. If AntTweakBar had a bit nicer look, and if it was C instead of C++, it would be the perfect library for my needs.

I was considering porting nanogui to C. But it's a matter of cost: what would it take less effort, porting nanogui to C, or improving the Nuklear layout system? I'm still balancing pros and cons.

I also saw microui. Promising, but I think it requires to hardcode widgets sizes.

I keep searching, but maybe Nuklear will be my best fit. I love the nanogui looks, but you can skin Nuklear.

dalerank commented 1 year ago
  1. As I said it was pet lib for another hardware project, this hardware have no gpu and I need to render all opengl staff with cpu
  2. Imgui have C wrapper
  3. nanogui is dead as I see
cesss commented 1 year ago

Ok, I understand. I know Imgui has a C wrapper, and, even if it didn't, it's always little work to write the C->C++ layer that you need. But I prefer to avoid having any C++ code in my projects, if possible (I prefer to avoid linking to the C++ standard library, and to not depend on having a C++ compiler with this or that version). I was taking a look at microui and I don't discard using it. It has the kind of minimalism I'd like.

dalerank commented 1 year ago

Yep, may be u r right and I need to revive this project :)