Native MoonBit bindings for Dear ImGui public APIs
///|
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 }
}
}
}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)git submodule update --init --recursivebrew install glfwsudo apt install libglfw3-dev libgl1-mesa-devpacman -S mingw-w64-x86_64-python mingw-w64-x86_64-glfwmoon run examples/glfw_opengl3 --target nativemoon check --target native
moon test --target nativepub(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)type ComboUifn ComboUi::selectable(_self : ComboUi, label : String, selected? : Bool, flags? : Array[SelectableFlag], style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiErrortype Contextpub(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)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)type Iopub(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)type MenuBarUifn MenuBarUi::menu(_self : MenuBarUi, label : String, enabled? : Bool, style? : Array[StyleSheet], body : (MenuUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn MenuBarUi::menu_item(_self : MenuBarUi, label : String, selected? : Bool, enabled? : Bool, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiErrortype MenuUifn MenuUi::menu_item(_self : MenuUi, label : String, selected? : Bool, enabled? : Bool, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiErrortype PopupUifn PopupUi::button(_self : PopupUi, label : String, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn PopupUi::text(_self : PopupUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiErrortype Stylepub(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)type TabBarUifn TabBarUi::tab_item(_self : TabBarUi, label : String, flags? : Array[TabItemFlag], style? : Array[StyleSheet], body : (TabItemUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn TabBarUi::tab_item_open(_self : TabBarUi, label : String, open : Ref[Bool], flags? : Array[TabItemFlag], style? : Array[StyleSheet], body : (TabItemUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrortype TabItemUifn TabItemUi::table(_self : TabItemUi, name : String, columns : Int, flags? : Array[TableFlag], style? : Array[StyleSheet], body : (TableUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn TabItemUi::text(_self : TabItemUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiErrorpub(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)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)type TableUifn TableUi::column_has_flag(_self : TableUi, column : Int, flag : TableColumnFlag) -> Bool raise ImGuiErrorfn TableUi::next_row(_self : TableUi, flags? : Array[TableRowFlag], min_height? : Float) -> Unit raise ImGuiErrorfn TableUi::selectable(_self : TableUi, label : String, selected? : Bool, flags? : Array[SelectableFlag], style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn TableUi::set_bg_color(_self : TableUi, target : TableBgTarget, color : Color, column? : Int) -> Unit raise ImGuiErrorfn TableUi::set_column_enabled(_self : TableUi, column : Int, enabled : Bool) -> Unit raise ImGuiErrorfn TableUi::setup_column(_self : TableUi, label : String, flags? : Array[TableColumnFlag], init_width_or_weight? : Float, user_id? : UInt) -> Unit raise ImGuiErrorfn TableUi::setup_scroll_freeze(_self : TableUi, columns : Int, rows : Int) -> Unit raise ImGuiErrorfn TableUi::text(_self : TableUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiErrortype TooltipUifn TooltipUi::text(_self : TooltipUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiErrorpub(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)type TreeNodeUifn TreeNodeUi::bullet_text(_self : TreeNodeUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiErrorfn TreeNodeUi::text(_self : TreeNodeUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiErrortype Uifn Ui::main_menu_bar(_self : Ui, style? : Array[StyleSheet], body : (MenuBarUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn Ui::window(_self : Ui, title : String, flags? : Array[WindowFlag], style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorpub(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)type WindowUifn WindowUi::arrow_button(_self : WindowUi, label : String, direction : Dir, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::bullet_text(_self : WindowUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiErrorfn WindowUi::button(_self : WindowUi, label : String, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::button_repeat(_self : WindowUi, repeat : Bool, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::checkbox(_self : WindowUi, label : String, checked : Bool, style? : Array[StyleSheet], body : (Bool) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::collapsing_header(_self : WindowUi, label : String, flags? : Array[TreeNodeFlag], style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::collapsing_header_open(_self : WindowUi, label : String, open : Ref[Bool], flags? : Array[TreeNodeFlag], style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::color_edit3(_self : WindowUi, label : String, color : Vec4, flags? : Array[ColorEditFlag], style? : Array[StyleSheet], body : (Vec4) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::color_edit4(_self : WindowUi, label : String, color : Vec4, flags? : Array[ColorEditFlag], style? : Array[StyleSheet], body : (Vec4) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::color_picker3(_self : WindowUi, label : String, color : Vec4, flags? : Array[ColorEditFlag], style? : Array[StyleSheet], body : (Vec4) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::color_picker4(_self : WindowUi, label : String, color : Vec4, flags? : Array[ColorEditFlag], style? : Array[StyleSheet], body : (Vec4) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::columns(_self : WindowUi, count : Int, border? : Bool, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::combo(_self : WindowUi, label : String, preview : String, flags? : Array[ComboFlag], style? : Array[StyleSheet], body : (ComboUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::disabled(_self : WindowUi, disabled? : Bool, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn WindowUi::group(_self : WindowUi, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn WindowUi::input_float2(_self : WindowUi, label : String, value : Float2, format? : String, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Float2) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::input_float3(_self : WindowUi, label : String, value : Float3, format? : String, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Float3) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::input_float4(_self : WindowUi, label : String, value : Float4, format? : String, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Float4) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn 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 ImGuiErrorfn WindowUi::input_int2(_self : WindowUi, label : String, value : Int2, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Int2) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::input_int3(_self : WindowUi, label : String, value : Int3, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Int3) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::input_int4(_self : WindowUi, label : String, value : Int4, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (Int4) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::input_text(_self : WindowUi, label : String, buffer : Bytes, flags? : Array[InputTextFlag], style? : Array[StyleSheet], body : (String) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::input_text_multiline(_self : WindowUi, label : String, buffer : Bytes, style? : Array[StyleSheet], body : (String) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn 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 ImGuiErrorfn WindowUi::is_item_hovered(_self : WindowUi, flags? : Array[HoveredFlag]) -> Bool raise ImGuiErrorfn WindowUi::is_popup_open(_self : WindowUi, name : String, flags? : Array[PopupFlag]) -> Bool raise ImGuiErrorfn WindowUi::is_window_focused(_self : WindowUi, flags? : Array[FocusedFlag]) -> Bool raise ImGuiErrorfn WindowUi::is_window_hovered(_self : WindowUi, flags? : Array[HoveredFlag]) -> Bool raise ImGuiErrorfn WindowUi::item_tooltip(_self : WindowUi, style? : Array[StyleSheet], body : (TooltipUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::label_text(_self : WindowUi, label : String, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiErrorfn WindowUi::menu_bar(_self : WindowUi, style? : Array[StyleSheet], body : (MenuBarUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::open_popup(_self : WindowUi, name : String, flags? : Array[PopupFlag]) -> Unit raise ImGuiErrorfn WindowUi::open_popup_on_item_click(_self : WindowUi, flags? : Array[PopupFlag]) -> Unit raise ImGuiErrorfn WindowUi::popup(_self : WindowUi, name : String, flags? : Array[PopupFlag], style? : Array[StyleSheet], body : (PopupUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::popup_context_item(_self : WindowUi, flags? : Array[PopupFlag], style? : Array[StyleSheet], body : (PopupUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::popup_context_void(_self : WindowUi, flags? : Array[PopupFlag], style? : Array[StyleSheet], body : (PopupUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::popup_context_window(_self : WindowUi, flags? : Array[PopupFlag], style? : Array[StyleSheet], body : (PopupUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::popup_modal(_self : WindowUi, name : String, open : Ref[Bool], flags? : Array[WindowFlag], style? : Array[StyleSheet], body : (PopupUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::radio_button(_self : WindowUi, label : String, active : Bool, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::radio_int(_self : WindowUi, label : String, value : Int, button_value : Int, style? : Array[StyleSheet], body : (Int) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::same_line_ex(_self : WindowUi, offset_from_start_x : Float, spacing : Float) -> Unit raise ImGuiErrorfn WindowUi::selectable(_self : WindowUi, label : String, selected? : Bool, flags? : Array[SelectableFlag], style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::separator_text(_self : WindowUi, label : String, style? : Array[StyleSheet]) -> Unit raise ImGuiErrorfn WindowUi::set_color_edit_options(_self : WindowUi, flags : Array[ColorEditFlag]) -> Unit raise ImGuiErrorfn WindowUi::set_column_offset(_self : WindowUi, column : Int, offset : Float) -> Unit raise ImGuiErrorfn WindowUi::set_column_width(_self : WindowUi, column : Int, width : Float) -> Unit raise ImGuiErrorfn WindowUi::set_next_item_open(_self : WindowUi, open : Bool, cond? : Cond) -> Unit raise ImGuiErrorfn WindowUi::set_next_item_selection_user_data(_self : WindowUi, value : Int64) -> Unit raise ImGuiErrorfn WindowUi::set_window_collapsed(_self : WindowUi, collapsed : Bool, cond? : Cond) -> Unit raise ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn 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 ImGuiErrorfn WindowUi::small_button(_self : WindowUi, label : String, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::style(_self : WindowUi, styles : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::tab_bar(_self : WindowUi, name : String, flags? : Array[TabBarFlag], style? : Array[StyleSheet], body : (TabBarUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::table(_self : WindowUi, name : String, columns : Int, flags? : Array[TableFlag], style? : Array[StyleSheet], body : (TableUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::text(_self : WindowUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiErrorfn WindowUi::text_disabled(_self : WindowUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiErrorfn WindowUi::text_link(_self : WindowUi, label : String, style? : Array[StyleSheet], body : () -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::text_link_open_url(_self : WindowUi, label : String, style? : Array[StyleSheet]) -> Unit raise ImGuiErrorfn WindowUi::text_wrapped(_self : WindowUi, value : String, style? : Array[StyleSheet]) -> Unit raise ImGuiErrorfn WindowUi::tooltip(_self : WindowUi, style? : Array[StyleSheet], body : (TooltipUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::tree_node(_self : WindowUi, label : String, flags? : Array[TreeNodeFlag], style? : Array[StyleSheet], body : (TreeNodeUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::with_font(_self : WindowUi, font : Font, size? : Float, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::with_id(_self : WindowUi, id : String, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::with_id_int(_self : WindowUi, id : Int, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::with_item_flag(_self : WindowUi, flag : ItemFlag, enabled : Bool, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::with_item_width(_self : WindowUi, width : Float, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn WindowUi::with_text_wrap_pos(_self : WindowUi, wrap_pos_x : Float, style? : Array[StyleSheet], body : (WindowUi) -> Unit raise ImGuiError) -> Unit raise ImGuiErrorfn has_current_context() -> Boolfn version_number() -> IntInstall
Download zipNative MoonBit bindings for Dear ImGui public APIs