imgui

    Native MoonBit bindings for Dear ImGui public APIs

    imgui
    dear-imgui
    gui
    native
    ffi
    Download zip
    Version
    0.1.0
    License
    Apache-2.0 AND MIT
    Last updated
    17 days ago
    Downloads
    19

    No dependencies

    #moonbit-community/imgui

    MoonBit bindings for Dear ImGui on the native backend.

    The top-level moonbit-community/imgui package provides a scoped API for building immediate-mode UI from MoonBit. It is designed for application code: windows, menus, tabs, popups, tables, and widgets are used through trailing callbacks, and matching Dear ImGui scope close calls are handled automatically.

    #Example

    ///|
    fn main {
    let state = State::new()
    @starter.run_forever(title="MoonBit Dear ImGui") <| ui => {
    ui.window("MoonBit Dear ImGui", flags=[MenuBar], style=[
    Rounding(6.0),
    Text(White),
    ]) <| ui => {
    ui.menu_bar() <| ui => {
    ui.menu_item("Increment counter") <| () => {
    state.counter = state.counter + 1
    }
    }

    ui.text("Hello from MoonBit")
    ui.checkbox("Enabled", state.enabled) <| value => {
    state.enabled = value
    }
    ui.slider_float("Value", state.value, 0.0, 1.0) <| value => {
    state.value = value
    }
    ui.button("Run", style=[
    Background(Blue),
    HoveredBg(Cyan),
    ActiveBg(Green),
    Rounding(4.0),
    ]) <| () => { state.counter = state.counter + 1 }
    }
    }
    }

    #Scoped UI

    • ui.window(...) <| ui => { ... } opens a window and closes it automatically.
    • ui.main_menu_bar(...), ui.menu_bar(...), ui.tab_bar(...), ui.table(...), ui.popup(...), ui.popup_modal(...), ui.popup_context_item(...), ui.tooltip(...), ui.item_tooltip(...), ui.combo(...), ui.group(...), ui.disabled(...), ui.with_id(...), and ui.tree_node(...) close their scopes automatically.
    • Widgets with values pass the updated value directly to the callback: checkbox(...) <| value => { ... }, slider_float4(...) <| value => { ... }, drag_int_range2(...) <| value => { ... }, input_text(...) <| value => { ... }, and color_edit4(...) <| value => { ... }.
    • Buttons and menu items run their callback only when activated.
    • Composable flags are passed as enum arrays, for example flags=[@imgui.WindowFlag::MenuBar, @imgui.WindowFlag::NoSavedSettings].
    • Scoped style sheets are passed as enum arrays, for example style=[Text(White), Background(Hex("#223344")), SelectedBg(Cyan), SliderGrab(Blue), TextLink(Green), Rounding(6.0)].

    #Packages

    • moonbit-community/imgui: user-facing API.
    • moonbit-community/imgui/starter: one-function GLFW/OpenGL3 window starter.

    Low-level packages are available for advanced users who need direct backend or generated C API access:

    • moonbit-community/imgui/bindings: generated Dear ImGui C API bindings.
    • moonbit-community/imgui/bindings/glfw: GLFW platform backend bindings.
    • moonbit-community/imgui/bindings/opengl3: OpenGL3 renderer backend bindings.

    #Custom Backends

    Applications may provide their own window and renderer backend. A custom backend should create a context, queue input through @imgui.io(), start a new frame, render the MoonBit UI, and consume the returned draw data:

    let io = try! @imgui.io()
    io.add_focus_event(true)
    io.add_mouse_pos_event(x, y)
    io.add_mouse_button_event(@imgui.MouseButton::left(), down)
    io.add_mouse_wheel_event(wheel_x, wheel_y)
    io.add_key_event(A, down)
    io.add_input_text(text)

    try! @imgui.new_frame()
    try! render_ui(state)
    let draw_data = try! @imgui.render()
    renderer.render(draw_data)

    #Run The Window Example

    Initialize submodules first:

    git submodule update --init --recursive

    Install GLFW. The starter API is the same across platforms, but native window support depends on the host C/C++ toolchain and system libraries. The current starter has been smoke-tested on macOS. Ubuntu, native Windows, and MSYS2 MinGW are configured by the module-level --moonbit-unstable-prebuild script, but should be treated as expected support until they are validated on those hosts.

    macOS with Homebrew:

    brew install glfw

    Ubuntu:

    sudo apt install libglfw3-dev libgl1-mesa-dev

    Windows with MSYS2 MinGW:

    pacman -S mingw-w64-x86_64-python mingw-w64-x86_64-glfw

    Native Windows with Visual Studio Build Tools:

    1. Open a Developer PowerShell or Developer Command Prompt so cl is on PATH.
    2. Install Python so the prebuild config script can run.
    3. Make GLFW available to the linker. Either set GLFW_LIB_DIR to the directory containing glfw3.lib, or set VCPKG_ROOT after installing GLFW with vcpkg.

    The native Windows script branch emits MSVC-style flags and links against glfw3.lib, opengl32.lib, gdi32.lib, user32.lib, and shell32.lib.

    The prebuild config script is a Python script, so a Python runtime must be available to moon when building the starter or the window example.

    Then run the GLFW/OpenGL3 example:

    moon run examples/glfw_opengl3 --target native

    The example opens a native window and renders MoonBit-authored interactive UI: checkboxes, scalar and multi-component sliders, drag controls, text inputs, color editors, popups, a modal, context menus, menus, tabs, tables, columns, item/window state queries, and a secondary window.

    The module-level --moonbit-unstable-prebuild script emits native link configuration from the host toolchain. This keeps platform-specific flags out of examples and user code.

    #Validate

    moon check --target native moon test --target native

    Dear ImGui source is MIT licensed. Dear Bindings is MIT licensed. The MoonBit wrapper code in this repository is Apache-2.0 licensed.

    DrawData

    Raw draw data handle returned after rendering.

    ImGuiError

    pub(all) suberror ImGuiError {
    NoCurrentContext
    InvalidColor(String)
    } derive(Eq,
    Debug
    )

    Errors raised by the user-facing Dear ImGui wrapper.

    ImGuiError::equal

    fn ImGuiError::equal(ImGuiError, ImGuiError) -> Bool

    ImGuiError::not_equal

    fn ImGuiError::not_equal(x : ImGuiError, y : ImGuiError) -> Bool

    AnyItemState

    pub(all) struct AnyItemState {
    active : Bool
    hovered : Bool
    focused : Bool
    } derive(Eq,
    Debug
    )

    Aggregate state for all submitted items in the current frame.

    AnyItemState::equal

    AnyItemState::not_equal

    fn AnyItemState::not_equal(x : AnyItemState, y : AnyItemState) -> Bool

    ButtonFlag

    pub(all) enum ButtonFlag {
    MouseButtonLeft
    MouseButtonRight
    MouseButtonMiddle
    EnableNav
    AllowOverlap
    } derive(Eq,
    Debug
    )

    Composable ImGui invisible button flag.

    ButtonFlag::equal

    fn ButtonFlag::equal(ButtonFlag, ButtonFlag) -> Bool

    ButtonFlag::not_equal

    fn ButtonFlag::not_equal(x : ButtonFlag, y : ButtonFlag) -> Bool

    Color

    pub(all) enum Color {
    Rgb(Int, Int, Int)
    Rgba(Int, Int, Int, Float)
    Hex(String)
    White
    Black
    Transparent
    Red
    Green
    Blue
    Yellow
    Cyan
    Magenta
    Gray
    } derive(Eq,
    Debug
    )

    User-facing color value for scoped style sheets.

    Color::equal

    fn Color::equal(Color, Color) -> Bool

    Color::not_equal

    fn Color::not_equal(x : Color, y : Color) -> Bool

    Color::to_repr

    ColorEditFlag

    pub(all) enum ColorEditFlag {
    NoAlpha
    NoPicker
    NoOptions
    NoSmallPreview
    NoInputs
    NoTooltip
    NoLabel
    NoSidePreview
    NoDragDrop
    NoBorder
    NoColorMarkers
    AlphaOpaque
    AlphaNoBg
    AlphaPreviewHalf
    AlphaBar
    Hdr
    DisplayRgb
    DisplayHsv
    DisplayHex
    UInt8
    FloatMode
    PickerHueBar
    PickerHueWheel
    InputRgb
    InputHsv
    AlphaPreview
    } derive(Eq,
    Debug
    )

    Composable ImGui color edit flag.

    ColorEditFlag::equal

    ColorEditFlag::not_equal

    fn ColorEditFlag::not_equal(x : ColorEditFlag, y : ColorEditFlag) -> Bool

    ColumnState

    pub(all) struct ColumnState {
    index : Int
    count : Int
    width : Float
    offset : Float
    } derive(Eq,
    Debug
    )

    Old columns API state for the current column set.

    ColumnState::equal

    fn ColumnState::equal(ColumnState, ColumnState) -> Bool

    ColumnState::not_equal

    fn ColumnState::not_equal(x : ColumnState, y : ColumnState) -> Bool

    ComboFlag

    pub(all) enum ComboFlag {
    PopupAlignLeft
    HeightSmall
    HeightRegular
    HeightLarge
    HeightLargest
    NoArrowButton
    NoPreview
    WidthFitPreview
    } derive(Eq,
    Debug
    )

    Composable ImGui combo flag.

    ComboFlag::equal

    fn ComboFlag::equal(ComboFlag, ComboFlag) -> Bool

    ComboFlag::not_equal

    fn ComboFlag::not_equal(x : ComboFlag, y : ComboFlag) -> Bool

    ComboUi

    type ComboUi

    UI operations available inside a combo popup.

    ComboUi::selectable

    fn ComboUi::selectable(_self : ComboUi, label : String, selected? : Bool, flags? : Array[SelectableFlag], style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Cond

    ImGui condition value.

    Cond::always

    fn Cond::always() -> Cond

    Cond::appearing

    fn Cond::appearing() -> Cond

    Cond::equal

    fn Cond::equal(Cond, Cond) -> Bool

    Cond::first_use_ever

    fn Cond::first_use_ever() -> Cond

    Cond::none

    fn Cond::none() -> Cond

    Cond::not_equal

    fn Cond::not_equal(x : Cond, y : Cond) -> Bool

    Cond::once

    fn Cond::once() -> Cond

    Cond::to_repr

    Context

    type Context

    Owned Dear ImGui context.

    Context::create

    fn Context::create() -> Context

    Creates a Dear ImGui context and makes it current.

    Context::destroy

    fn Context::destroy(self : Context) -> Unit

    Destroys the native context.

    Context::make_current

    fn Context::make_current(self : Context) -> Unit

    Makes this context current.

    Dir

    ImGui direction identifier.

    Dir::down

    fn Dir::down() -> Dir

    Dir::equal

    fn Dir::equal(Dir, Dir) -> Bool

    Dir::left

    fn Dir::left() -> Dir

    Dir::none

    fn Dir::none() -> Dir

    Dir::not_equal

    fn Dir::not_equal(x : Dir, y : Dir) -> Bool

    Dir::right

    fn Dir::right() -> Dir

    Dir::to_repr

    Dir::up

    fn Dir::up() -> Dir

    Float2

    pub(all) struct Float2 {
    x : Float
    y : Float
    } derive(Eq,
    Debug
    )

    Two-component float value for scalar widgets.

    Float2::equal

    fn Float2::equal(Float2, Float2) -> Bool

    Float2::new

    fn Float2::new(x : Float, y : Float) -> Float2

    Float2::not_equal

    fn Float2::not_equal(x : Float2, y : Float2) -> Bool

    Float2::to_repr

    Float3

    pub(all) struct Float3 {
    x : Float
    y : Float
    z : Float
    } derive(Eq,
    Debug
    )

    Three-component float value for scalar widgets.

    Float3::equal

    fn Float3::equal(Float3, Float3) -> Bool

    Float3::new

    fn Float3::new(x : Float, y : Float, z : Float) -> Float3

    Float3::not_equal

    fn Float3::not_equal(x : Float3, y : Float3) -> Bool

    Float3::to_repr

    Float4

    pub(all) struct Float4 {
    x : Float
    y : Float
    z : Float
    w : Float
    } derive(Eq,
    Debug
    )

    Four-component float value for scalar widgets.

    Float4::equal

    fn Float4::equal(Float4, Float4) -> Bool

    Float4::new

    fn Float4::new(x : Float, y : Float, z : Float, w : Float) -> Float4

    Float4::not_equal

    fn Float4::not_equal(x : Float4, y : Float4) -> Bool

    Float4::to_repr

    FloatRange

    pub(all) struct FloatRange {
    min : Float
    max : Float
    } derive(Eq,
    Debug
    )

    Float range value for range drag widgets.

    FloatRange::equal

    fn FloatRange::equal(FloatRange, FloatRange) -> Bool

    FloatRange::new

    fn FloatRange::new(min : Float, max : Float) -> FloatRange

    FloatRange::not_equal

    fn FloatRange::not_equal(x : FloatRange, y : FloatRange) -> Bool

    FocusedFlag

    pub(all) enum FocusedFlag {
    ChildWindows
    RootWindow
    AnyWindow
    NoPopupHierarchy
    RootAndChildWindows
    } derive(Eq,
    Debug
    )

    Composable ImGui focused query flag.

    FocusedFlag::equal

    fn FocusedFlag::equal(FocusedFlag, FocusedFlag) -> Bool

    FocusedFlag::not_equal

    fn FocusedFlag::not_equal(x : FocusedFlag, y : FocusedFlag) -> Bool

    Font

    type Font

    Font handle.

    Font::is_null

    fn Font::is_null(self : Font) -> Bool

    HoveredFlag

    pub(all) enum HoveredFlag {
    ChildWindows
    RootWindow
    AnyWindow
    NoPopupHierarchy
    AllowWhenBlockedByPopup
    AllowWhenBlockedByActiveItem
    AllowWhenOverlappedByItem
    AllowWhenOverlappedByWindow
    AllowWhenDisabled
    NoNavOverride
    AllowWhenOverlapped
    RectOnly
    RootAndChildWindows
    ForTooltip
    Stationary
    DelayNone
    DelayShort
    DelayNormal
    NoSharedDelay
    } derive(Eq,
    Debug
    )

    Composable ImGui hovered query flag.

    HoveredFlag::equal

    fn HoveredFlag::equal(HoveredFlag, HoveredFlag) -> Bool

    HoveredFlag::not_equal

    fn HoveredFlag::not_equal(x : HoveredFlag, y : HoveredFlag) -> Bool

    InputTextFlag

    pub(all) enum InputTextFlag {
    CharsDecimal
    CharsHexadecimal
    CharsUppercase
    CharsNoBlank
    AutoSelectAll
    EnterReturnsTrue
    CallbackCompletion
    CallbackHistory
    CallbackAlways
    CallbackCharFilter
    AllowTabInput
    CtrlEnterForNewLine
    NoHorizontalScroll
    AlwaysOverwrite
    ReadOnly
    Password
    NoUndoRedo
    CharsScientific
    CallbackResize
    CallbackEdit
    EscapeClearsAll
    DisplayEmptyRefVal
    ParseEmptyRefVal
    ElideLeft
    WordWrap
    } derive(Eq,
    Debug
    )

    Composable ImGui input text flag.

    InputTextFlag::equal

    InputTextFlag::not_equal

    fn InputTextFlag::not_equal(x : InputTextFlag, y : InputTextFlag) -> Bool

    Int2

    pub(all) struct Int2 {
    x : Int
    y : Int
    } derive(Eq,
    Debug
    )

    Two-component integer value for scalar widgets.

    Int2::equal

    fn Int2::equal(Int2, Int2) -> Bool

    Int2::new

    fn Int2::new(x : Int, y : Int) -> Int2

    Int2::not_equal

    fn Int2::not_equal(x : Int2, y : Int2) -> Bool

    Int2::to_repr

    Int3

    pub(all) struct Int3 {
    x : Int
    y : Int
    z : Int
    } derive(Eq,
    Debug
    )

    Three-component integer value for scalar widgets.

    Int3::equal

    fn Int3::equal(Int3, Int3) -> Bool

    Int3::new

    fn Int3::new(x : Int, y : Int, z : Int) -> Int3

    Int3::not_equal

    fn Int3::not_equal(x : Int3, y : Int3) -> Bool

    Int3::to_repr

    Int4

    pub(all) struct Int4 {
    x : Int
    y : Int
    z : Int
    w : Int
    } derive(Eq,
    Debug
    )

    Four-component integer value for scalar widgets.

    Int4::equal

    fn Int4::equal(Int4, Int4) -> Bool

    Int4::new

    fn Int4::new(x : Int, y : Int, z : Int, w : Int) -> Int4

    Int4::not_equal

    fn Int4::not_equal(x : Int4, y : Int4) -> Bool

    Int4::to_repr

    IntRange

    pub(all) struct IntRange {
    min : Int
    max : Int
    } derive(Eq,
    Debug
    )

    Integer range value for range drag widgets.

    IntRange::equal

    fn IntRange::equal(IntRange, IntRange) -> Bool

    IntRange::new

    fn IntRange::new(min : Int, max : Int) -> IntRange

    IntRange::not_equal

    fn IntRange::not_equal(x : IntRange, y : IntRange) -> Bool

    IntRange::to_repr

    type Io

    Current ImGui IO handle.

    Io::add_focus_event

    fn Io::add_focus_event(self : Io, focused : Bool) -> Unit

    Queues an application focus change event.

    Io::add_input_character

    fn Io::add_input_character(self : Io, codepoint : UInt) -> Unit

    Queues one Unicode input character by codepoint.

    Io::add_input_character_utf16

    fn Io::add_input_character_utf16(self : Io, code_unit : UInt) -> Unit

    Queues one UTF-16 input code unit, including surrogate pairs.

    Io::add_input_text

    fn Io::add_input_text(self : Io, value : String) -> Unit

    Queues UTF-8 text input converted from a MoonBit string.

    Io::add_key_analog_event

    fn Io::add_key_analog_event(self : Io, key : Key, down : Bool, value : Float) -> Unit

    Queues a translated analog key event, typically for gamepad controls.

    Io::add_key_event

    fn Io::add_key_event(self : Io, key : Key, down : Bool) -> Unit

    Queues a translated key press or release event.

    Io::add_mouse_button_event

    fn Io::add_mouse_button_event(self : Io, button : MouseButton, down : Bool) -> Unit

    Queues a mouse button press or release event.

    Io::add_mouse_pos_event

    fn Io::add_mouse_pos_event(self : Io, x : Float, y : Float) -> Unit

    Queues a mouse position event in display coordinates.

    Io::add_mouse_source_event

    fn Io::add_mouse_source_event(self : Io, source : MouseSource) -> Unit

    Queues a mouse source change event.

    Io::add_mouse_wheel_event

    fn Io::add_mouse_wheel_event(self : Io, x : Float, y : Float) -> Unit

    Queues a mouse wheel event.

    Io::clear_events_queue

    fn Io::clear_events_queue(self : Io) -> Unit

    Clears queued backend events.

    Io::clear_input_keys

    fn Io::clear_input_keys(self : Io) -> Unit

    Clears keyboard, gamepad, and current-frame text input state.

    Io::clear_input_mouse

    fn Io::clear_input_mouse(self : Io) -> Unit

    Clears current mouse input state.

    Io::set_app_accepting_events

    fn Io::set_app_accepting_events(self : Io, accepting : Bool) -> Unit

    Enables or disables queuing of backend input events.

    Io::set_key_event_native_data

    fn Io::set_key_event_native_data(self : Io, key : Key, native_keycode : Int, native_scancode : Int, native_legacy_index? : Int) -> Unit

    Associates native backend key data with a translated key event.

    ItemFlag

    pub(all) enum ItemFlag {
    NoTabStop
    NoNav
    NoNavDefaultFocus
    ButtonRepeat
    AutoClosePopups
    AllowDuplicateId
    Disabled
    } derive(Eq,
    Debug
    )

    Composable ImGui item flag.

    ItemFlag::equal

    fn ItemFlag::equal(ItemFlag, ItemFlag) -> Bool

    ItemFlag::not_equal

    fn ItemFlag::not_equal(x : ItemFlag, y : ItemFlag) -> Bool

    ItemFlag::to_repr

    ItemState

    pub(all) struct ItemState {
    active : Bool
    hovered : Bool
    focused : Bool
    clicked : Bool
    edited : Bool
    activated : Bool
    deactivated : Bool
    deactivated_after_edit : Bool
    toggled_open : Bool
    visible : Bool
    } derive(Eq,
    Debug
    )

    State for the last submitted item.

    ItemState::equal

    fn ItemState::equal(ItemState, ItemState) -> Bool

    ItemState::not_equal

    fn ItemState::not_equal(x : ItemState, y : ItemState) -> Bool

    Key

    pub(all) enum Key {
    NoKey
    Tab
    LeftArrow
    RightArrow
    UpArrow
    DownArrow
    PageUp
    PageDown
    Home
    End
    Insert
    Delete
    Backspace
    Space
    Enter
    Escape
    LeftCtrl
    LeftShift
    LeftAlt
    LeftSuper
    RightCtrl
    RightShift
    RightAlt
    RightSuper
    Menu
    Num0
    Num1
    Num2
    Num3
    Num4
    Num5
    Num6
    Num7
    Num8
    Num9
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    N
    O
    P
    Q
    R
    S
    T
    U
    V
    W
    X
    Y
    Z
    F1
    F2
    F3
    F4
    F5
    F6
    F7
    F8
    F9
    F10
    F11
    F12
    F13
    F14
    F15
    F16
    F17
    F18
    F19
    F20
    F21
    F22
    F23
    F24
    Apostrophe
    Comma
    Minus
    Period
    Slash
    Semicolon
    Equal
    LeftBracket
    Backslash
    RightBracket
    GraveAccent
    CapsLock
    ScrollLock
    NumLock
    PrintScreen
    Pause
    Keypad0
    Keypad1
    Keypad2
    Keypad3
    Keypad4
    Keypad5
    Keypad6
    Keypad7
    Keypad8
    Keypad9
    KeypadDecimal
    KeypadDivide
    KeypadMultiply
    KeypadSubtract
    KeypadAdd
    KeypadEnter
    KeypadEqual
    AppBack
    AppForward
    Oem102
    GamepadStart
    GamepadBack
    GamepadFaceLeft
    GamepadFaceRight
    GamepadFaceUp
    GamepadFaceDown
    GamepadDpadLeft
    GamepadDpadRight
    GamepadDpadUp
    GamepadDpadDown
    GamepadL1
    GamepadR1
    GamepadL2
    GamepadR2
    GamepadL3
    GamepadR3
    GamepadLStickLeft
    GamepadLStickRight
    GamepadLStickUp
    GamepadLStickDown
    GamepadRStickLeft
    GamepadRStickRight
    GamepadRStickUp
    GamepadRStickDown
    MouseLeft
    MouseRight
    MouseMiddle
    MouseX1
    MouseX2
    MouseWheelX
    MouseWheelY
    ModCtrl
    ModShift
    ModAlt
    ModSuper
    ModShortcut
    } derive(Eq,
    Debug
    )

    Dear ImGui translated key identifier for backend input events.

    Key::equal

    fn Key::equal(Key, Key) -> Bool

    Key::not_equal

    fn Key::not_equal(x : Key, y : Key) -> Bool

    Key::to_repr

    type MenuBarUi

    UI operations available inside a menu bar.
    fn MenuBarUi::menu(_self : MenuBarUi, label : String, enabled? : Bool, style? : Array[StyleSheet], body : (MenuUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens a menu from a menu bar and closes it automatically.
    fn MenuBarUi::menu_item(_self : MenuBarUi, label : String, selected? : Bool, enabled? : Bool, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body when a menu item is activated.
    type MenuUi

    UI operations available inside a menu.
    fn MenuUi::menu_item(_self : MenuUi, label : String, selected? : Bool, enabled? : Bool, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body when a menu item is activated.

    MouseButton

    type MouseButton derive(Eq,
    Debug
    )

    ImGui mouse button identifier.

    MouseButton::equal

    fn MouseButton::equal(MouseButton, MouseButton) -> Bool

    MouseButton::left

    fn MouseButton::left() -> MouseButton

    MouseButton::middle

    fn MouseButton::middle() -> MouseButton

    MouseButton::not_equal

    fn MouseButton::not_equal(x : MouseButton, y : MouseButton) -> Bool

    MouseButton::right

    fn MouseButton::right() -> MouseButton

    MouseSource

    pub(all) enum MouseSource {
    Mouse
    TouchScreen
    Pen
    } derive(Eq,
    Debug
    )

    Dear ImGui mouse source identifier for backend input events.

    MouseSource::equal

    fn MouseSource::equal(MouseSource, MouseSource) -> Bool

    MouseSource::not_equal

    fn MouseSource::not_equal(x : MouseSource, y : MouseSource) -> Bool

    PopupFlag

    pub(all) enum PopupFlag {
    MouseButtonLeft
    MouseButtonRight
    MouseButtonMiddle
    NoReopen
    NoOpenOverExistingPopup
    NoOpenOverItems
    AnyPopId
    AnyPopupLevel
    AnyPopup
    } derive(Eq,
    Debug
    )

    Composable ImGui popup flag.

    PopupFlag::equal

    fn PopupFlag::equal(PopupFlag, PopupFlag) -> Bool

    PopupFlag::not_equal

    fn PopupFlag::not_equal(x : PopupFlag, y : PopupFlag) -> Bool

    PopupUi

    type PopupUi

    UI operations available inside a popup.

    PopupUi::button

    fn PopupUi::button(_self : PopupUi, label : String, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiError

    PopupUi::close

    fn PopupUi::close(_self : PopupUi) -> Unit raise ImGuiError

    PopupUi::separator

    fn PopupUi::separator(_self : PopupUi, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    PopupUi::text

    fn PopupUi::text(_self : PopupUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    ScrollState

    pub(all) struct ScrollState {
    x : Float
    y : Float
    max_x : Float
    max_y : Float
    } derive(Eq,
    Debug
    )

    Scroll state for the current window.

    ScrollState::equal

    fn ScrollState::equal(ScrollState, ScrollState) -> Bool

    ScrollState::not_equal

    fn ScrollState::not_equal(x : ScrollState, y : ScrollState) -> Bool

    SelectableFlag

    pub(all) enum SelectableFlag {
    NoAutoClosePopups
    SpanAllColumns
    AllowDoubleClick
    Disabled
    AllowOverlap
    Highlight
    SelectOnNav
    DontClosePopups
    } derive(Eq,
    Debug
    )

    Composable ImGui selectable flag.

    SelectableFlag::equal

    SelectableFlag::not_equal

    fn SelectableFlag::not_equal(x : SelectableFlag, y : SelectableFlag) -> Bool

    SliderFlag

    pub(all) enum SliderFlag {
    Logarithmic
    NoRoundToFormat
    NoInput
    WrapAround
    ClampOnInput
    ClampZeroRange
    NoSpeedTweaks
    ColorMarkers
    AlwaysClamp
    } derive(Eq,
    Debug
    )

    Composable ImGui slider and drag flag.

    SliderFlag::equal

    fn SliderFlag::equal(SliderFlag, SliderFlag) -> Bool

    SliderFlag::not_equal

    fn SliderFlag::not_equal(x : SliderFlag, y : SliderFlag) -> Bool

    Style

    type Style

    Current ImGui style handle.

    Style::colors_classic

    fn Style::colors_classic(self : Style) -> Unit

    Style::colors_dark

    fn Style::colors_dark(self : Style) -> Unit

    Style::colors_light

    fn Style::colors_light(self : Style) -> Unit

    Style::scale_all_sizes

    fn Style::scale_all_sizes(self : Style, scale : Float) -> Unit

    StyleSheet

    pub(all) enum StyleSheet {
    Text(Color)
    TextDisabled(Color)
    Background(Color)
    HoveredBg(Color)
    ActiveBg(Color)
    CollapsedBg(Color)
    SelectedBg(Color)
    DimmedBg(Color)
    DimmedSelectedBg(Color)
    DropTargetBg(Color)
    ScrollbarGrab(Color)
    ScrollbarGrabHovered(Color)
    ScrollbarGrabActive(Color)
    SliderGrab(Color)
    SliderGrabActive(Color)
    ResizeGrip(Color)
    ResizeGripHovered(Color)
    ResizeGripActive(Color)
    BorderShadow(Color)
    Separator(Color)
    SeparatorHovered(Color)
    SeparatorActive(Color)
    CheckMark(Color)
    TabSelectedOverline(Color)
    TabDimmedSelectedOverline(Color)
    PlotLines(Color)
    PlotLinesHovered(Color)
    PlotHistogram(Color)
    PlotHistogramHovered(Color)
    TextLink(Color)
    TreeLines(Color)
    DragDropTarget(Color)
    UnsavedMarker(Color)
    NavCursor(Color)
    NavWindowingHighlight(Color)
    NavWindowingDimBackground(Color)
    ModalWindowDimBackground(Color)
    InputTextCursor(Color)
    Border(Color)
    Alpha(Float)
    DisabledAlpha(Float)
    Rounding(Float)
    BorderSize(Float)
    IndentSpacing(Float)
    ScrollbarSize(Float)
    ScrollbarPadding(Float)
    GrabMinSize(Float)
    TabMinWidthBase(Float)
    TabMinWidthShrink(Float)
    TabBarBorderSize(Float)
    TabBarOverlineSize(Float)
    TableAngledHeadersAngle(Float)
    TreeLinesSize(Float)
    SeparatorSize(Float)
    SeparatorTextBorderSize(Float)
    } derive(Eq,
    Debug
    )

    Scoped, inheritable style entries applied while a UI callback runs.

    StyleSheet::equal

    fn StyleSheet::equal(StyleSheet, StyleSheet) -> Bool

    StyleSheet::not_equal

    fn StyleSheet::not_equal(x : StyleSheet, y : StyleSheet) -> Bool

    TabBarFlag

    pub(all) enum TabBarFlag {
    Reorderable
    AutoSelectNewTabs
    TabListPopupButton
    NoCloseWithMiddleMouseButton
    NoTabListScrollingButtons
    NoTooltip
    DrawSelectedOverline
    FittingPolicyMixed
    FittingPolicyShrink
    FittingPolicyScroll
    FittingPolicyResizeDown
    } derive(Eq,
    Debug
    )

    Composable ImGui tab bar flag.

    TabBarFlag::equal

    fn TabBarFlag::equal(TabBarFlag, TabBarFlag) -> Bool

    TabBarFlag::not_equal

    fn TabBarFlag::not_equal(x : TabBarFlag, y : TabBarFlag) -> Bool

    TabBarUi

    type TabBarUi

    UI operations available inside a tab bar.

    TabBarUi::tab_item

    fn TabBarUi::tab_item(_self : TabBarUi, label : String, flags? : Array[TabItemFlag], style? : Array[StyleSheet], body : (TabItemUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens a tab item and closes it automatically.

    TabBarUi::tab_item_open

    fn TabBarUi::tab_item_open(_self : TabBarUi, label : String, open :
    Ref
    [Bool], flags? : Array[TabItemFlag], style? : Array[StyleSheet], body : (TabItemUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens a closeable tab item. Updates open when Dear ImGui closes the tab through its close button.

    TabItemFlag

    pub(all) enum TabItemFlag {
    UnsavedDocument
    SetSelected
    NoCloseWithMiddleMouseButton
    NoPushId
    NoTooltip
    NoReorder
    Leading
    Trailing
    NoAssumedClosure
    } derive(Eq,
    Debug
    )

    Composable ImGui tab item flag.

    TabItemFlag::equal

    fn TabItemFlag::equal(TabItemFlag, TabItemFlag) -> Bool

    TabItemFlag::not_equal

    fn TabItemFlag::not_equal(x : TabItemFlag, y : TabItemFlag) -> Bool

    TabItemUi

    type TabItemUi

    UI operations available inside a tab item.

    TabItemUi::separator

    fn TabItemUi::separator(_self : TabItemUi, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    Adds a separator inside a tab item.

    TabItemUi::table

    fn TabItemUi::table(_self : TabItemUi, name : String, columns : Int, flags? : Array[TableFlag], style? : Array[StyleSheet], body : (TableUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens a table inside a tab item and closes it automatically.

    TabItemUi::text

    fn TabItemUi::text(_self : TabItemUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    Emits text inside a tab item.

    TableBgTarget

    type TableBgTarget derive(Eq,
    Debug
    )

    ImGui table background target.

    TableBgTarget::cell_bg

    fn TableBgTarget::cell_bg() -> TableBgTarget

    TableBgTarget::equal

    TableBgTarget::none

    TableBgTarget::not_equal

    fn TableBgTarget::not_equal(x : TableBgTarget, y : TableBgTarget) -> Bool

    TableBgTarget::row_bg0

    fn TableBgTarget::row_bg0() -> TableBgTarget

    TableBgTarget::row_bg1

    fn TableBgTarget::row_bg1() -> TableBgTarget

    TableColumnFlag

    pub(all) enum TableColumnFlag {
    Disabled
    DefaultHide
    DefaultSort
    WidthStretch
    WidthFixed
    NoResize
    NoReorder
    NoHide
    NoClip
    NoSort
    NoSortAscending
    NoSortDescending
    NoHeaderLabel
    NoHeaderWidth
    PreferSortAscending
    PreferSortDescending
    IndentEnable
    IndentDisable
    AngledHeader
    IsEnabled
    IsVisible
    IsSorted
    IsHovered
    } derive(Eq,
    Debug
    )

    Composable ImGui table column flag.

    TableColumnFlag::equal

    TableColumnFlag::not_equal

    fn TableColumnFlag::not_equal(x : TableColumnFlag, y : TableColumnFlag) -> Bool

    TableFlag

    pub(all) enum TableFlag {
    Resizable
    Reorderable
    Hideable
    Sortable
    NoSavedSettings
    ContextMenuInBody
    Borders
    RowBg
    BordersInnerH
    BordersOuterH
    BordersInnerV
    BordersOuterV
    BordersH
    BordersV
    BordersInner
    BordersOuter
    NoBordersInBody
    NoBordersInBodyUntilResize
    SizingFixedFit
    SizingFixedSame
    SizingStretchProp
    SizingStretchSame
    NoHostExtendX
    NoHostExtendY
    NoKeepColumnsVisible
    PreciseWidths
    NoClip
    PadOuterX
    NoPadOuterX
    NoPadInnerX
    ScrollX
    ScrollY
    SortMulti
    SortTristate
    HighlightHoveredColumn
    } derive(Eq,
    Debug
    )

    Composable ImGui table flag.

    TableFlag::equal

    fn TableFlag::equal(TableFlag, TableFlag) -> Bool

    TableFlag::not_equal

    fn TableFlag::not_equal(x : TableFlag, y : TableFlag) -> Bool

    TableRowFlag

    pub(all) enum TableRowFlag {
    Headers
    } derive(Eq,
    Debug
    )

    Composable ImGui table row flag.

    TableRowFlag::equal

    TableRowFlag::not_equal

    fn TableRowFlag::not_equal(x : TableRowFlag, y : TableRowFlag) -> Bool

    TableUi

    type TableUi

    UI operations available inside a table.

    TableUi::angled_headers_row

    fn TableUi::angled_headers_row(_self : TableUi) -> Unit raise ImGuiError

    Emits an angled table headers row.

    TableUi::column_count

    fn TableUi::column_count(_self : TableUi) -> Int raise ImGuiError

    TableUi::column_has_flag

    fn TableUi::column_has_flag(_self : TableUi, column : Int, flag : TableColumnFlag) -> Bool raise ImGuiError

    TableUi::column_index

    fn TableUi::column_index(_self : TableUi) -> Int raise ImGuiError

    TableUi::header

    fn TableUi::header(_self : TableUi, label : String) -> Unit raise ImGuiError

    Emits a table header cell.

    TableUi::headers_row

    fn TableUi::headers_row(_self : TableUi) -> Unit raise ImGuiError

    Emits a table headers row.

    TableUi::hovered_column

    fn TableUi::hovered_column(_self : TableUi) -> Int raise ImGuiError

    TableUi::next_column

    fn TableUi::next_column(_self : TableUi) -> Bool raise ImGuiError

    Moves to the next table column.

    TableUi::next_row

    fn TableUi::next_row(_self : TableUi, flags? : Array[TableRowFlag], min_height? : Float) -> Unit raise ImGuiError

    Starts a new table row.

    TableUi::row_index

    fn TableUi::row_index(_self : TableUi) -> Int raise ImGuiError

    TableUi::selectable

    fn TableUi::selectable(_self : TableUi, label : String, selected? : Bool, flags? : Array[SelectableFlag], style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body when a selectable item inside a table is activated.

    TableUi::set_bg_color

    fn TableUi::set_bg_color(_self : TableUi, target : TableBgTarget, color : Color, column? : Int) -> Unit raise ImGuiError

    Sets a table background color.

    TableUi::set_column_enabled

    fn TableUi::set_column_enabled(_self : TableUi, column : Int, enabled : Bool) -> Unit raise ImGuiError

    Enables or disables a table column.

    TableUi::set_column_index

    fn TableUi::set_column_index(_self : TableUi, column : Int) -> Bool raise ImGuiError

    Sets the current table column.

    TableUi::setup_column

    fn TableUi::setup_column(_self : TableUi, label : String, flags? : Array[TableColumnFlag], init_width_or_weight? : Float, user_id? : UInt) -> Unit raise ImGuiError

    Defines a table column.

    TableUi::setup_scroll_freeze

    fn TableUi::setup_scroll_freeze(_self : TableUi, columns : Int, rows : Int) -> Unit raise ImGuiError

    Freezes columns and rows when scrolling.

    TableUi::text

    fn TableUi::text(_self : TableUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    Emits text inside a table.

    TooltipUi

    type TooltipUi

    UI operations available inside a tooltip.

    TooltipUi::text

    fn TooltipUi::text(_self : TooltipUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    TreeNodeFlag

    pub(all) enum TreeNodeFlag {
    Selected
    Framed
    AllowOverlap
    NoTreePushOnOpen
    NoAutoOpenOnLog
    DefaultOpen
    OpenOnDoubleClick
    OpenOnArrow
    Leaf
    Bullet
    FramePadding
    SpanAvailWidth
    SpanFullWidth
    SpanLabelWidth
    SpanAllColumns
    LabelSpanAllColumns
    NavLeftJumpsToParent
    CollapsingHeader
    DrawLinesNone
    DrawLinesFull
    DrawLinesToNodes
    NavLeftJumpsBackHere
    SpanTextWidth
    } derive(Eq,
    Debug
    )

    Composable ImGui tree node flag.

    TreeNodeFlag::equal

    TreeNodeFlag::not_equal

    fn TreeNodeFlag::not_equal(x : TreeNodeFlag, y : TreeNodeFlag) -> Bool

    TreeNodeUi

    type TreeNodeUi

    UI operations available inside a tree node.

    TreeNodeUi::bullet_text

    fn TreeNodeUi::bullet_text(_self : TreeNodeUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    TreeNodeUi::text

    fn TreeNodeUi::text(_self : TreeNodeUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    type Ui

    Root UI builder for scoped, callback-style Dear ImGui calls.

    Ui::main_menu_bar

    fn Ui::main_menu_bar(_self : Ui, style? : Array[StyleSheet], body : (MenuBarUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens the main menu bar and closes it automatically.

    Ui::window

    fn Ui::window(_self : Ui, title : String, flags? : Array[WindowFlag], style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens a window, runs body when visible, and always closes the ImGui scope.

    Vec4

    pub(all) struct Vec4 {
    x : Float
    y : Float
    z : Float
    w : Float
    } derive(Eq,
    Debug
    )

    RGBA color value.

    Vec4::equal

    fn Vec4::equal(Vec4, Vec4) -> Bool

    Vec4::new

    fn Vec4::new(x : Float, y : Float, z : Float, w : Float) -> Vec4

    Vec4::not_equal

    fn Vec4::not_equal(x : Vec4, y : Vec4) -> Bool

    Vec4::rgba

    fn Vec4::rgba(r : Float, g : Float, b : Float, a : Float) -> Vec4

    Vec4::to_repr

    Vec4::transparent

    fn Vec4::transparent() -> Vec4

    Vec4::white

    fn Vec4::white() -> Vec4

    WindowFlag

    pub(all) enum WindowFlag {
    NoTitleBar
    NoResize
    NoMove
    NoScrollbar
    MenuBar
    AlwaysAutoResize
    NoScrollWithMouse
    NoCollapse
    NoBackground
    NoSavedSettings
    NoMouseInputs
    HorizontalScrollbar
    NoFocusOnAppearing
    NoBringToFrontOnFocus
    AlwaysVerticalScrollbar
    AlwaysHorizontalScrollbar
    NoNavInputs
    NoNavFocus
    UnsavedDocument
    NoNav
    NoDecoration
    NoInputs
    } derive(Eq,
    Debug
    )

    Composable ImGui window flag.

    WindowFlag::equal

    fn WindowFlag::equal(WindowFlag, WindowFlag) -> Bool

    WindowFlag::not_equal

    fn WindowFlag::not_equal(x : WindowFlag, y : WindowFlag) -> Bool

    WindowState

    pub(all) struct WindowState {
    appearing : Bool
    collapsed : Bool
    focused : Bool
    hovered : Bool
    } derive(Eq,
    Debug
    )

    State for the current window.

    WindowState::equal

    fn WindowState::equal(WindowState, WindowState) -> Bool

    WindowState::not_equal

    fn WindowState::not_equal(x : WindowState, y : WindowState) -> Bool

    WindowUi

    type WindowUi

    UI operations available inside a window.

    WindowUi::align_text_to_frame_padding

    fn WindowUi::align_text_to_frame_padding(_self : WindowUi) -> Unit raise ImGuiError

    WindowUi::any_item_state

    fn WindowUi::any_item_state(_self : WindowUi) -> AnyItemState raise ImGuiError

    Returns aggregate state for submitted items in the current frame.

    WindowUi::arrow_button

    fn WindowUi::arrow_button(_self : WindowUi, label : String, direction : Dir, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body when an arrow button is activated.

    WindowUi::bullet

    fn WindowUi::bullet(_self : WindowUi, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    Emits a bullet marker.

    WindowUi::bullet_text

    fn WindowUi::bullet_text(_self : WindowUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    Emits bullet text.

    WindowUi::button

    fn WindowUi::button(_self : WindowUi, label : String, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body when the button is activated.

    WindowUi::button_repeat

    fn WindowUi::button_repeat(_self : WindowUi, repeat : Bool, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Pushes button repeat behavior and pops it automatically.

    WindowUi::calc_item_width

    fn WindowUi::calc_item_width(_self : WindowUi) -> Float raise ImGuiError

    WindowUi::checkbox

    fn WindowUi::checkbox(_self : WindowUi, label : String, checked : Bool, style? : Array[StyleSheet], body : (Bool) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated checked value when the checkbox changes.

    WindowUi::collapsing_header

    fn WindowUi::collapsing_header(_self : WindowUi, label : String, flags? : Array[TreeNodeFlag], style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body when a collapsing header is open.

    WindowUi::collapsing_header_open

    fn WindowUi::collapsing_header_open(_self : WindowUi, label : String, open :
    Ref
    [Bool], flags? : Array[TreeNodeFlag], style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body when a closeable collapsing header is open. Updates open when Dear ImGui closes the header through its close button.

    WindowUi::color_edit3

    fn WindowUi::color_edit3(_self : WindowUi, label : String, color : Vec4, flags? : Array[ColorEditFlag], style? : Array[StyleSheet], body : (Vec4) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated RGB color.

    WindowUi::color_edit4

    fn WindowUi::color_edit4(_self : WindowUi, label : String, color : Vec4, flags? : Array[ColorEditFlag], style? : Array[StyleSheet], body : (Vec4) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated RGBA color.

    WindowUi::color_picker3

    fn WindowUi::color_picker3(_self : WindowUi, label : String, color : Vec4, flags? : Array[ColorEditFlag], style? : Array[StyleSheet], body : (Vec4) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated RGB color from a color picker.

    WindowUi::color_picker4

    fn WindowUi::color_picker4(_self : WindowUi, label : String, color : Vec4, flags? : Array[ColorEditFlag], style? : Array[StyleSheet], body : (Vec4) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated RGBA color from a color picker.

    WindowUi::column_state

    fn WindowUi::column_state(_self : WindowUi, column? : Int) -> ColumnState raise ImGuiError

    Returns state for an old columns layout column.

    WindowUi::columns

    fn WindowUi::columns(_self : WindowUi, count : Int, border? : Bool, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens an old columns layout and restores one column automatically.

    WindowUi::combo

    fn WindowUi::combo(_self : WindowUi, label : String, preview : String, flags? : Array[ComboFlag], style? : Array[StyleSheet], body : (ComboUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens and closes a combo popup automatically when active.

    WindowUi::cursor_pos_x

    fn WindowUi::cursor_pos_x(_self : WindowUi) -> Float raise ImGuiError

    WindowUi::cursor_pos_y

    fn WindowUi::cursor_pos_y(_self : WindowUi) -> Float raise ImGuiError

    WindowUi::disabled

    fn WindowUi::disabled(_self : WindowUi, disabled? : Bool, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Starts a disabled scope and closes it automatically.

    WindowUi::drag_float

    fn WindowUi::drag_float(_self : WindowUi, label : String, value : Float, speed? : Float, min? : Float, max? : Float, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Float) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated value when the drag control changes.

    WindowUi::drag_float2

    fn WindowUi::drag_float2(_self : WindowUi, label : String, value : Float2, speed? : Float, min? : Float, max? : Float, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Float2) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated two-component float value.

    WindowUi::drag_float3

    fn WindowUi::drag_float3(_self : WindowUi, label : String, value : Float3, speed? : Float, min? : Float, max? : Float, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Float3) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated three-component float value.

    WindowUi::drag_float4

    fn WindowUi::drag_float4(_self : WindowUi, label : String, value : Float4, speed? : Float, min? : Float, max? : Float, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Float4) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated four-component float value.

    WindowUi::drag_float_range2

    fn WindowUi::drag_float_range2(_self : WindowUi, label : String, value : FloatRange, speed? : Float, min? : Float, max? : Float, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (FloatRange) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated float range.

    WindowUi::drag_int

    fn WindowUi::drag_int(_self : WindowUi, label : String, value : Int, speed? : Float, min? : Int, max? : Int, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Int) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated integer value when the drag control changes.

    WindowUi::drag_int2

    fn WindowUi::drag_int2(_self : WindowUi, label : String, value : Int2, speed? : Float, min? : Int, max? : Int, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Int2) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated two-component integer value.

    WindowUi::drag_int3

    fn WindowUi::drag_int3(_self : WindowUi, label : String, value : Int3, speed? : Float, min? : Int, max? : Int, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Int3) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated three-component integer value.

    WindowUi::drag_int4

    fn WindowUi::drag_int4(_self : WindowUi, label : String, value : Int4, speed? : Float, min? : Int, max? : Int, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Int4) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated four-component integer value.

    WindowUi::drag_int_range2

    fn WindowUi::drag_int_range2(_self : WindowUi, label : String, value : IntRange, speed? : Float, min? : Int, max? : Int, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (IntRange) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated integer range.

    WindowUi::frame_height

    fn WindowUi::frame_height(_self : WindowUi) -> Float raise ImGuiError

    WindowUi::frame_height_with_spacing

    fn WindowUi::frame_height_with_spacing(_self : WindowUi) -> Float raise ImGuiError

    WindowUi::group

    fn WindowUi::group(_self : WindowUi, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Starts a group and closes it automatically.

    WindowUi::has_item_flag

    fn WindowUi::has_item_flag(_self : WindowUi, flag : ItemFlag) -> Bool raise ImGuiError

    WindowUi::id

    fn WindowUi::id(_self : WindowUi, value : String) -> UInt raise ImGuiError

    WindowUi::id_int

    fn WindowUi::id_int(_self : WindowUi, value : Int) -> UInt raise ImGuiError

    WindowUi::indent

    fn WindowUi::indent(_self : WindowUi, width? : Float) -> Unit raise ImGuiError

    WindowUi::input_double

    fn WindowUi::input_double(_self : WindowUi, label : String, value : Double, step? : Double, step_fast? : Double, format? : String, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Double) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated value when the double input changes.

    WindowUi::input_float

    fn WindowUi::input_float(_self : WindowUi, label : String, value : Float, step? : Float, step_fast? : Float, format? : String, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Float) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated value when the float input changes.

    WindowUi::input_float2

    fn WindowUi::input_float2(_self : WindowUi, label : String, value : Float2, format? : String, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Float2) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated two-component float input.

    WindowUi::input_float3

    fn WindowUi::input_float3(_self : WindowUi, label : String, value : Float3, format? : String, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Float3) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated three-component float input.

    WindowUi::input_float4

    fn WindowUi::input_float4(_self : WindowUi, label : String, value : Float4, format? : String, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Float4) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated four-component float input.

    WindowUi::input_int

    fn WindowUi::input_int(_self : WindowUi, label : String, value : Int, step? : Int, step_fast? : Int, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Int) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated value when the integer input changes.

    WindowUi::input_int2

    fn WindowUi::input_int2(_self : WindowUi, label : String, value : Int2, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Int2) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated two-component integer input.

    WindowUi::input_int3

    fn WindowUi::input_int3(_self : WindowUi, label : String, value : Int3, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Int3) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated three-component integer input.

    WindowUi::input_int4

    fn WindowUi::input_int4(_self : WindowUi, label : String, value : Int4, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Int4) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated four-component integer input.

    WindowUi::input_text

    fn WindowUi::input_text(_self : WindowUi, label : String, buffer : Bytes, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (String) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated UTF-8 text when the input changes.

    WindowUi::input_text_multiline

    fn WindowUi::input_text_multiline(_self : WindowUi, label : String, buffer : Bytes, style? : Array[StyleSheet], body : (String) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated UTF-8 text when the multiline input changes.

    WindowUi::input_text_with_hint

    fn WindowUi::input_text_with_hint(_self : WindowUi, label : String, hint : String, buffer : Bytes, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (String) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated UTF-8 text when the input changes.

    WindowUi::is_item_clicked

    fn WindowUi::is_item_clicked(_self : WindowUi, button? : MouseButton) -> Bool raise ImGuiError

    WindowUi::is_item_hovered

    fn WindowUi::is_item_hovered(_self : WindowUi, flags? : Array[HoveredFlag]) -> Bool raise ImGuiError

    Returns whether the last item is hovered.

    WindowUi::is_popup_open

    fn WindowUi::is_popup_open(_self : WindowUi, name : String, flags? : Array[PopupFlag]) -> Bool raise ImGuiError

    Returns whether a named popup is open.

    WindowUi::is_window_focused

    fn WindowUi::is_window_focused(_self : WindowUi, flags? : Array[FocusedFlag]) -> Bool raise ImGuiError

    WindowUi::is_window_hovered

    fn WindowUi::is_window_hovered(_self : WindowUi, flags? : Array[HoveredFlag]) -> Bool raise ImGuiError

    WindowUi::item_id

    fn WindowUi::item_id(_self : WindowUi) -> UInt raise ImGuiError

    WindowUi::item_state

    fn WindowUi::item_state(_self : WindowUi) -> ItemState raise ImGuiError

    Returns state for the last submitted item.

    WindowUi::item_tooltip

    fn WindowUi::item_tooltip(_self : WindowUi, style? : Array[StyleSheet], body : (TooltipUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens and closes the last item's tooltip scope automatically when active.

    WindowUi::label_text

    fn WindowUi::label_text(_self : WindowUi, label : String, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    Emits a label/value pair inside a window.

    WindowUi::menu_bar

    fn WindowUi::menu_bar(_self : WindowUi, style? : Array[StyleSheet], body : (MenuBarUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens a menu bar and closes it automatically.

    WindowUi::new_line

    fn WindowUi::new_line(_self : WindowUi) -> Unit raise ImGuiError

    WindowUi::next_column

    fn WindowUi::next_column(_self : WindowUi) -> Unit raise ImGuiError

    Moves to the next old columns layout column.

    WindowUi::open_popup

    fn WindowUi::open_popup(_self : WindowUi, name : String, flags? : Array[PopupFlag]) -> Unit raise ImGuiError

    Opens a popup by name.

    WindowUi::open_popup_on_item_click

    fn WindowUi::open_popup_on_item_click(_self : WindowUi, flags? : Array[PopupFlag]) -> Unit raise ImGuiError

    Opens a popup from the last item click.

    WindowUi::popup

    fn WindowUi::popup(_self : WindowUi, name : String, flags? : Array[PopupFlag], style? : Array[StyleSheet], body : (PopupUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens and closes a popup scope automatically when active.

    WindowUi::popup_context_item

    fn WindowUi::popup_context_item(_self : WindowUi, flags? : Array[PopupFlag], style? : Array[StyleSheet], body : (PopupUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens and closes the last item's context popup automatically when active.

    WindowUi::popup_context_void

    fn WindowUi::popup_context_void(_self : WindowUi, flags? : Array[PopupFlag], style? : Array[StyleSheet], body : (PopupUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens and closes the void context popup automatically when active.

    WindowUi::popup_context_window

    fn WindowUi::popup_context_window(_self : WindowUi, flags? : Array[PopupFlag], style? : Array[StyleSheet], body : (PopupUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens and closes the current window's context popup automatically when active.

    WindowUi::popup_modal

    fn WindowUi::popup_modal(_self : WindowUi, name : String, open :
    Ref
    [Bool], flags? : Array[WindowFlag], style? : Array[StyleSheet], body : (PopupUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens and closes a modal popup scope automatically when active. Updates open when Dear ImGui closes the modal through its close button.

    WindowUi::radio_button

    fn WindowUi::radio_button(_self : WindowUi, label : String, active : Bool, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body when the radio button is selected.

    WindowUi::radio_int

    fn WindowUi::radio_int(_self : WindowUi, label : String, value : Int, button_value : Int, style? : Array[StyleSheet], body : (Int) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated integer value when the radio button changes.

    WindowUi::same_line

    fn WindowUi::same_line(_self : WindowUi) -> Unit raise ImGuiError

    Keeps the next window item on the same line.

    WindowUi::same_line_ex

    fn WindowUi::same_line_ex(_self : WindowUi, offset_from_start_x : Float, spacing : Float) -> Unit raise ImGuiError

    Keeps the next window item on the same line with explicit spacing.

    WindowUi::scroll_state

    fn WindowUi::scroll_state(_self : WindowUi) -> ScrollState raise ImGuiError

    Returns scroll state for the current window.

    WindowUi::selectable

    fn WindowUi::selectable(_self : WindowUi, label : String, selected? : Bool, flags? : Array[SelectableFlag], style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body when a selectable item is activated.

    WindowUi::separator

    fn WindowUi::separator(_self : WindowUi, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    Adds a separator inside a window.

    WindowUi::separator_text

    fn WindowUi::separator_text(_self : WindowUi, label : String, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    Emits a separator with text.

    WindowUi::set_color_edit_options

    fn WindowUi::set_color_edit_options(_self : WindowUi, flags : Array[ColorEditFlag]) -> Unit raise ImGuiError

    Sets global color editor options.

    WindowUi::set_column_offset

    fn WindowUi::set_column_offset(_self : WindowUi, column : Int, offset : Float) -> Unit raise ImGuiError

    Sets an old columns layout column offset.

    WindowUi::set_column_width

    fn WindowUi::set_column_width(_self : WindowUi, column : Int, width : Float) -> Unit raise ImGuiError

    Sets an old columns layout column width.

    WindowUi::set_cursor_pos_x

    fn WindowUi::set_cursor_pos_x(_self : WindowUi, value : Float) -> Unit raise ImGuiError

    WindowUi::set_cursor_pos_y

    fn WindowUi::set_cursor_pos_y(_self : WindowUi, value : Float) -> Unit raise ImGuiError

    WindowUi::set_item_default_focus

    fn WindowUi::set_item_default_focus(_self : WindowUi) -> Unit raise ImGuiError

    Sets default focus to the last item.

    WindowUi::set_item_tooltip

    fn WindowUi::set_item_tooltip(_self : WindowUi, value : String) -> Unit raise ImGuiError

    Sets the last item's tooltip.

    WindowUi::set_keyboard_focus_here

    fn WindowUi::set_keyboard_focus_here(_self : WindowUi, offset? : Int) -> Unit raise ImGuiError

    Sets keyboard focus to the next item.

    WindowUi::set_nav_cursor_visible

    fn WindowUi::set_nav_cursor_visible(_self : WindowUi, visible : Bool) -> Unit raise ImGuiError

    WindowUi::set_next_item_allow_overlap

    fn WindowUi::set_next_item_allow_overlap(_self : WindowUi) -> Unit raise ImGuiError

    WindowUi::set_next_item_open

    fn WindowUi::set_next_item_open(_self : WindowUi, open : Bool, cond? : Cond) -> Unit raise ImGuiError

    WindowUi::set_next_item_selection_user_data

    fn WindowUi::set_next_item_selection_user_data(_self : WindowUi, value : Int64) -> Unit raise ImGuiError

    WindowUi::set_next_item_storage_id

    fn WindowUi::set_next_item_storage_id(_self : WindowUi, id : UInt) -> Unit raise ImGuiError

    WindowUi::set_next_item_width

    fn WindowUi::set_next_item_width(_self : WindowUi, width : Float) -> Unit raise ImGuiError

    WindowUi::set_scroll_here_x

    fn WindowUi::set_scroll_here_x(_self : WindowUi, center_x_ratio? : Float) -> Unit raise ImGuiError

    WindowUi::set_scroll_here_y

    fn WindowUi::set_scroll_here_y(_self : WindowUi, center_y_ratio? : Float) -> Unit raise ImGuiError

    WindowUi::set_scroll_x

    fn WindowUi::set_scroll_x(_self : WindowUi, value : Float) -> Unit raise ImGuiError

    WindowUi::set_scroll_y

    fn WindowUi::set_scroll_y(_self : WindowUi, value : Float) -> Unit raise ImGuiError

    WindowUi::set_tooltip

    fn WindowUi::set_tooltip(_self : WindowUi, value : String) -> Unit raise ImGuiError

    Sets the current item tooltip.

    WindowUi::set_window_collapsed

    fn WindowUi::set_window_collapsed(_self : WindowUi, collapsed : Bool, cond? : Cond) -> Unit raise ImGuiError

    Sets the current window collapsed state.

    WindowUi::set_window_focus

    fn WindowUi::set_window_focus(_self : WindowUi) -> Unit raise ImGuiError

    Focuses the current window.

    WindowUi::set_window_focus_by_name

    fn WindowUi::set_window_focus_by_name(_self : WindowUi, name : String) -> Unit raise ImGuiError

    WindowUi::set_window_font_scale

    fn WindowUi::set_window_font_scale(_self : WindowUi, scale : Float) -> Unit raise ImGuiError

    WindowUi::slider_angle

    fn WindowUi::slider_angle(_self : WindowUi, label : String, value : Float, min_degrees? : Float, max_degrees? : Float, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Float) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated angle in radians when the slider changes.

    WindowUi::slider_float

    fn WindowUi::slider_float(_self : WindowUi, label : String, value : Float, min : Float, max : Float, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Float) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated value when the slider changes.

    WindowUi::slider_float2

    fn WindowUi::slider_float2(_self : WindowUi, label : String, value : Float2, min : Float, max : Float, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Float2) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated two-component float value.

    WindowUi::slider_float3

    fn WindowUi::slider_float3(_self : WindowUi, label : String, value : Float3, min : Float, max : Float, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Float3) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated three-component float value.

    WindowUi::slider_float4

    fn WindowUi::slider_float4(_self : WindowUi, label : String, value : Float4, min : Float, max : Float, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Float4) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated four-component float value.

    WindowUi::slider_int

    fn WindowUi::slider_int(_self : WindowUi, label : String, value : Int, min : Int, max : Int, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Int) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated integer value when the slider changes.

    WindowUi::slider_int2

    fn WindowUi::slider_int2(_self : WindowUi, label : String, value : Int2, min : Int, max : Int, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Int2) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated two-component integer value.

    WindowUi::slider_int3

    fn WindowUi::slider_int3(_self : WindowUi, label : String, value : Int3, min : Int, max : Int, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Int3) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated three-component integer value.

    WindowUi::slider_int4

    fn WindowUi::slider_int4(_self : WindowUi, label : String, value : Int4, min : Int, max : Int, format? : String, flags? : Array[SliderFlag], style? : Array[StyleSheet], body : (Int4) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body with the updated four-component integer value.

    WindowUi::small_button

    fn WindowUi::small_button(_self : WindowUi, label : String, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Runs body when the small button is activated.

    WindowUi::spacing

    fn WindowUi::spacing(_self : WindowUi) -> Unit raise ImGuiError

    WindowUi::style

    fn WindowUi::style(_self : WindowUi, styles : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Applies a scoped style sheet while body runs.

    WindowUi::tab_bar

    fn WindowUi::tab_bar(_self : WindowUi, name : String, flags? : Array[TabBarFlag], style? : Array[StyleSheet], body : (TabBarUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens a tab bar and closes it automatically.

    WindowUi::table

    fn WindowUi::table(_self : WindowUi, name : String, columns : Int, flags? : Array[TableFlag], style? : Array[StyleSheet], body : (TableUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens a table and closes it automatically.

    WindowUi::text

    fn WindowUi::text(_self : WindowUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    Emits text inside a window.

    WindowUi::text_disabled

    fn WindowUi::text_disabled(_self : WindowUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    Emits disabled text inside a window.

    WindowUi::text_line_height

    fn WindowUi::text_line_height(_self : WindowUi) -> Float raise ImGuiError

    WindowUi::text_line_height_with_spacing

    fn WindowUi::text_line_height_with_spacing(_self : WindowUi) -> Float raise ImGuiError

    fn WindowUi::text_link(_self : WindowUi, label : String, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Emits a clickable text link and runs body when activated.
    fn WindowUi::text_link_open_url(_self : WindowUi, label : String, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    Emits a clickable URL text link using the label as URL.

    WindowUi::text_wrapped

    fn WindowUi::text_wrapped(_self : WindowUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiError

    Emits wrapped text inside a window.

    WindowUi::tooltip

    fn WindowUi::tooltip(_self : WindowUi, style? : Array[StyleSheet], body : (TooltipUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens and closes a tooltip scope automatically when active.

    WindowUi::tree_node

    fn WindowUi::tree_node(_self : WindowUi, label : String, flags? : Array[TreeNodeFlag], style? : Array[StyleSheet], body : (TreeNodeUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Opens and closes a tree node automatically when active.

    WindowUi::unindent

    fn WindowUi::unindent(_self : WindowUi, width? : Float) -> Unit raise ImGuiError

    WindowUi::window_height

    fn WindowUi::window_height(_self : WindowUi) -> Float raise ImGuiError

    WindowUi::window_state

    fn WindowUi::window_state(_self : WindowUi) -> WindowState raise ImGuiError

    Returns state for the current window.

    WindowUi::window_width

    fn WindowUi::window_width(_self : WindowUi) -> Float raise ImGuiError

    WindowUi::with_font

    fn WindowUi::with_font(_self : WindowUi, font : Font, size? : Float, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Temporarily pushes a font.

    WindowUi::with_id

    fn WindowUi::with_id(_self : WindowUi, id : String, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Pushes a string ID and pops it automatically.

    WindowUi::with_id_int

    fn WindowUi::with_id_int(_self : WindowUi, id : Int, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Pushes an integer ID and pops it automatically.

    WindowUi::with_item_flag

    fn WindowUi::with_item_flag(_self : WindowUi, flag : ItemFlag, enabled : Bool, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    Pushes an item flag and pops it automatically.

    WindowUi::with_item_width

    fn WindowUi::with_item_width(_self : WindowUi, width : Float, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    WindowUi::with_text_wrap_pos

    fn WindowUi::with_text_wrap_pos(_self : WindowUi, wrap_pos_x : Float, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiError

    clear_current_context

    fn clear_current_context() -> Unit

    Clears the current context.

    font

    fn font() -> Font raise ImGuiError

    Returns the current font handle.

    font_size

    fn font_size() -> Float raise ImGuiError

    Returns the current font size in pixels.

    frame_count

    fn frame_count() -> Int

    Returns the Dear ImGui frame count.

    has_current_context

    fn has_current_context() -> Bool

    Returns true when a current context exists.
    fn io() -> Io raise ImGuiError

    Returns the current Dear ImGui IO handle.

    new_frame

    fn new_frame() -> Unit raise ImGuiError

    Starts a new Dear ImGui frame.

    render

    Renders the current frame and returns draw data when available.

    style

    fn style() -> Style raise ImGuiError

    Returns the current Dear ImGui style handle.
    fn ui() -> Ui

    Returns a root UI builder.

    version_number

    fn version_number() -> Int

    Returns the Dear ImGui version number from the generated binding constants.