popout 0.1.0

Small and simple modal popups powered by egui
Documentation

Popout

Small popup library

Introduction

This is a small library designed to do one thing: create modal popup windows. It was designed to be used for applications that have no persistant UI, but occasionally need to display a popup box to the user.

This crate is powered by egui and uses a custom backend built on wgpu and winit (based on this).

Examples

Check out the examples folder for more, but for a basic hello world:

use popout::{Dialog, LogicalSize};

fn main() {
    Dialog::new()
        .with_line("Hello, World")
        .with_button("Close")
        .with_size(LogicalSize::new(100, 50))
        .show()
        .unwrap();
}

This will display a dialog box to the user that contains the text "Hello, World" with a "Close" button beneath it. It is modal, so execution of main will stop on show until the window is closed.