9 ms·
A simple UI framework for Rust
- anonfunction 11y agoScreenshots would be helpful for a project like this.
- pdpi 11y agohttp://iup.sourceforge.net/en/screenshots.html http://iup.sourceforge.net/en/screenshots.html These are for the widget toolkit this project is based on, rather than from the project proper, but it's better than nothing I guess.
- amelius 11y agoCool, but why not build on top of the Servo engine? Or am I missing something?
- phn 11y agoBecause it is not web based.
- amelius 11y agoDoes that matter? I bet the core Servo libraries don't even deal with networking. And using Servo has obvious advantages such as a being a good render engine supporting incremental updates, probably being well-documented, well-tested, and conforming to well-known standards (yes, also used on the web, but does that matter really?)
- tedunangst 11y agoBecause it is not HTML based.
- phn 11y agoHonestly, it matters. Current web technologies aren't the end game solution for interfaces and, IMO, are pretty horrible to work with for that purpose. (Pretty beaten up topic by now, but lets take a moment to think for a second about vertical centering in HTML+CSS. /sigh </rant>) Still, my answer was just referring to the fact that this is not using web tech, and thus, not using servo or any other existing browser engine.
- marchelzo 11y agoflexbox + viewport units have made this better.
- fit2rule 11y agoCan anyone explain what IUP is and why its needed for this toolkit? Because it seems to me that a UI framework shouldn't come with a dependency on system-specific binaries, but that's just because I don't understand what it is, probably.
- tbirdz 11y agoIUP is a GUI Widget Toolkit.
- jguegant 11y agoOut of curiosity: why the author tends to write "self" at the end of the methods ?
- weavie 11y agoThis would be to enable method chaining so you can do stuff like: dialog.set_title("blah").set_size_pixels(100, 100); (note syntax may be out - I am not a Rust expert...)
- zimbatm 11y agoCouldn't one write a chain macro instead ? That way you don't have to rely on the library to return self. chain!(dialog, set_title("blah"), set_size_piels(100, 100));
- rylee 11y agoOkay, yes, you could do that, but the library itself provides this as its idiomatic way of doing things.
- escherize 11y agoThe macro is a better solution, since you can't rely on every library doing this kind of thing.
- skj 11y agoWhy wouldn't I want to do dialog.set_title("blah"); dialog.set_size_piels(100, 100); on two lines?
- tedunangst 11y agoBecause functional programming.
- yarper 11y agoRather than seeing more GTK bindings or lookalikes I personally am waiting for something like WPF/XAML or JavaFx/FXML to turn up. Anyone seen any projects like this for rust?
- steveklabnik 11y agoIt's not like that, but the other non-bindings toolkit that exists is Conrod: https://github.com/PistonDevelopers/conrod https://github.com/PistonDevelopers/conrod
- halosghost 11y agoCool, I didn't know about IUP at all! Rust has burned me a bit lately (muh 128-bit arithmetic, no!), but I still have a fair bit of nostalgia for Lua; I have a sneaking suspicion I will look to IUP for some of my planned projects. At the very least, cool project and I learned about another cool thing!
- outworlder 11y agoIUP is one of the friendliest toolkits to write bindings for.
- jessewmc 11y agoIUP is a little quirky and a pain to install, but really nice to work with.
- whoisthemachine 11y agoImpressive what people are building in little time with Rust!