Expand description
text(...) & text_wrap(...) docs.
§Variants
text(...)non-wrapping text.text_wrap(...)wrapping text.
§Params
lita string literal.
You can also write this annotation as:
#[imgui(text("literal..."))]
which is a shorthand for text(lit = "literal...").
§Example
#[derive(imgui_ext::Gui)]
struct Example {
#[imgui(text_wrap("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc metus sem, facilisis hendrerit elementum et, egestas."),
separator(),
text("Input num:"),
slider(min = "-1.0", max = 1.0),
button(label = "Submit"))]
number: f32,
}§Result
