Simple UI library written in Rust (backup/mirror) https://github.com/griffi-gh/hUI
Find a file
2024-03-25 02:05:26 +01:00
.assets wait it looks wrong 2024-02-28 17:01:43 +01:00
.vscode add settings 2024-03-06 20:34:28 +01:00
hui add 9 patch rendering 2024-03-25 01:59:13 +01:00
hui-examples add custom slider as an example 2024-03-25 02:05:26 +01:00
hui-glium update glam to 0.27 2024-03-24 21:00:46 +01:00
hui-winit update glam to 0.27 2024-03-24 21:00:46 +01:00
.gitignore Initial commit 2024-02-17 21:43:46 +01:00
Cargo.toml create hui-winit 2024-02-19 17:24:31 +01:00
LICENSE.txt Initial commit 2024-02-17 21:43:46 +01:00
README.md idk a bunch of changes i forgor to commit 2024-03-01 18:21:02 +01:00

hUI

Simple UI library for games and other interactive applications crates.io
license (Formerly kubi-ui)


Example

Container::default()
  .with_size(size!(100%, 50%))
  .with_align(Alignment::Center)
  .with_padding(5.)
  .with_gap(10.)
  .with_corner_radius(10.)
  .with_background(color::WHITE)
  .with_children(|ui| {
    Text::default()
      .with_text("Hello, world")
      .with_text_size(100)
      .with_color(color::BLACK)
      .add_child(ui);
    Container::default()
      .with_padding((10., 20.))
      .with_corner_radius((2.5, 30., 2.5, 2.5))
      .with_background(color::DARK_RED)
      .with_children(|ui| {
        Text::default()
          .with_text("Lorem ipsum dolor sit amet, consectetur adipiscing elit.")
          .with_text_size(24)
          .add_child(ui);
      })
      .add_child(ui);
  })
  .add_root(&mut hui, resolution);

Backends

Latest stable release:  crates.io

hui glium (render) winit (platform) wgpu (render)
master hui-glium = <master>
glium = "0.34"
hui-winit = <master>
winit = "0.29"
(support planned)
0.1.0-alpha.3 hui-glium = "0.1.0-alpha.3"
glium = "0.34"
N/A
0.1.0-alpha.2 hui-glium = "0.1.0-alpha.2"
glium = "0.34"
N/A
0.1.0-alpha.1 hui-glium = "0.1.0-alpha.1"
glium = "0.34"
N/A