Skip to content

A renderer agnostic GUI library

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
Unknown
LICENSE-MIT
Notifications You must be signed in to change notification settings

richardanaya/posterity_ukiyoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ukiyoe

docs.rs docs

A proof of concept GUI framework. Plugin your own renderer!

this library is super experimental and in progress

Example

use ukiyoe::*;

fn main() {
    let mut window = Window::new();
    let mut b1 = Button::new("a");
    let b2 = Button::new("b");
    let mut b3 = Button::new("c");
    let b4 = Button::new("d");
    let b5 = Button::new("e");
    b1.add_child(Box::new(b2));
    b3.add_child(Box::new(b4));
    b3.add_child(Box::new(b5));
    b1.add_child(Box::new(b3));
    window.set_content(Box::new(b1));
    loop {
        let event = window.next_event();
        match event {
            WindowEvent::Exit => return,
            _ => {},
        }
        window.render();
    }
}

Widgets

  • visualroot
  • label
  • textbox
  • panel
  • button

Layouts

  • Hbox
  • Vbox

Example Renderers

  • Curses
  • glfw + opengl4

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in ukiyoe by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Developer Notes

To build the code, you may need to:

# write me -- what needs to be installed using stock Fedora?

To run the linter, you may need to:

# write me -- what needs to be installed using stock Fedora?

To run examples, you may need to:

sudo dnf install ncurses-devel

About

A renderer agnostic GUI library

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
Unknown
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published