[go: up one dir, main page]

egui 0.3.0

Simple, portable immediate mode GUI library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// The place for new widgets, and the bookkeeping required for layouts.
struct Region {
    min_rect: Rect,
    max_rect: Rect,

    /// This + spacing is all you need to figure out the cursor
    last_widget: Option<Rect>,

    /// Current strategy when choosing where to put next widget.
    /// horizontal, vertical etc.
    layout: Layout,
}

#[test]
fn foo() {
    let ui = Ui::test();
}