fn textbox<'a>(ui: &Ui<'a>, title: &'a ImStr, text: &'a ImStr) {
    show_window(ui, title, |framesize| {
        let text_size = ui.calc_text_size(text, false, 0f32);
        let text_pos = ((framesize.0 as f32 - text_size.x) / 2f32, (framesize.1 as f32 - text_size.y) / 2f32);
        ui.set_cursor_pos(text_pos);
        ui.text(text);
    });
}
/// Renders a full-window textbox
Renders a full-window textbox
Renders a full - window textbox
fn textbox<'a>(ui: &Ui<'a>, title: &'a ImStr, text: &'a ImStr) {
    show_window(ui, title, |framesize| {
        let text_size = ui.calc_text_size(text, false, 0f32);
        let text_pos = ((framesize.0 as f32 - text_size.x) / 2f32, (framesize.1 as f32 - text_size.y) / 2f32);
        ui.set_cursor_pos(text_pos);
        ui.text(text);
    });
}
fn textbox < ' a > ( ui : & Ui < ' a > , title : & ' a ImStr , text : & ' a ImStr ) { show_window ( ui , title , | framesize | { let text_size = ui . calc_text_size ( text , false , 0f32 ) ; let text_pos = ( ( framesize . 0 as f32 - text_size . x ) / 2f32 , ( framesize . 1 as f32 - text_size . y ) / 2f32 ) ; ui . set_cursor_pos ( text_pos ) ; ui . text ( text ) ; } ) ; }
Renders a full-window textbox
Renders a full - window textbox
ui
&Ui<'a>
title
&'a ImStr
text
&'a ImStr