Live data from Hacker News

Egui – An immediate mode GUI written in Rust

egui.rs

61–70 of 143 posts

Re: Egui – An immediate mode GUI written in Rust

#61

Am I the only one that has a problem with all non dom/html renderers that I can't copy the text on mobile? The same with flutter etc, it's such a regression in my eyes but nobody prioritizes it.

This is trivial to do in Flutter if the developer wants to: https://api.flutter.dev/flutter/material/SelectableText-clas...

Re: Egui – An immediate mode GUI written in Rust

#62
How is this "immediate mode"?

I see widgets that are added to a UI using .add()

       "You should put this widget in a ui with `ui.add(widget);"
https://github.com/emilk/egui/blob/master/crates/egui/src/wi...

There appears to be a fluent builder API for these widgets. Is that what makes it "immediate mode"?

Re: Egui – An immediate mode GUI written in Rust

#63

How is this "immediate mode"? I see widgets that are added to a UI using .add() "You should put this widget in a ui with `ui.add(widget);" https://github.com/emilk/egui/blob/master/crates/egui/src/wi... There appears to be a fluent builder API for these widgets. Is that what makes it "immediate mode"?

The logic is called every frame

Re: Egui – An immediate mode GUI written in Rust

#64

How is this "immediate mode"? I see widgets that are added to a UI using .add() "You should put this widget in a ui with `ui.add(widget);" https://github.com/emilk/egui/blob/master/crates/egui/src/wi... There appears to be a fluent builder API for these widgets. Is that what makes it "immediate mode"?

They go into a good amount of detail[1] as to what they mean by "immediate mode" (this is linked from one of the windows when you open the page).

[1] https://github.com/emilk/egui#why-immediate-mode

Re: Egui – An immediate mode GUI written in Rust

#65
post #37

Earlier quoted context omitted.

It also means worse accessibility, less introspection, automation, worse/impossible adblocking, etc.

> worse/impossible adblocking Obviously that's not a downside from a software developer perspective.

What you mean is from a capitalist perspective. Not all software developers are focused on exploiting their users.

Re: Egui – An immediate mode GUI written in Rust

#66

Demo pages like this are fun, and technically impressive when compiled to a browser environment. But I suffer from a lack of imagination so these widget demos don't really help me envision what an egui-powered app can do or might look like. Does anyone have any examples of fun things that use egui?

[https://truncate.town/](https://truncate.town/) is all egui (after the main menu)

Re: Egui – An immediate mode GUI written in Rust

#68
post #54
post #37

Earlier quoted context omitted.

It also means worse accessibility, less introspection, automation, worse/impossible adblocking, etc.

Selecting text can be useful, but it can also become its own usability problem. I recently created a touch interface using a websocket/browser based stack and one of the problem was that users kept selecting the text on buttons because they expected some action while holding the button.

https://caniuse.com/user-select-none + pointer-events + touch-action : )

Re: Egui – An immediate mode GUI written in Rust

#69

Am I the only one that has a problem with all non dom/html renderers that I can't copy the text on mobile? The same with flutter etc, it's such a regression in my eyes but nobody prioritizes it.

I summon Google Assistant and press the what's on my screen button, that one usually allows me to select text even when the apps don't.

Re: Egui – An immediate mode GUI written in Rust

#70

Am I the only one that has a problem with all non dom/html renderers that I can't copy the text on mobile? The same with flutter etc, it's such a regression in my eyes but nobody prioritizes it.

You generally can't copy text in native UIs unless the app author goes to extra effort to allow it. It's really the web that is the odd one out here because it was originally intended for documents.

> You generally can't copy text in native UIs

You mean mobile apps, right? With desktop UIs this has traditionally never been an issue.

Post reply on HN