Skip to main content

Crate makara

Crate makara 

Source
Expand description

Makara is a bevy UI simplifer. Its main goal is to make it easy to build high performance GUI application using bevy engine.

§Example

fn on_button_click(click: On<Clicked>, mut text_q: TextQuery, mut router: ResMut<Router>) {
   if let Some(mut text) = text_q.find_by_id("my-text") {
       text.set_text("Hello mars");
   }
}

fn setup(mut commands: Commands) {
   commands.spawn(
       root_!([
           text_!("Hello earth", id: "my-text"),
           button_!("Click me"; on: on_button_click)
       ])
   );
}

Re-exports§

pub use prelude::*;

Modules§

colors
consts
Constant values used by Makara’s widgets.
events
Collection of events used by Makara’s widgets.
prelude
routers
Makara Routing System
styles
utils
widgets
Collection of built-in widgets provided by Makara.