Egui shows nothing

use egui::{CtxRef, Window, RawInput};
pub fn egui_test() {
    let mut ctx = CtxRef::default();
    Window::new("test").show(&ctx,|ui| {
fn main() {

It complies success.But It shows nothing.

How to fix it?

I'm not too familiar with egui so I can't tell you what the API you're calling there is supposed to do. I do know that for simple applications with egui using the eframe crate is a recommended option. For a small example look at here

The simple reason is that you don't have any egui integration layer hooked up to do the actual rendering.

If you just want to use egui to run a GUI app, you probably want the eframe template.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.