Live data from Hacker News

Raygui – A simple and easy-to-use immediate-mode GUI library

github.com

31–40 of 117 posts

Re: Raygui – A simple and easy-to-use immediate-mode GUI library

#31
post #28

Earlier quoted context omitted.

Changing attributes of UI elements defined in code vs some XML format is in my mind the same level of effort. button.SetBackground( ) or " /> I see no difference there. EDIT: Ok the main difference I guess would be having to switch files (and thus context) which could be annoying. Plus there's also the non-zero performance impact from having to parse an XML format.

What if you have stacked elements, or elements within elements. In code it's something weird like Box(button( Icon() )))

How is:

  Box(
    Button(
      Icon(...)
    )
  )
Weirder than:

  
    
      
    
  

Re: Raygui – A simple and easy-to-use immediate-mode GUI library

#32
post #28

Earlier quoted context omitted.

Changing attributes of UI elements defined in code vs some XML format is in my mind the same level of effort. button.SetBackground( ) or " /> I see no difference there. EDIT: Ok the main difference I guess would be having to switch files (and thus context) which could be annoying. Plus there's also the non-zero performance impact from having to parse an XML format.

What if you have stacked elements, or elements within elements. In code it's something weird like Box(button( Icon() )))

Its entirely dependent on how w/e library your using implements that pattern. For the code I just recently wrote that does a similar thing, its literally just:

button.SetIcon()

box.add(button)

Doesn't really seem all that weird to me.

Re: Raygui – A simple and easy-to-use immediate-mode GUI library

#34

Does it support RTL languages? My main problem with DearImgui is lack of RTL language support. I think one of the biggest factors which deter people from using immediate mode GUI is lack of support for many languages.

What languages?

Re: Raygui – A simple and easy-to-use immediate-mode GUI library

#35

Would it be possible to define the GUI with XML, Unity just added this officially and it makes life much better. Then you do something like rootGUI.Query("elementID").RegisterCallback( e => otherFunc(e));

Wait until you find out about HTML and the document object in Javascript

The evolution of HTML and CSS clearly shows that HTML isn't suited to describe a interface without massive hints to a rendering engine to manipulate it

Re: Raygui – A simple and easy-to-use immediate-mode GUI library

#36

Does it support RTL languages? My main problem with DearImgui is lack of RTL language support. I think one of the biggest factors which deter people from using immediate mode GUI is lack of support for many languages.

What languages?

https://en.wikipedia.org/wiki/Right-to-left_script

Re: Raygui – A simple and easy-to-use immediate-mode GUI library

#37
post #35

Earlier quoted context omitted.

Wait until you find out about HTML and the document object in Javascript

The evolution of HTML and CSS clearly shows that HTML isn't suited to describe a interface without massive hints to a rendering engine to manipulate it

You say that, but I have a really hard time making any native UI toolkit look how I want it to

Re: Raygui – A simple and easy-to-use immediate-mode GUI library

#38

Does it support RTL languages? My main problem with DearImgui is lack of RTL language support. I think one of the biggest factors which deter people from using immediate mode GUI is lack of support for many languages.

What languages?

I believe they’re referring to languages that read “Right To Left”

Re: Raygui – A simple and easy-to-use immediate-mode GUI library

#39

Earlier quoted context omitted.

What if you have stacked elements, or elements within elements. In code it's something weird like Box(button( Icon() )))

How is: Box( Button( Icon(...) ) ) Weirder than:

Now attach some callbacks.

With XML I'm attaching my callbacks via code while defining the UI elsewhere.

With pure code, I have to attach the callbacks directly to the object.

Theirs a reason you don't just use JavaScript to define React components

Re: Raygui – A simple and easy-to-use immediate-mode GUI library

#40
There has been a recent explosion of immediate-mode GUIs recently, but I'm skeptical that an immediate-mode solution can cover our GUI needs now and into the future.

High refresh rate screens are a reality so you only have 3-6ms to render each frame, as well as high resolution screens at 4k-8k. That's a lot of pixels to push with a CPU on every frame. As another comment points out we also need accessibility. I would generalize this need as "GUIs need to be reinterpretable", this need is not limited to those with disabilities and such a capability can be useful to anyone that wants to customize, automate, and integrate their digital tools.

Are immediate-mode GUIs up to the task? What is driving their authors to pursue this design? Why aren't they choosing a declarative design?

Post reply on HN