Git Product home page Git Product logo

Comments (2)

kettle11 avatar kettle11 commented on August 17, 2024

This crate is very work in progress (I'm surprised you even stumbled across it!) but it's a hybrid of immediate and retained.

The UI is created with an immediate mode style API. A button would be declared like the following:

if button(&toolbar, id!(), "Add Cube") {
    println!("Added a cube");
}

But an ID preserves the button widget's animation state across frames (like a retained library). I went with this approach because I like the speed of developer iteration possible with immediate mode UI's, but I'd also like nice animations and managing that state in an immediate way was a bit annoying.

While this library has a few really nice things going for it it still needs a bunch of work before I'm content with the architecture.

from kui.

dumblob avatar dumblob commented on August 17, 2024

I see, thanks.

Btw. if you'd wanted some more visibility for this project at some point (especially among potential contributors), I'd be more than happy to add this lib to https://github.com/Immediate-Mode-UI/ organization (it's not an organization per se - there are no rules and no duties - it's just a list of projects considering themself as some sort of immediate mode UI library/app/algorithm).

from kui.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.