Module macroquad::ui[][src]

Expand description

Immediate mode UI.

Spiritual successor of megaui library, but fully skinnable and configurable.

The UI entrypoint is root_ui() call.

root_ui().label(None, "hello megaui");
if root_ui().button(None, "Push me") {
   println!("pushed");
}

This will draw a label and a button one after each other right on top of the screen.

Re-exports

pub use crate::hash;

Modules

In-window drawing canvas for custom primitives like lines, rect and textures

Structs

Enums

Traits

Functions

Root UI. Widgets drawn with the root ui will be always presented at the end of the frame with a “default” camera. UI space would be a “default” screen space (0..screen_width(), 0..screen_height())

Type Definitions