ImGui
Static Members
| Name | Type | Default |
|---|---|---|
sharedFontAtlas |
cpp.Star | null |
| Returns |
|---|
| cpp.Star |
NULL = destroy current context
| Name | Type | Default |
|---|---|---|
ctx |
cpp.Star | null |
getCurrentContext(): cpp.Star| Returns |
|---|
| cpp.Star |
| Name | Type |
|---|---|
ctx |
cpp.Star |
getIO(): cpp.Staraccess the ImGuiIO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags)
| Returns |
|---|
| cpp.Star |
getPlatformIO(): cpp.Staraccess the ImGuiPlatformIO structure (mostly hooks/functions to connect to platform/renderer and OS Clipboard, IME etc.)
| Returns |
|---|
| cpp.Star |
getStyle(): cpp.Staraccess the Style structure (colors, sizes). Always use PushStyleColor(), PushStyleVar() to modify style mid-frame!
| Returns |
|---|
| cpp.Star |
newFrame(): Voidstart a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame().
endFrame(): Voidends the Dear ImGui frame. automatically called by Render(). If you don't need to render data (skipping rendering) you may call EndFrame() without Render()... but you'll have wasted CPU already! If you don't need to render, better to not create any windows and not call NewFrame() at all!
render(): Voidends the Dear ImGui frame, finalize the draw data. You can then get call GetDrawData().
getDrawData(): cpp.Starvalid after Render() and until the next call to NewFrame(). Call ImGui_ImplXXXX_RenderDrawData() function in your Renderer Backend to render.
| Returns |
|---|
| cpp.Star |
create Demo window. demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application!
| Name | Type | Default |
|---|---|---|
pOpen |
cpp.Star | null |
create Metrics/Debugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc.
| Name | Type | Default |
|---|---|---|
pOpen |
cpp.Star | null |
create Debug Log window. display a simplified log of important dear imgui events.
| Name | Type | Default |
|---|---|---|
pOpen |
cpp.Star | null |
create Stack Tool window. hover items with mouse to query information about the source of their unique ID.
| Name | Type | Default |
|---|---|---|
pOpen |
cpp.Star | null |
showIDStackToolWindow(): VoidImplied p_open = NULL
create About window. display Dear ImGui version, credits and build/system information.
| Name | Type | Default |
|---|---|---|
pOpen |
cpp.Star | null |
add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style)
| Name | Type | Default |
|---|---|---|
ref |
cpp.Star | null |
showStyleSelector(label: cpp.ConstCharStar): Booladd style selector block (not a window), essentially a combo listing the default styles.
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
| Returns |
|---|
| Bool |
showFontSelector(label: cpp.ConstCharStar): Voidadd font selector block (not a window), essentially a combo listing the loaded fonts.
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
showUserGuide(): Voidadd basic help/info block (not a window): how to manipulate ImGui as an end-user (mouse/keyboard controls).
getVersion(): cpp.ConstCharStarget the compiled version string e.g. "1.80 WIP" (essentially the value for IMGUI_VERSION from the compiled version of imgui.cpp)
| Returns |
|---|
| cpp.ConstCharStar |
new, recommended style (default)
| Name | Type | Default |
|---|---|---|
dst |
cpp.Star | null |
best used with borders and a custom, thicker font
| Name | Type | Default |
|---|---|---|
dst |
cpp.Star | null |
classic imgui style
| Name | Type | Default |
|---|---|---|
dst |
cpp.Star | null |
begin(name: cpp.ConstCharStar, ?pOpen: cpp.Star = null, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
name |
cpp.ConstCharStar | |
pOpen |
cpp.Star | null |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
end(): VoidbeginChild(strId: cpp.ConstCharStar, size: ImVec2, ?childFlags: Int = 0, ?windowFlags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
strId |
cpp.ConstCharStar | |
size |
ImVec2 | |
childFlags |
Int | 0 |
windowFlags |
Int | 0 |
| Returns |
|---|
| Bool |
| Name | Type | Default |
|---|---|---|
id |
UInt | |
size |
ImVec2 | |
childFlags |
Int | 0 |
windowFlags |
Int | 0 |
| Returns |
|---|
| Bool |
endChild(): VoidisWindowAppearing(): Bool| Returns |
|---|
| Bool |
isWindowCollapsed(): Bool| Returns |
|---|
| Bool |
is current window focused? or its root/child, depending on flags. see flags for options.
| Name | Type | Default |
|---|---|---|
flags |
Int | 0 |
| Returns |
|---|
| Bool |
is current window hovered and hoverable (e.g. not blocked by a popup/modal)? See ImGuiHoveredFlags_ for options. IMPORTANT: If you are trying to check whether your mouse should be dispatched to Dear ImGui or to your underlying app, you should not use this function! Use the 'io.WantCaptureMouse' boolean for that! Refer to FAQ entry "How can I tell whether to dispatch mouse/keyboard to Dear ImGui or my application?" for details.
| Name | Type | Default |
|---|---|---|
flags |
Int | 0 |
| Returns |
|---|
| Bool |
getWindowDrawList(): cpp.Starget draw list associated to the current window, to append your own drawing primitives
| Returns |
|---|
| cpp.Star |
getWindowDpiScale(): cpp.Float32get DPI scale currently associated to the current window's viewport.
| Returns |
|---|
| cpp.Float32 |
getWindowPos(): ImVec2get current window position in screen space (IT IS UNLIKELY YOU EVER NEED TO USE THIS. Consider always using GetCursorScreenPos() and GetContentRegionAvail() instead)
| Returns |
|---|
| ImVec2 |
getWindowSize(): ImVec2get current window size (IT IS UNLIKELY YOU EVER NEED TO USE THIS. Consider always using GetCursorScreenPos() and GetContentRegionAvail() instead)
| Returns |
|---|
| ImVec2 |
getWindowWidth(): cpp.Float32get current window width (IT IS UNLIKELY YOU EVER NEED TO USE THIS). Shortcut for GetWindowSize().x.
| Returns |
|---|
| cpp.Float32 |
getWindowHeight(): cpp.Float32get current window height (IT IS UNLIKELY YOU EVER NEED TO USE THIS). Shortcut for GetWindowSize().y.
| Returns |
|---|
| cpp.Float32 |
getWindowViewport(): cpp.Starget viewport currently associated to the current window.
| Returns |
|---|
| cpp.Star |
set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc.
| Name | Type | Default |
|---|---|---|
pos |
ImVec2 | |
cond |
Int | 0 |
pivot |
ImVec2 |
Implied pivot = ImVec2(0, 0)
| Name | Type | Default |
|---|---|---|
pos |
ImVec2 | |
cond |
Int | 0 |
set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin()
| Name | Type | Default |
|---|---|---|
size |
ImVec2 | |
cond |
Int | 0 |
setNextWindowSizeConstraints(sizeMin: ImVec2, sizeMax: ImVec2, ?customCallback: Null<ImGuiOpaqueCallback> = null, ?customCallbackData: cpp.RawPointer<cpp.Void> = null): Voidset next window size limits. use 0.0f or FLT_MAX if you don't want limits. Use -1 for both min and max of same axis to preserve current size (which itself is a constraint). Use callback to apply non-trivial programmatic constraints.
| Name | Type | Default |
|---|---|---|
sizeMin |
ImVec2 | |
sizeMax |
ImVec2 | |
customCallback |
Null<ImGuiOpaqueCallback> | null |
customCallbackData |
cpp.RawPointer<cpp.Void> | null |
set next window content size (~ scrollable client area, which enforce the range of scrollbars). Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin()
| Name | Type |
|---|---|
size |
ImVec2 |
set next window collapsed state. call before Begin()
| Name | Type | Default |
|---|---|---|
collapsed |
Bool | |
cond |
Int | 0 |
setNextWindowFocus(): Voidset next window to be focused / top-most. call before Begin()
set next window scrolling value (use < 0.0f to not affect a given axis).
| Name | Type |
|---|---|
scroll |
ImVec2 |
setNextWindowBgAlpha(alpha: cpp.Float32): Voidset next window background color alpha. helper to easily override the Alpha component of ImGuiCol_WindowBg/ChildBg/PopupBg. you may also use ImGuiWindowFlags_NoBackground.
| Name | Type |
|---|---|
alpha |
cpp.Float32 |
set next window viewport
| Name | Type |
|---|---|
viewportId |
UInt |
(not recommended) set current window position - call within Begin()/End(). prefer using SetNextWindowPos(), as this may incur tearing and side-effects.
| Name | Type | Default |
|---|---|---|
pos |
ImVec2 | |
cond |
Int | 0 |
(not recommended) set current window size - call within Begin()/End(). set to ImVec2(0, 0) to force an auto-fit. prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects.
| Name | Type | Default |
|---|---|---|
size |
ImVec2 | |
cond |
Int | 0 |
(not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed().
| Name | Type | Default |
|---|---|---|
collapsed |
Bool | |
cond |
Int | 0 |
setWindowFocus(): Void(not recommended) set current window to be focused / top-most. prefer using SetNextWindowFocus().
setWindowPosStr(name: cpp.ConstCharStar, pos: ImVec2, ?cond: Int = 0): Voidset named window position.
| Name | Type | Default |
|---|---|---|
name |
cpp.ConstCharStar | |
pos |
ImVec2 | |
cond |
Int | 0 |
setWindowSizeStr(name: cpp.ConstCharStar, size: ImVec2, ?cond: Int = 0): Voidset named window size. set axis to 0.0f to force an auto-fit on this axis.
| Name | Type | Default |
|---|---|---|
name |
cpp.ConstCharStar | |
size |
ImVec2 | |
cond |
Int | 0 |
setWindowCollapsedStr(name: cpp.ConstCharStar, collapsed: Bool, ?cond: Int = 0): Voidset named window collapsed state
| Name | Type | Default |
|---|---|---|
name |
cpp.ConstCharStar | |
collapsed |
Bool | |
cond |
Int | 0 |
setWindowFocusStr(name: cpp.ConstCharStar): Voidset named window to be focused / top-most. use NULL to remove focus.
| Name | Type |
|---|---|
name |
cpp.ConstCharStar |
getScrollX(): cpp.Float32get scrolling amount [0 .. GetScrollMaxX()]
| Returns |
|---|
| cpp.Float32 |
getScrollY(): cpp.Float32get scrolling amount [0 .. GetScrollMaxY()]
| Returns |
|---|
| cpp.Float32 |
setScrollX(scrollX: cpp.Float32): Voidset scrolling amount [0 .. GetScrollMaxX()]
| Name | Type |
|---|---|
scrollX |
cpp.Float32 |
setScrollY(scrollY: cpp.Float32): Voidset scrolling amount [0 .. GetScrollMaxY()]
| Name | Type |
|---|---|
scrollY |
cpp.Float32 |
getScrollMaxX(): cpp.Float32get maximum scrolling amount ~~ ContentSize.x - WindowSize.x - DecorationsSize.x
| Returns |
|---|
| cpp.Float32 |
getScrollMaxY(): cpp.Float32get maximum scrolling amount ~~ ContentSize.y - WindowSize.y - DecorationsSize.y
| Returns |
|---|
| cpp.Float32 |
setScrollHereX(?centerXRatio: cpp.Float32 = 0.5): Voidadjust scrolling amount to make current cursor position visible. center_x_ratio=0.0: left, 0.5: center, 1.0: right. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead.
| Name | Type | Default |
|---|---|---|
centerXRatio |
cpp.Float32 | 0.5 |
setScrollHereY(?centerYRatio: cpp.Float32 = 0.5): Voidadjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead.
| Name | Type | Default |
|---|---|---|
centerYRatio |
cpp.Float32 | 0.5 |
setScrollFromPosX(localX: cpp.Float32, ?centerXRatio: cpp.Float32 = 0.5): Voidadjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position.
| Name | Type | Default |
|---|---|---|
localX |
cpp.Float32 | |
centerXRatio |
cpp.Float32 | 0.5 |
setScrollFromPosY(localY: cpp.Float32, ?centerYRatio: cpp.Float32 = 0.5): Voidadjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position.
| Name | Type | Default |
|---|---|---|
localY |
cpp.Float32 | |
centerYRatio |
cpp.Float32 | 0.5 |
pushFontFloat(font: cpp.Star, fontSizeBaseUnscaled: cpp.Float32): VoidUse NULL as a shortcut to keep current font. Use 0.0f to keep current size.
| Name | Type |
|---|---|
font |
cpp.Star |
fontSizeBaseUnscaled |
cpp.Float32 |
popFont(): VoidgetFont(): cpp.Starget current font
| Returns |
|---|
| cpp.Star |
getFontSize(): cpp.Float32get current scaled font size (= height in pixels). AFTER global scale factors applied. IMPORTANT DO NOT PASS THIS VALUE TO PushFont()! Use ImGui::GetStyle().FontSizeBase to get value before global scale factors.
| Returns |
|---|
| cpp.Float32 |
getFontBaked(): cpp.Starget current font bound at current size // == GetFont()->GetFontBaked(GetFontSize())
| Returns |
|---|
| cpp.Star |
modify a style color. always use this if you modify the style after NewFrame().
| Name | Type |
|---|---|
idx |
Int |
col |
UInt |
| Name | Type |
|---|---|
idx |
Int |
col |
ImVec4 |
| Name | Type | Default |
|---|---|---|
count |
Int | 1 |
popStyleColor(): VoidImplied count = 1
pushStyleVar(idx: Int, val: cpp.Float32): Voidmodify a style float variable. always use this if you modify the style after NewFrame()!
| Name | Type |
|---|---|
idx |
Int |
val |
cpp.Float32 |
modify a style ImVec2 variable. "
| Name | Type |
|---|---|
idx |
Int |
val |
ImVec2 |
pushStyleVarX(idx: Int, valX: cpp.Float32): Voidmodify X component of a style ImVec2 variable. "
| Name | Type |
|---|---|
idx |
Int |
valX |
cpp.Float32 |
pushStyleVarY(idx: Int, valY: cpp.Float32): Voidmodify Y component of a style ImVec2 variable. "
| Name | Type |
|---|---|
idx |
Int |
valY |
cpp.Float32 |
| Name | Type | Default |
|---|---|---|
count |
Int | 1 |
popStyleVar(): VoidImplied count = 1
modify specified shared item flag, e.g. PushItemFlag(ImGuiItemFlags_NoTabStop, true)
| Name | Type |
|---|---|
option |
Int |
enabled |
Bool |
popItemFlag(): VoidpushItemWidth(itemWidth: cpp.Float32): Voidpush width of items for common large "item+label" widgets. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side).
| Name | Type |
|---|---|
itemWidth |
cpp.Float32 |
popItemWidth(): VoidsetNextItemWidth(itemWidth: cpp.Float32): Voidset width of the next common large "item+label" widget. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side)
| Name | Type |
|---|---|
itemWidth |
cpp.Float32 |
calcItemWidth(): cpp.Float32width of item given pushed settings and current cursor position. NOT necessarily the width of last item unlike most 'Item' functions.
| Returns |
|---|
| cpp.Float32 |
pushTextWrapPos(?wrapLocalPosX: cpp.Float32 = 0.0): Voidpush word-wrapping position for Text*() commands. < 0.0f: no wrapping; 0.0f: wrap to end of window (or column); > 0.0f: wrap at 'wrap_pos_x' position in window local space
| Name | Type | Default |
|---|---|---|
wrapLocalPosX |
cpp.Float32 | 0.0 |
popTextWrapPos(): VoidgetFontTexUvWhitePixel(): ImVec2get UV coordinate for a white pixel, useful to draw custom shapes via the ImDrawList API
| Returns |
|---|
| ImVec2 |
getColorU32Ex(idx: Int, ?alphaMul: cpp.Float32 = 1.0): UIntretrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList
| Name | Type | Default |
|---|---|---|
idx |
Int | |
alphaMul |
cpp.Float32 | 1.0 |
| Returns |
|---|
| UInt |
Implied alpha_mul = 1.0f
| Name | Type |
|---|---|
idx |
Int |
| Returns |
|---|
| UInt |
retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList
| Name | Type |
|---|---|
col |
ImVec4 |
| Returns |
|---|
| UInt |
getColorU32ImU32Ex(col: UInt, ?alphaMul: cpp.Float32 = 1.0): UIntretrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList
| Name | Type | Default |
|---|---|---|
col |
UInt | |
alphaMul |
cpp.Float32 | 1.0 |
| Returns |
|---|
| UInt |
Implied alpha_mul = 1.0f
| Name | Type |
|---|---|
col |
UInt |
| Returns |
|---|
| UInt |
retrieve style color as stored in ImGuiStyle structure. use to feed back into PushStyleColor(), otherwise use GetColorU32() to get style color with style alpha baked in.
| Name | Type |
|---|---|
idx |
Int |
| Returns |
|---|
| cpp.Star |
getCursorScreenPos(): ImVec2cursor position, absolute coordinates. THIS IS YOUR BEST FRIEND (prefer using this rather than GetCursorPos(), also more useful to work with ImDrawList API).
| Returns |
|---|
| ImVec2 |
cursor position, absolute coordinates. THIS IS YOUR BEST FRIEND.
| Name | Type |
|---|---|
pos |
ImVec2 |
getContentRegionAvail(): ImVec2available space from current position. THIS IS YOUR BEST FRIEND.
| Returns |
|---|
| ImVec2 |
getCursorPos(): ImVec2[window-local] cursor position in window-local coordinates. This is not your best friend.
| Returns |
|---|
| ImVec2 |
getCursorPosX(): cpp.Float32[window-local] "
| Returns |
|---|
| cpp.Float32 |
getCursorPosY(): cpp.Float32[window-local] "
| Returns |
|---|
| cpp.Float32 |
[window-local] "
| Name | Type |
|---|---|
localPos |
ImVec2 |
setCursorPosX(localX: cpp.Float32): Void[window-local] "
| Name | Type |
|---|---|
localX |
cpp.Float32 |
setCursorPosY(localY: cpp.Float32): Void[window-local] "
| Name | Type |
|---|---|
localY |
cpp.Float32 |
getCursorStartPos(): ImVec2[window-local] initial cursor position, in window-local coordinates. Call GetCursorScreenPos() after Begin() to get the absolute coordinates version.
| Returns |
|---|
| ImVec2 |
separator(): Voidseparator, generally horizontal. inside a menu bar or in horizontal layout mode, this becomes a vertical separator.
sameLineEx(?offsetFromStartX: cpp.Float32 = 0.0, ?spacing: cpp.Float32 = -1.0): Voidcall between widgets or groups to layout them horizontally. X position given in window coordinates.
| Name | Type | Default |
|---|---|---|
offsetFromStartX |
cpp.Float32 | 0.0 |
spacing |
cpp.Float32 | -1.0 |
sameLine(): VoidImplied offset_from_start_x = 0.0f, spacing = -1.0f
newLine(): Voidundo a SameLine() or force a new line when in a horizontal-layout context.
spacing(): Voidadd vertical spacing.
add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into.
| Name | Type |
|---|---|
size |
ImVec2 |
indentEx(?indentW: cpp.Float32 = 0.0): Voidmove content position toward the right, by indent_w, or style.IndentSpacing if indent_w <= 0
| Name | Type | Default |
|---|---|---|
indentW |
cpp.Float32 | 0.0 |
indent(): VoidImplied indent_w = 0.0f
unindentEx(?indentW: cpp.Float32 = 0.0): Voidmove content position back to the left, by indent_w, or style.IndentSpacing if indent_w <= 0
| Name | Type | Default |
|---|---|---|
indentW |
cpp.Float32 | 0.0 |
unindent(): VoidImplied indent_w = 0.0f
beginGroup(): Voidlock horizontal starting position
endGroup(): Voidunlock horizontal starting position + capture the whole group bounding box into one "item" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.)
alignTextToFramePadding(): Voidvertically align upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items (call if you have text on a line before a framed item)
getTextLineHeight(): cpp.Float32~ FontSize
| Returns |
|---|
| cpp.Float32 |
getTextLineHeightWithSpacing(): cpp.Float32~ FontSize + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of text)
| Returns |
|---|
| cpp.Float32 |
getFrameHeight(): cpp.Float32~ FontSize + style.FramePadding.y * 2
| Returns |
|---|
| cpp.Float32 |
getFrameHeightWithSpacing(): cpp.Float32~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets)
| Returns |
|---|
| cpp.Float32 |
pushID(strId: cpp.ConstCharStar): Voidpush string into the ID stack (will hash string).
| Name | Type |
|---|---|
strId |
cpp.ConstCharStar |
pushIDStr(strIdBegin: cpp.ConstCharStar, strIdEnd: cpp.ConstCharStar): Voidpush string into the ID stack (will hash string).
| Name | Type |
|---|---|
strIdBegin |
cpp.ConstCharStar |
strIdEnd |
cpp.ConstCharStar |
pushIDPtr(ptrId: cpp.RawPointer<cpp.Void>): Voidpush pointer into the ID stack (will hash pointer).
| Name | Type |
|---|---|
ptrId |
cpp.RawPointer<cpp.Void> |
push integer into the ID stack (will hash integer).
| Name | Type |
|---|---|
intId |
Int |
popID(): Voidpop from the ID stack.
getID(strId: cpp.ConstCharStar): UIntcalculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself
| Name | Type |
|---|---|
strId |
cpp.ConstCharStar |
| Returns |
|---|
| UInt |
getIDStr(strIdBegin: cpp.ConstCharStar, strIdEnd: cpp.ConstCharStar): UInt| Name | Type |
|---|---|
strIdBegin |
cpp.ConstCharStar |
strIdEnd |
cpp.ConstCharStar |
| Returns |
|---|
| UInt |
getIDPtr(ptrId: cpp.RawPointer<cpp.Void>): UInt| Name | Type |
|---|---|
ptrId |
cpp.RawPointer<cpp.Void> |
| Returns |
|---|
| UInt |
| Name | Type |
|---|---|
intId |
Int |
| Returns |
|---|
| UInt |
text(text: cpp.ConstCharStar, ?textEnd: cpp.ConstCharStar = null): Voidraw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text.
| Name | Type | Default |
|---|---|---|
text |
cpp.ConstCharStar | |
textEnd |
cpp.ConstCharStar | null |
textUnformatted(text: cpp.ConstCharStar): VoidImplied text_end = NULL
| Name | Type |
|---|---|
text |
cpp.ConstCharStar |
textColored(col: ImVec4, text: cpp.ConstCharStar): Voidshortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor();
| Name | Type |
|---|---|
col |
ImVec4 |
text |
cpp.ConstCharStar |
textDisabled(text: cpp.ConstCharStar): Voidshortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor();
| Name | Type |
|---|---|
text |
cpp.ConstCharStar |
textWrapped(text: cpp.ConstCharStar): Voidshortcut for PushTextWrapPos(0.0f); Text(fmt, ...); PopTextWrapPos();. Note that this won't work on an auto-resizing window if there's no other widgets to extend the window width, yoy may need to set a size using SetNextWindowSize().
| Name | Type |
|---|---|
text |
cpp.ConstCharStar |
labelText(label: cpp.ConstCharStar, text: cpp.ConstCharStar): Voiddisplay text+label aligned the same way as value+label widgets
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
text |
cpp.ConstCharStar |
bulletText(text: cpp.ConstCharStar): Voidshortcut for Bullet()+Text()
| Name | Type |
|---|---|
text |
cpp.ConstCharStar |
separatorText(label: cpp.ConstCharStar): Voidcurrently: formatted text with a horizontal line
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
buttonEx(label: cpp.ConstCharStar, size: ImVec2): Boolbutton
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
size |
ImVec2 |
| Returns |
|---|
| Bool |
button(label: cpp.ConstCharStar): BoolImplied size = ImVec2(0, 0)
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
| Returns |
|---|
| Bool |
smallButton(label: cpp.ConstCharStar): Boolbutton with (FramePadding.y == 0) to easily embed within text
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
| Returns |
|---|
| Bool |
invisibleButton(strId: cpp.ConstCharStar, size: ImVec2, ?flags: Int = 0): Boolflexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.)
| Name | Type | Default |
|---|---|---|
strId |
cpp.ConstCharStar | |
size |
ImVec2 | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
arrowButton(strId: cpp.ConstCharStar, dir: Int): Boolsquare button with an arrow shape
| Name | Type |
|---|---|
strId |
cpp.ConstCharStar |
dir |
Int |
| Returns |
|---|
| Bool |
checkbox(label: cpp.ConstCharStar, v: cpp.Star): Bool| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
checkboxFlagsIntPtr(label: cpp.ConstCharStar, flags: cpp.Star, flagsValue: Int): Bool| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
flags |
cpp.Star |
flagsValue |
Int |
| Returns |
|---|
| Bool |
checkboxFlagsUintPtr(label: cpp.ConstCharStar, flags: cpp.Star, flagsValue: UInt): Bool| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
flags |
cpp.Star |
flagsValue |
UInt |
| Returns |
|---|
| Bool |
radioButton(label: cpp.ConstCharStar, active: Bool): Booluse with e.g. if (RadioButton("one", my_value==1)) { my_value = 1; }
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
active |
Bool |
| Returns |
|---|
| Bool |
radioButtonIntPtr(label: cpp.ConstCharStar, v: cpp.Star, vButton: Int): Boolshortcut to handle the above pattern when value is an integer
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
vButton |
Int |
| Returns |
|---|
| Bool |
progressBar(fraction: cpp.Float32, sizeArg: ImVec2, ?overlay: cpp.ConstCharStar = null): Void| Name | Type | Default |
|---|---|---|
fraction |
cpp.Float32 | |
sizeArg |
ImVec2 | |
overlay |
cpp.ConstCharStar | null |
bullet(): Voiddraw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses
textLink(label: cpp.ConstCharStar): Boolhyperlink text button, return true when clicked
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
| Returns |
|---|
| Bool |
textLinkOpenURLEx(label: cpp.ConstCharStar, ?url: cpp.ConstCharStar = null): Boolhyperlink text button, automatically open file/url when clicked
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
url |
cpp.ConstCharStar | null |
| Returns |
|---|
| Bool |
textLinkOpenURL(label: cpp.ConstCharStar): BoolImplied url = NULL
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
| Returns |
|---|
| Bool |
imageEx(texRef: ImTextureRef, imageSize: ImVec2, uv0: ImVec2, uv1: ImVec2): Void| Name | Type |
|---|---|
texRef |
ImTextureRef |
imageSize |
ImVec2 |
uv0 |
ImVec2 |
uv1 |
ImVec2 |
image(texRef: ImTextureRef, imageSize: ImVec2): VoidImplied uv0 = ImVec2(0, 0), uv1 = ImVec2(1, 1)
| Name | Type |
|---|---|
texRef |
ImTextureRef |
imageSize |
ImVec2 |
imageWithBgEx(texRef: ImTextureRef, imageSize: ImVec2, uv0: ImVec2, uv1: ImVec2, bgCol: ImVec4, tintCol: ImVec4): Void| Name | Type |
|---|---|
texRef |
ImTextureRef |
imageSize |
ImVec2 |
uv0 |
ImVec2 |
uv1 |
ImVec2 |
bgCol |
ImVec4 |
tintCol |
ImVec4 |
imageWithBg(texRef: ImTextureRef, imageSize: ImVec2): VoidImplied uv0 = ImVec2(0, 0), uv1 = ImVec2(1, 1), bg_col = ImVec4(0, 0, 0, 0), tint_col = ImVec4(1, 1, 1, 1)
| Name | Type |
|---|---|
texRef |
ImTextureRef |
imageSize |
ImVec2 |
imageButtonEx(strId: cpp.ConstCharStar, texRef: ImTextureRef, imageSize: ImVec2, uv0: ImVec2, uv1: ImVec2, bgCol: ImVec4, tintCol: ImVec4): Bool| Name | Type |
|---|---|
strId |
cpp.ConstCharStar |
texRef |
ImTextureRef |
imageSize |
ImVec2 |
uv0 |
ImVec2 |
uv1 |
ImVec2 |
bgCol |
ImVec4 |
tintCol |
ImVec4 |
| Returns |
|---|
| Bool |
imageButton(strId: cpp.ConstCharStar, texRef: ImTextureRef, imageSize: ImVec2): BoolImplied uv0 = ImVec2(0, 0), uv1 = ImVec2(1, 1), bg_col = ImVec4(0, 0, 0, 0), tint_col = ImVec4(1, 1, 1, 1)
| Name | Type |
|---|---|
strId |
cpp.ConstCharStar |
texRef |
ImTextureRef |
imageSize |
ImVec2 |
| Returns |
|---|
| Bool |
beginCombo(label: cpp.ConstCharStar, previewValue: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
previewValue |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
endCombo(): Voidonly call EndCombo() if BeginCombo() returns true!
comboCharEx(label: cpp.ConstCharStar, currentItem: cpp.Star, items: cpp.RawPointer<cpp.ConstCharStar>, itemsCount: Int, ?popupMaxHeightInItems: Int = -1): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
currentItem |
cpp.Star | |
items |
cpp.RawPointer<cpp.ConstCharStar> | |
itemsCount |
Int | |
popupMaxHeightInItems |
Int | -1 |
| Returns |
|---|
| Bool |
comboChar(label: cpp.ConstCharStar, currentItem: cpp.Star, items: cpp.RawPointer<cpp.ConstCharStar>, itemsCount: Int): BoolImplied popup_max_height_in_items = -1
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
currentItem |
cpp.Star |
items |
cpp.RawPointer<cpp.ConstCharStar> |
itemsCount |
Int |
| Returns |
|---|
| Bool |
comboEx(label: cpp.ConstCharStar, currentItem: cpp.Star, itemsSeparatedByZeros: cpp.ConstCharStar, ?popupMaxHeightInItems: Int = -1): BoolSeparate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0"
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
currentItem |
cpp.Star | |
itemsSeparatedByZeros |
cpp.ConstCharStar | |
popupMaxHeightInItems |
Int | -1 |
| Returns |
|---|
| Bool |
combo(label: cpp.ConstCharStar, currentItem: cpp.Star, itemsSeparatedByZeros: cpp.ConstCharStar): BoolImplied popup_max_height_in_items = -1
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
currentItem |
cpp.Star |
itemsSeparatedByZeros |
cpp.ConstCharStar |
| Returns |
|---|
| Bool |
comboCallbackEx(label: cpp.ConstCharStar, currentItem: cpp.Star, getter: ImGuiOpaqueCallback, userData: cpp.RawPointer<cpp.Void>, itemsCount: Int, ?popupMaxHeightInItems: Int = -1): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
currentItem |
cpp.Star | |
getter |
ImGuiOpaqueCallback | |
userData |
cpp.RawPointer<cpp.Void> | |
itemsCount |
Int | |
popupMaxHeightInItems |
Int | -1 |
| Returns |
|---|
| Bool |
comboCallback(label: cpp.ConstCharStar, currentItem: cpp.Star, getter: ImGuiOpaqueCallback, userData: cpp.RawPointer<cpp.Void>, itemsCount: Int): BoolImplied popup_max_height_in_items = -1
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
currentItem |
cpp.Star |
getter |
ImGuiOpaqueCallback |
userData |
cpp.RawPointer<cpp.Void> |
itemsCount |
Int |
| Returns |
|---|
| Bool |
dragFloatEx(label: cpp.ConstCharStar, v: cpp.Star, ?vSpeed: cpp.Float32 = 1.0, ?vMin: cpp.Float32 = 0.0, ?vMax: cpp.Float32 = 0.0, format: cpp.ConstCharStar, ?flags: Int = 0): BoolIf v_min >= v_max we have no bound
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vSpeed |
cpp.Float32 | 1.0 |
vMin |
cpp.Float32 | 0.0 |
vMax |
cpp.Float32 | 0.0 |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
dragFloat(label: cpp.ConstCharStar, v: cpp.Star): BoolImplied v_speed = 1.0f, v_min = 0.0f, v_max = 0.0f, format = "%.3f", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
dragFloat2Ex(label: cpp.ConstCharStar, v: cpp.Star, ?vSpeed: cpp.Float32 = 1.0, ?vMin: cpp.Float32 = 0.0, ?vMax: cpp.Float32 = 0.0, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vSpeed |
cpp.Float32 | 1.0 |
vMin |
cpp.Float32 | 0.0 |
vMax |
cpp.Float32 | 0.0 |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
dragFloat2(label: cpp.ConstCharStar, v: cpp.Star): BoolImplied v_speed = 1.0f, v_min = 0.0f, v_max = 0.0f, format = "%.3f", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
dragFloat3Ex(label: cpp.ConstCharStar, v: cpp.Star, ?vSpeed: cpp.Float32 = 1.0, ?vMin: cpp.Float32 = 0.0, ?vMax: cpp.Float32 = 0.0, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vSpeed |
cpp.Float32 | 1.0 |
vMin |
cpp.Float32 | 0.0 |
vMax |
cpp.Float32 | 0.0 |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
dragFloat3(label: cpp.ConstCharStar, v: cpp.Star): BoolImplied v_speed = 1.0f, v_min = 0.0f, v_max = 0.0f, format = "%.3f", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
dragFloat4Ex(label: cpp.ConstCharStar, v: cpp.Star, ?vSpeed: cpp.Float32 = 1.0, ?vMin: cpp.Float32 = 0.0, ?vMax: cpp.Float32 = 0.0, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vSpeed |
cpp.Float32 | 1.0 |
vMin |
cpp.Float32 | 0.0 |
vMax |
cpp.Float32 | 0.0 |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
dragFloat4(label: cpp.ConstCharStar, v: cpp.Star): BoolImplied v_speed = 1.0f, v_min = 0.0f, v_max = 0.0f, format = "%.3f", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
dragFloatRange2Ex(label: cpp.ConstCharStar, vCurrentMin: cpp.Star, vCurrentMax: cpp.Star, ?vSpeed: cpp.Float32 = 1.0, ?vMin: cpp.Float32 = 0.0, ?vMax: cpp.Float32 = 0.0, format: cpp.ConstCharStar, ?formatMax: cpp.ConstCharStar = null, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
vCurrentMin |
cpp.Star | |
vCurrentMax |
cpp.Star | |
vSpeed |
cpp.Float32 | 1.0 |
vMin |
cpp.Float32 | 0.0 |
vMax |
cpp.Float32 | 0.0 |
format |
cpp.ConstCharStar | |
formatMax |
cpp.ConstCharStar | null |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
dragFloatRange2(label: cpp.ConstCharStar, vCurrentMin: cpp.Star, vCurrentMax: cpp.Star): BoolImplied v_speed = 1.0f, v_min = 0.0f, v_max = 0.0f, format = "%.3f", format_max = NULL, flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
vCurrentMin |
cpp.Star |
vCurrentMax |
cpp.Star |
| Returns |
|---|
| Bool |
dragIntEx(label: cpp.ConstCharStar, v: cpp.Star, ?vSpeed: cpp.Float32 = 1.0, ?vMin: Int = 0, ?vMax: Int = 0, format: cpp.ConstCharStar, ?flags: Int = 0): BoolIf v_min >= v_max we have no bound
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vSpeed |
cpp.Float32 | 1.0 |
vMin |
Int | 0 |
vMax |
Int | 0 |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
dragInt(label: cpp.ConstCharStar, v: cpp.Star): BoolImplied v_speed = 1.0f, v_min = 0, v_max = 0, format = "%d", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
dragInt2Ex(label: cpp.ConstCharStar, v: cpp.Star, ?vSpeed: cpp.Float32 = 1.0, ?vMin: Int = 0, ?vMax: Int = 0, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vSpeed |
cpp.Float32 | 1.0 |
vMin |
Int | 0 |
vMax |
Int | 0 |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
dragInt2(label: cpp.ConstCharStar, v: cpp.Star): BoolImplied v_speed = 1.0f, v_min = 0, v_max = 0, format = "%d", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
dragInt3Ex(label: cpp.ConstCharStar, v: cpp.Star, ?vSpeed: cpp.Float32 = 1.0, ?vMin: Int = 0, ?vMax: Int = 0, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vSpeed |
cpp.Float32 | 1.0 |
vMin |
Int | 0 |
vMax |
Int | 0 |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
dragInt3(label: cpp.ConstCharStar, v: cpp.Star): BoolImplied v_speed = 1.0f, v_min = 0, v_max = 0, format = "%d", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
dragInt4Ex(label: cpp.ConstCharStar, v: cpp.Star, ?vSpeed: cpp.Float32 = 1.0, ?vMin: Int = 0, ?vMax: Int = 0, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vSpeed |
cpp.Float32 | 1.0 |
vMin |
Int | 0 |
vMax |
Int | 0 |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
dragInt4(label: cpp.ConstCharStar, v: cpp.Star): BoolImplied v_speed = 1.0f, v_min = 0, v_max = 0, format = "%d", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
dragIntRange2Ex(label: cpp.ConstCharStar, vCurrentMin: cpp.Star, vCurrentMax: cpp.Star, ?vSpeed: cpp.Float32 = 1.0, ?vMin: Int = 0, ?vMax: Int = 0, format: cpp.ConstCharStar, ?formatMax: cpp.ConstCharStar = null, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
vCurrentMin |
cpp.Star | |
vCurrentMax |
cpp.Star | |
vSpeed |
cpp.Float32 | 1.0 |
vMin |
Int | 0 |
vMax |
Int | 0 |
format |
cpp.ConstCharStar | |
formatMax |
cpp.ConstCharStar | null |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
dragIntRange2(label: cpp.ConstCharStar, vCurrentMin: cpp.Star, vCurrentMax: cpp.Star): BoolImplied v_speed = 1.0f, v_min = 0, v_max = 0, format = "%d", format_max = NULL, flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
vCurrentMin |
cpp.Star |
vCurrentMax |
cpp.Star |
| Returns |
|---|
| Bool |
dragScalarEx(label: cpp.ConstCharStar, dataType: Int, pData: cpp.RawPointer<cpp.Void>, ?vSpeed: cpp.Float32 = 1.0, ?pMin: cpp.RawPointer<cpp.Void> = null, ?pMax: cpp.RawPointer<cpp.Void> = null, ?format: cpp.ConstCharStar = null, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
dataType |
Int | |
pData |
cpp.RawPointer<cpp.Void> | |
vSpeed |
cpp.Float32 | 1.0 |
pMin |
cpp.RawPointer<cpp.Void> | null |
pMax |
cpp.RawPointer<cpp.Void> | null |
format |
cpp.ConstCharStar | null |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
dragScalar(label: cpp.ConstCharStar, dataType: Int, pData: cpp.RawPointer<cpp.Void>): BoolImplied v_speed = 1.0f, p_min = NULL, p_max = NULL, format = NULL, flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
dataType |
Int |
pData |
cpp.RawPointer<cpp.Void> |
| Returns |
|---|
| Bool |
dragScalarNEx(label: cpp.ConstCharStar, dataType: Int, pData: cpp.RawPointer<cpp.Void>, components: Int, ?vSpeed: cpp.Float32 = 1.0, ?pMin: cpp.RawPointer<cpp.Void> = null, ?pMax: cpp.RawPointer<cpp.Void> = null, ?format: cpp.ConstCharStar = null, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
dataType |
Int | |
pData |
cpp.RawPointer<cpp.Void> | |
components |
Int | |
vSpeed |
cpp.Float32 | 1.0 |
pMin |
cpp.RawPointer<cpp.Void> | null |
pMax |
cpp.RawPointer<cpp.Void> | null |
format |
cpp.ConstCharStar | null |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
dragScalarN(label: cpp.ConstCharStar, dataType: Int, pData: cpp.RawPointer<cpp.Void>, components: Int): BoolImplied v_speed = 1.0f, p_min = NULL, p_max = NULL, format = NULL, flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
dataType |
Int |
pData |
cpp.RawPointer<cpp.Void> |
components |
Int |
| Returns |
|---|
| Bool |
sliderFloatEx(label: cpp.ConstCharStar, v: cpp.Star, vMin: cpp.Float32, vMax: cpp.Float32, format: cpp.ConstCharStar, ?flags: Int = 0): Booladjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display.
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vMin |
cpp.Float32 | |
vMax |
cpp.Float32 | |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
sliderFloat(label: cpp.ConstCharStar, v: cpp.Star, vMin: cpp.Float32, vMax: cpp.Float32): BoolImplied format = "%.3f", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
vMin |
cpp.Float32 |
vMax |
cpp.Float32 |
| Returns |
|---|
| Bool |
sliderFloat2Ex(label: cpp.ConstCharStar, v: cpp.Star, vMin: cpp.Float32, vMax: cpp.Float32, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vMin |
cpp.Float32 | |
vMax |
cpp.Float32 | |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
sliderFloat2(label: cpp.ConstCharStar, v: cpp.Star, vMin: cpp.Float32, vMax: cpp.Float32): BoolImplied format = "%.3f", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
vMin |
cpp.Float32 |
vMax |
cpp.Float32 |
| Returns |
|---|
| Bool |
sliderFloat3Ex(label: cpp.ConstCharStar, v: cpp.Star, vMin: cpp.Float32, vMax: cpp.Float32, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vMin |
cpp.Float32 | |
vMax |
cpp.Float32 | |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
sliderFloat3(label: cpp.ConstCharStar, v: cpp.Star, vMin: cpp.Float32, vMax: cpp.Float32): BoolImplied format = "%.3f", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
vMin |
cpp.Float32 |
vMax |
cpp.Float32 |
| Returns |
|---|
| Bool |
sliderFloat4Ex(label: cpp.ConstCharStar, v: cpp.Star, vMin: cpp.Float32, vMax: cpp.Float32, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vMin |
cpp.Float32 | |
vMax |
cpp.Float32 | |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
sliderFloat4(label: cpp.ConstCharStar, v: cpp.Star, vMin: cpp.Float32, vMax: cpp.Float32): BoolImplied format = "%.3f", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
vMin |
cpp.Float32 |
vMax |
cpp.Float32 |
| Returns |
|---|
| Bool |
sliderAngleEx(label: cpp.ConstCharStar, vRad: cpp.Star, ?vDegreesMin: cpp.Float32 = -360.0, vDegreesMax: cpp.Float32, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
vRad |
cpp.Star | |
vDegreesMin |
cpp.Float32 | -360.0 |
vDegreesMax |
cpp.Float32 | |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
sliderAngle(label: cpp.ConstCharStar, vRad: cpp.Star): BoolImplied v_degrees_min = -360.0f, v_degrees_max = +360.0f, format = "%.0f deg", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
vRad |
cpp.Star |
| Returns |
|---|
| Bool |
sliderIntEx(label: cpp.ConstCharStar, v: cpp.Star, vMin: Int, vMax: Int, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vMin |
Int | |
vMax |
Int | |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
sliderInt(label: cpp.ConstCharStar, v: cpp.Star, vMin: Int, vMax: Int): BoolImplied format = "%d", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
vMin |
Int |
vMax |
Int |
| Returns |
|---|
| Bool |
sliderInt2Ex(label: cpp.ConstCharStar, v: cpp.Star, vMin: Int, vMax: Int, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vMin |
Int | |
vMax |
Int | |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
sliderInt2(label: cpp.ConstCharStar, v: cpp.Star, vMin: Int, vMax: Int): BoolImplied format = "%d", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
vMin |
Int |
vMax |
Int |
| Returns |
|---|
| Bool |
sliderInt3Ex(label: cpp.ConstCharStar, v: cpp.Star, vMin: Int, vMax: Int, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vMin |
Int | |
vMax |
Int | |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
sliderInt3(label: cpp.ConstCharStar, v: cpp.Star, vMin: Int, vMax: Int): BoolImplied format = "%d", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
vMin |
Int |
vMax |
Int |
| Returns |
|---|
| Bool |
sliderInt4Ex(label: cpp.ConstCharStar, v: cpp.Star, vMin: Int, vMax: Int, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
vMin |
Int | |
vMax |
Int | |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
sliderInt4(label: cpp.ConstCharStar, v: cpp.Star, vMin: Int, vMax: Int): BoolImplied format = "%d", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
vMin |
Int |
vMax |
Int |
| Returns |
|---|
| Bool |
sliderScalarEx(label: cpp.ConstCharStar, dataType: Int, pData: cpp.RawPointer<cpp.Void>, pMin: cpp.RawPointer<cpp.Void>, pMax: cpp.RawPointer<cpp.Void>, ?format: cpp.ConstCharStar = null, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
dataType |
Int | |
pData |
cpp.RawPointer<cpp.Void> | |
pMin |
cpp.RawPointer<cpp.Void> | |
pMax |
cpp.RawPointer<cpp.Void> | |
format |
cpp.ConstCharStar | null |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
sliderScalar(label: cpp.ConstCharStar, dataType: Int, pData: cpp.RawPointer<cpp.Void>, pMin: cpp.RawPointer<cpp.Void>, pMax: cpp.RawPointer<cpp.Void>): BoolImplied format = NULL, flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
dataType |
Int |
pData |
cpp.RawPointer<cpp.Void> |
pMin |
cpp.RawPointer<cpp.Void> |
pMax |
cpp.RawPointer<cpp.Void> |
| Returns |
|---|
| Bool |
sliderScalarNEx(label: cpp.ConstCharStar, dataType: Int, pData: cpp.RawPointer<cpp.Void>, components: Int, pMin: cpp.RawPointer<cpp.Void>, pMax: cpp.RawPointer<cpp.Void>, ?format: cpp.ConstCharStar = null, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
dataType |
Int | |
pData |
cpp.RawPointer<cpp.Void> | |
components |
Int | |
pMin |
cpp.RawPointer<cpp.Void> | |
pMax |
cpp.RawPointer<cpp.Void> | |
format |
cpp.ConstCharStar | null |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
sliderScalarN(label: cpp.ConstCharStar, dataType: Int, pData: cpp.RawPointer<cpp.Void>, components: Int, pMin: cpp.RawPointer<cpp.Void>, pMax: cpp.RawPointer<cpp.Void>): BoolImplied format = NULL, flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
dataType |
Int |
pData |
cpp.RawPointer<cpp.Void> |
components |
Int |
pMin |
cpp.RawPointer<cpp.Void> |
pMax |
cpp.RawPointer<cpp.Void> |
| Returns |
|---|
| Bool |
vSliderFloatEx(label: cpp.ConstCharStar, size: ImVec2, v: cpp.Star, vMin: cpp.Float32, vMax: cpp.Float32, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
size |
ImVec2 | |
v |
cpp.Star | |
vMin |
cpp.Float32 | |
vMax |
cpp.Float32 | |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
vSliderFloat(label: cpp.ConstCharStar, size: ImVec2, v: cpp.Star, vMin: cpp.Float32, vMax: cpp.Float32): BoolImplied format = "%.3f", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
size |
ImVec2 |
v |
cpp.Star |
vMin |
cpp.Float32 |
vMax |
cpp.Float32 |
| Returns |
|---|
| Bool |
vSliderIntEx(label: cpp.ConstCharStar, size: ImVec2, v: cpp.Star, vMin: Int, vMax: Int, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
size |
ImVec2 | |
v |
cpp.Star | |
vMin |
Int | |
vMax |
Int | |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
Implied format = "%d", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
size |
ImVec2 |
v |
cpp.Star |
vMin |
Int |
vMax |
Int |
| Returns |
|---|
| Bool |
vSliderScalarEx(label: cpp.ConstCharStar, size: ImVec2, dataType: Int, pData: cpp.RawPointer<cpp.Void>, pMin: cpp.RawPointer<cpp.Void>, pMax: cpp.RawPointer<cpp.Void>, ?format: cpp.ConstCharStar = null, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
size |
ImVec2 | |
dataType |
Int | |
pData |
cpp.RawPointer<cpp.Void> | |
pMin |
cpp.RawPointer<cpp.Void> | |
pMax |
cpp.RawPointer<cpp.Void> | |
format |
cpp.ConstCharStar | null |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
vSliderScalar(label: cpp.ConstCharStar, size: ImVec2, dataType: Int, pData: cpp.RawPointer<cpp.Void>, pMin: cpp.RawPointer<cpp.Void>, pMax: cpp.RawPointer<cpp.Void>): BoolImplied format = NULL, flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
size |
ImVec2 |
dataType |
Int |
pData |
cpp.RawPointer<cpp.Void> |
pMin |
cpp.RawPointer<cpp.Void> |
pMax |
cpp.RawPointer<cpp.Void> |
| Returns |
|---|
| Bool |
inputTextEx(label: cpp.ConstCharStar, buf: cpp.Star, bufSize: cpp.SizeT, ?flags: Int = 0, ?callback: Null<ImGuiOpaqueCallback> = null, ?userData: cpp.RawPointer<cpp.Void> = null): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
buf |
cpp.Star | |
bufSize |
cpp.SizeT | |
flags |
Int | 0 |
callback |
Null<ImGuiOpaqueCallback> | null |
userData |
cpp.RawPointer<cpp.Void> | null |
| Returns |
|---|
| Bool |
inputText(label: cpp.ConstCharStar, buf: cpp.Star, bufSize: cpp.SizeT, ?flags: Int = 0): BoolImplied callback = NULL, user_data = NULL
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
buf |
cpp.Star | |
bufSize |
cpp.SizeT | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
inputTextMultilineEx(label: cpp.ConstCharStar, buf: cpp.Star, bufSize: cpp.SizeT, size: ImVec2, ?flags: Int = 0, ?callback: Null<ImGuiOpaqueCallback> = null, ?userData: cpp.RawPointer<cpp.Void> = null): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
buf |
cpp.Star | |
bufSize |
cpp.SizeT | |
size |
ImVec2 | |
flags |
Int | 0 |
callback |
Null<ImGuiOpaqueCallback> | null |
userData |
cpp.RawPointer<cpp.Void> | null |
| Returns |
|---|
| Bool |
inputTextMultiline(label: cpp.ConstCharStar, buf: cpp.Star, bufSize: cpp.SizeT): BoolImplied size = ImVec2(0, 0), flags = 0, callback = NULL, user_data = NULL
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
buf |
cpp.Star |
bufSize |
cpp.SizeT |
| Returns |
|---|
| Bool |
inputTextWithHintEx(label: cpp.ConstCharStar, hint: cpp.ConstCharStar, buf: cpp.Star, bufSize: cpp.SizeT, ?flags: Int = 0, ?callback: Null<ImGuiOpaqueCallback> = null, ?userData: cpp.RawPointer<cpp.Void> = null): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
hint |
cpp.ConstCharStar | |
buf |
cpp.Star | |
bufSize |
cpp.SizeT | |
flags |
Int | 0 |
callback |
Null<ImGuiOpaqueCallback> | null |
userData |
cpp.RawPointer<cpp.Void> | null |
| Returns |
|---|
| Bool |
inputTextWithHint(label: cpp.ConstCharStar, hint: cpp.ConstCharStar, buf: cpp.Star, bufSize: cpp.SizeT, ?flags: Int = 0): BoolImplied callback = NULL, user_data = NULL
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
hint |
cpp.ConstCharStar | |
buf |
cpp.Star | |
bufSize |
cpp.SizeT | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
inputFloatEx(label: cpp.ConstCharStar, v: cpp.Star, ?step: cpp.Float32 = 0.0, ?stepFast: cpp.Float32 = 0.0, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
step |
cpp.Float32 | 0.0 |
stepFast |
cpp.Float32 | 0.0 |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
inputFloat(label: cpp.ConstCharStar, v: cpp.Star): BoolImplied step = 0.0f, step_fast = 0.0f, format = "%.3f", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
inputFloat2Ex(label: cpp.ConstCharStar, v: cpp.Star, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
inputFloat2(label: cpp.ConstCharStar, v: cpp.Star): BoolImplied format = "%.3f", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
inputFloat3Ex(label: cpp.ConstCharStar, v: cpp.Star, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
inputFloat3(label: cpp.ConstCharStar, v: cpp.Star): BoolImplied format = "%.3f", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
inputFloat4Ex(label: cpp.ConstCharStar, v: cpp.Star, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
inputFloat4(label: cpp.ConstCharStar, v: cpp.Star): BoolImplied format = "%.3f", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
inputIntEx(label: cpp.ConstCharStar, v: cpp.Star, ?step: Int = 1, ?stepFast: Int = 100, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
step |
Int | 1 |
stepFast |
Int | 100 |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
inputInt(label: cpp.ConstCharStar, v: cpp.Star): BoolImplied step = 1, step_fast = 100, flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
inputInt2(label: cpp.ConstCharStar, v: cpp.Star, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
inputInt3(label: cpp.ConstCharStar, v: cpp.Star, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
inputInt4(label: cpp.ConstCharStar, v: cpp.Star, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
inputDoubleEx(label: cpp.ConstCharStar, v: cpp.Star, ?step: Float = 0.0, ?stepFast: Float = 0.0, format: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
v |
cpp.Star | |
step |
Float | 0.0 |
stepFast |
Float | 0.0 |
format |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
inputDouble(label: cpp.ConstCharStar, v: cpp.Star): BoolImplied step = 0.0, step_fast = 0.0, format = "%.6f", flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
v |
cpp.Star |
| Returns |
|---|
| Bool |
inputScalarEx(label: cpp.ConstCharStar, dataType: Int, pData: cpp.RawPointer<cpp.Void>, ?pStep: cpp.RawPointer<cpp.Void> = null, ?pStepFast: cpp.RawPointer<cpp.Void> = null, ?format: cpp.ConstCharStar = null, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
dataType |
Int | |
pData |
cpp.RawPointer<cpp.Void> | |
pStep |
cpp.RawPointer<cpp.Void> | null |
pStepFast |
cpp.RawPointer<cpp.Void> | null |
format |
cpp.ConstCharStar | null |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
inputScalar(label: cpp.ConstCharStar, dataType: Int, pData: cpp.RawPointer<cpp.Void>): BoolImplied p_step = NULL, p_step_fast = NULL, format = NULL, flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
dataType |
Int |
pData |
cpp.RawPointer<cpp.Void> |
| Returns |
|---|
| Bool |
inputScalarNEx(label: cpp.ConstCharStar, dataType: Int, pData: cpp.RawPointer<cpp.Void>, components: Int, ?pStep: cpp.RawPointer<cpp.Void> = null, ?pStepFast: cpp.RawPointer<cpp.Void> = null, ?format: cpp.ConstCharStar = null, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
dataType |
Int | |
pData |
cpp.RawPointer<cpp.Void> | |
components |
Int | |
pStep |
cpp.RawPointer<cpp.Void> | null |
pStepFast |
cpp.RawPointer<cpp.Void> | null |
format |
cpp.ConstCharStar | null |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
inputScalarN(label: cpp.ConstCharStar, dataType: Int, pData: cpp.RawPointer<cpp.Void>, components: Int): BoolImplied p_step = NULL, p_step_fast = NULL, format = NULL, flags = 0
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
dataType |
Int |
pData |
cpp.RawPointer<cpp.Void> |
components |
Int |
| Returns |
|---|
| Bool |
colorEdit3(label: cpp.ConstCharStar, col: cpp.Star, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
col |
cpp.Star | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
colorEdit4(label: cpp.ConstCharStar, col: cpp.Star, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
col |
cpp.Star | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
colorPicker3(label: cpp.ConstCharStar, col: cpp.Star, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
col |
cpp.Star | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
colorPicker4(label: cpp.ConstCharStar, col: cpp.Star, ?flags: Int = 0, ?refCol: cpp.Star = null): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
col |
cpp.Star | |
flags |
Int | 0 |
refCol |
cpp.Star | null |
| Returns |
|---|
| Bool |
colorButtonEx(descId: cpp.ConstCharStar, col: ImVec4, ?flags: Int = 0, size: ImVec2): Booldisplay a color square/button, hover for details, return true when pressed.
| Name | Type | Default |
|---|---|---|
descId |
cpp.ConstCharStar | |
col |
ImVec4 | |
flags |
Int | 0 |
size |
ImVec2 |
| Returns |
|---|
| Bool |
colorButton(descId: cpp.ConstCharStar, col: ImVec4, ?flags: Int = 0): BoolImplied size = ImVec2(0, 0)
| Name | Type | Default |
|---|---|---|
descId |
cpp.ConstCharStar | |
col |
ImVec4 | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
initialize current options (generally on application startup) if you want to select a default format, picker type, etc. User will be able to change many settings, unless you pass the _NoOptions flag to your calls.
| Name | Type |
|---|---|
flags |
Int |
treeNode(label: cpp.ConstCharStar): Bool| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
| Returns |
|---|
| Bool |
treeNodeStr(strId: cpp.ConstCharStar, text: cpp.ConstCharStar): Boolhelper variation to easily decorrelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet().
| Name | Type |
|---|---|
strId |
cpp.ConstCharStar |
text |
cpp.ConstCharStar |
| Returns |
|---|
| Bool |
treeNodePtr(ptrId: cpp.RawPointer<cpp.Void>, text: cpp.ConstCharStar): Bool"
| Name | Type |
|---|---|
ptrId |
cpp.RawPointer<cpp.Void> |
text |
cpp.ConstCharStar |
| Returns |
|---|
| Bool |
treeNodeEx(label: cpp.ConstCharStar, ?flags: Int = 0): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
treeNodeExStr(strId: cpp.ConstCharStar, flags: Int, text: cpp.ConstCharStar): Bool| Name | Type |
|---|---|
strId |
cpp.ConstCharStar |
flags |
Int |
text |
cpp.ConstCharStar |
| Returns |
|---|
| Bool |
treeNodeExPtr(ptrId: cpp.RawPointer<cpp.Void>, flags: Int, text: cpp.ConstCharStar): Bool| Name | Type |
|---|---|
ptrId |
cpp.RawPointer<cpp.Void> |
flags |
Int |
text |
cpp.ConstCharStar |
| Returns |
|---|
| Bool |
treePush(strId: cpp.ConstCharStar): Void~ Indent()+PushID(). Already called by TreeNode() when returning true, but you can call TreePush/TreePop yourself if desired.
| Name | Type |
|---|---|
strId |
cpp.ConstCharStar |
treePushPtr(ptrId: cpp.RawPointer<cpp.Void>): Void"
| Name | Type |
|---|---|
ptrId |
cpp.RawPointer<cpp.Void> |
treePop(): Void~ Unindent()+PopID()
getTreeNodeToLabelSpacing(): cpp.Float32horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode
| Returns |
|---|
| cpp.Float32 |
collapsingHeader(label: cpp.ConstCharStar, ?flags: Int = 0): Boolif returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop().
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
collapsingHeaderBoolPtr(label: cpp.ConstCharStar, pVisible: cpp.Star, ?flags: Int = 0): Boolwhen 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header.
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
pVisible |
cpp.Star | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
set next TreeNode/CollapsingHeader open state.
| Name | Type | Default |
|---|---|---|
isOpen |
Bool | |
cond |
Int | 0 |
set id to use for open/close storage (default to same as item id).
| Name | Type |
|---|---|
storageId |
UInt |
retrieve tree node open/close state.
| Name | Type |
|---|---|
storageId |
UInt |
| Returns |
|---|
| Bool |
selectableEx(label: cpp.ConstCharStar, ?selected: Bool = false, ?flags: Int = 0, size: ImVec2): Bool"bool selected" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
selected |
Bool | false |
flags |
Int | 0 |
size |
ImVec2 |
| Returns |
|---|
| Bool |
selectable(label: cpp.ConstCharStar): BoolImplied selected = false, flags = 0, size = ImVec2(0, 0)
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
| Returns |
|---|
| Bool |
selectableBoolPtrEx(label: cpp.ConstCharStar, pSelected: cpp.Star, ?flags: Int = 0, size: ImVec2): Bool"bool* p_selected" point to the selection state (read-write), as a convenient helper.
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
pSelected |
cpp.Star | |
flags |
Int | 0 |
size |
ImVec2 |
| Returns |
|---|
| Bool |
selectableBoolPtr(label: cpp.ConstCharStar, pSelected: cpp.Star, ?flags: Int = 0): BoolImplied size = ImVec2(0, 0)
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
pSelected |
cpp.Star | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
| Name | Type | Default |
|---|---|---|
flags |
Int | |
selectionSize |
Int | -1 |
itemsCount |
Int | -1 |
| Returns |
|---|
| cpp.Star |
Implied selection_size = -1, items_count = -1
| Name | Type |
|---|---|
flags |
Int |
| Returns |
|---|
| cpp.Star |
endMultiSelect(): cpp.Star| Returns |
|---|
| cpp.Star |
| Name | Type |
|---|---|
selectionUserData |
cpp.Int64 |
isItemToggledSelection(): BoolWas the last item selection state toggled? Useful if you need the per-item information before reaching EndMultiSelect(). We only returns toggle event in order to handle clipping correctly.
| Returns |
|---|
| Bool |
beginListBox(label: cpp.ConstCharStar, size: ImVec2): Boolopen a framed scrolling region
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
size |
ImVec2 |
| Returns |
|---|
| Bool |
endListBox(): Voidonly call EndListBox() if BeginListBox() returned true!
listBox(label: cpp.ConstCharStar, currentItem: cpp.Star, items: cpp.RawPointer<cpp.ConstCharStar>, itemsCount: Int, ?heightInItems: Int = -1): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
currentItem |
cpp.Star | |
items |
cpp.RawPointer<cpp.ConstCharStar> | |
itemsCount |
Int | |
heightInItems |
Int | -1 |
| Returns |
|---|
| Bool |
listBoxCallbackEx(label: cpp.ConstCharStar, currentItem: cpp.Star, getter: ImGuiOpaqueCallback, userData: cpp.RawPointer<cpp.Void>, itemsCount: Int, ?heightInItems: Int = -1): Bool| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
currentItem |
cpp.Star | |
getter |
ImGuiOpaqueCallback | |
userData |
cpp.RawPointer<cpp.Void> | |
itemsCount |
Int | |
heightInItems |
Int | -1 |
| Returns |
|---|
| Bool |
listBoxCallback(label: cpp.ConstCharStar, currentItem: cpp.Star, getter: ImGuiOpaqueCallback, userData: cpp.RawPointer<cpp.Void>, itemsCount: Int): BoolImplied height_in_items = -1
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
currentItem |
cpp.Star |
getter |
ImGuiOpaqueCallback |
userData |
cpp.RawPointer<cpp.Void> |
itemsCount |
Int |
| Returns |
|---|
| Bool |
plotLinesEx(label: cpp.ConstCharStar, values: cpp.Star, valuesCount: Int, ?valuesOffset: Int = 0, ?overlayText: cpp.ConstCharStar = null, ?scaleMin: cpp.Float32 = 3.402823466e+38, ?scaleMax: cpp.Float32 = 3.402823466e+38, graphSize: ImVec2, ?stride: Int = 4): Void| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
values |
cpp.Star | |
valuesCount |
Int | |
valuesOffset |
Int | 0 |
overlayText |
cpp.ConstCharStar | null |
scaleMin |
cpp.Float32 | 3.402823466e+38 |
scaleMax |
cpp.Float32 | 3.402823466e+38 |
graphSize |
ImVec2 | |
stride |
Int | 4 |
plotLines(label: cpp.ConstCharStar, values: cpp.Star, valuesCount: Int): VoidImplied values_offset = 0, overlay_text = NULL, scale_min = FLT_MAX, scale_max = FLT_MAX, graph_size = ImVec2(0, 0), stride = sizeof(float)
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
values |
cpp.Star |
valuesCount |
Int |
plotLinesCallbackEx(label: cpp.ConstCharStar, valuesGetter: ImGuiOpaqueCallback, data: cpp.RawPointer<cpp.Void>, valuesCount: Int, ?valuesOffset: Int = 0, ?overlayText: cpp.ConstCharStar = null, ?scaleMin: cpp.Float32 = 3.402823466e+38, ?scaleMax: cpp.Float32 = 3.402823466e+38, graphSize: ImVec2): Void| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
valuesGetter |
ImGuiOpaqueCallback | |
data |
cpp.RawPointer<cpp.Void> | |
valuesCount |
Int | |
valuesOffset |
Int | 0 |
overlayText |
cpp.ConstCharStar | null |
scaleMin |
cpp.Float32 | 3.402823466e+38 |
scaleMax |
cpp.Float32 | 3.402823466e+38 |
graphSize |
ImVec2 |
plotLinesCallback(label: cpp.ConstCharStar, valuesGetter: ImGuiOpaqueCallback, data: cpp.RawPointer<cpp.Void>, valuesCount: Int): VoidImplied values_offset = 0, overlay_text = NULL, scale_min = FLT_MAX, scale_max = FLT_MAX, graph_size = ImVec2(0, 0)
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
valuesGetter |
ImGuiOpaqueCallback |
data |
cpp.RawPointer<cpp.Void> |
valuesCount |
Int |
plotHistogramEx(label: cpp.ConstCharStar, values: cpp.Star, valuesCount: Int, ?valuesOffset: Int = 0, ?overlayText: cpp.ConstCharStar = null, ?scaleMin: cpp.Float32 = 3.402823466e+38, ?scaleMax: cpp.Float32 = 3.402823466e+38, graphSize: ImVec2, ?stride: Int = 4): Void| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
values |
cpp.Star | |
valuesCount |
Int | |
valuesOffset |
Int | 0 |
overlayText |
cpp.ConstCharStar | null |
scaleMin |
cpp.Float32 | 3.402823466e+38 |
scaleMax |
cpp.Float32 | 3.402823466e+38 |
graphSize |
ImVec2 | |
stride |
Int | 4 |
plotHistogram(label: cpp.ConstCharStar, values: cpp.Star, valuesCount: Int): VoidImplied values_offset = 0, overlay_text = NULL, scale_min = FLT_MAX, scale_max = FLT_MAX, graph_size = ImVec2(0, 0), stride = sizeof(float)
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
values |
cpp.Star |
valuesCount |
Int |
plotHistogramCallbackEx(label: cpp.ConstCharStar, valuesGetter: ImGuiOpaqueCallback, data: cpp.RawPointer<cpp.Void>, valuesCount: Int, ?valuesOffset: Int = 0, ?overlayText: cpp.ConstCharStar = null, ?scaleMin: cpp.Float32 = 3.402823466e+38, ?scaleMax: cpp.Float32 = 3.402823466e+38, graphSize: ImVec2): Void| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
valuesGetter |
ImGuiOpaqueCallback | |
data |
cpp.RawPointer<cpp.Void> | |
valuesCount |
Int | |
valuesOffset |
Int | 0 |
overlayText |
cpp.ConstCharStar | null |
scaleMin |
cpp.Float32 | 3.402823466e+38 |
scaleMax |
cpp.Float32 | 3.402823466e+38 |
graphSize |
ImVec2 |
plotHistogramCallback(label: cpp.ConstCharStar, valuesGetter: ImGuiOpaqueCallback, data: cpp.RawPointer<cpp.Void>, valuesCount: Int): VoidImplied values_offset = 0, overlay_text = NULL, scale_min = FLT_MAX, scale_max = FLT_MAX, graph_size = ImVec2(0, 0)
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
valuesGetter |
ImGuiOpaqueCallback |
data |
cpp.RawPointer<cpp.Void> |
valuesCount |
Int |
beginMenuBar(): Boolappend to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set on parent window).
| Returns |
|---|
| Bool |
endMenuBar(): Voidonly call EndMenuBar() if BeginMenuBar() returns true!
beginMainMenuBar(): Boolcreate and append to a full screen menu-bar.
| Returns |
|---|
| Bool |
endMainMenuBar(): Voidonly call EndMainMenuBar() if BeginMainMenuBar() returns true!
beginMenuEx(label: cpp.ConstCharStar, ?enabled: Bool = true): Boolcreate a sub-menu entry. only call EndMenu() if this returns true!
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
enabled |
Bool | true |
| Returns |
|---|
| Bool |
beginMenu(label: cpp.ConstCharStar): BoolImplied enabled = true
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
| Returns |
|---|
| Bool |
endMenu(): Voidonly call EndMenu() if BeginMenu() returns true!
return true when activated.
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
shortcut |
cpp.ConstCharStar | null |
selected |
Bool | false |
enabled |
Bool | true |
| Returns |
|---|
| Bool |
Implied shortcut = NULL, selected = false, enabled = true
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
| Returns |
|---|
| Bool |
return true when activated + toggle (*p_selected) if p_selected != NULL
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
shortcut |
cpp.ConstCharStar | |
pSelected |
cpp.Star | |
enabled |
Bool | true |
| Returns |
|---|
| Bool |
beginTooltip(): Boolbegin/append a tooltip window.
| Returns |
|---|
| Bool |
endTooltip(): Voidonly call EndTooltip() if BeginTooltip()/BeginItemTooltip() returns true!
setTooltip(text: cpp.ConstCharStar): Voidset a text-only tooltip. Often used after a ImGui::IsItemHovered() check. Override any previous call to SetTooltip().
| Name | Type |
|---|---|
text |
cpp.ConstCharStar |
beginItemTooltip(): Boolbegin/append a tooltip window if preceding item was hovered.
| Returns |
|---|
| Bool |
setItemTooltip(text: cpp.ConstCharStar): Voidset a text-only tooltip if preceding item was hovered. override any previous call to SetTooltip().
| Name | Type |
|---|---|
text |
cpp.ConstCharStar |
beginPopup(strId: cpp.ConstCharStar, ?flags: Int = 0): Boolreturn true if the popup is open, and you can start outputting to it.
| Name | Type | Default |
|---|---|---|
strId |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
beginPopupModal(name: cpp.ConstCharStar, ?pOpen: cpp.Star = null, ?flags: Int = 0): Boolreturn true if the modal is open, and you can start outputting to it.
| Name | Type | Default |
|---|---|---|
name |
cpp.ConstCharStar | |
pOpen |
cpp.Star | null |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
endPopup(): Voidonly call EndPopup() if BeginPopupXXX() returns true!
openPopup(strId: cpp.ConstCharStar, ?popupFlags: Int = 0): Voidcall to mark popup as open (don't call every frame!).
| Name | Type | Default |
|---|---|---|
strId |
cpp.ConstCharStar | |
popupFlags |
Int | 0 |
id overload to facilitate calling from nested stacks
| Name | Type | Default |
|---|---|---|
id |
UInt | |
popupFlags |
Int | 0 |
openPopupOnItemClick(?strId: cpp.ConstCharStar = null, ?popupFlags: Int = 0): Voidhelper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse released event to be consistent with popup behaviors)
| Name | Type | Default |
|---|---|---|
strId |
cpp.ConstCharStar | null |
popupFlags |
Int | 0 |
closeCurrentPopup(): Voidmanually close the popup we have begin-ed into.
beginPopupContextItemEx(?strId: cpp.ConstCharStar = null, ?popupFlags: Int = 0): Boolopen+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp!
| Name | Type | Default |
|---|---|---|
strId |
cpp.ConstCharStar | null |
popupFlags |
Int | 0 |
| Returns |
|---|
| Bool |
beginPopupContextItem(): BoolImplied str_id = NULL, popup_flags = 0
| Returns |
|---|
| Bool |
beginPopupContextWindowEx(?strId: cpp.ConstCharStar = null, ?popupFlags: Int = 0): Boolopen+begin popup when clicked on current window.
| Name | Type | Default |
|---|---|---|
strId |
cpp.ConstCharStar | null |
popupFlags |
Int | 0 |
| Returns |
|---|
| Bool |
beginPopupContextWindow(): BoolImplied str_id = NULL, popup_flags = 0
| Returns |
|---|
| Bool |
beginPopupContextVoidEx(?strId: cpp.ConstCharStar = null, ?popupFlags: Int = 0): Boolopen+begin popup when clicked in void (where there are no windows).
| Name | Type | Default |
|---|---|---|
strId |
cpp.ConstCharStar | null |
popupFlags |
Int | 0 |
| Returns |
|---|
| Bool |
beginPopupContextVoid(): BoolImplied str_id = NULL, popup_flags = 0
| Returns |
|---|
| Bool |
isPopupOpen(strId: cpp.ConstCharStar, ?flags: Int = 0): Boolreturn true if the popup is open.
| Name | Type | Default |
|---|---|---|
strId |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
beginTableEx(strId: cpp.ConstCharStar, columns: Int, ?flags: Int = 0, outerSize: ImVec2, ?innerWidth: cpp.Float32 = 0.0): Bool| Name | Type | Default |
|---|---|---|
strId |
cpp.ConstCharStar | |
columns |
Int | |
flags |
Int | 0 |
outerSize |
ImVec2 | |
innerWidth |
cpp.Float32 | 0.0 |
| Returns |
|---|
| Bool |
beginTable(strId: cpp.ConstCharStar, columns: Int, ?flags: Int = 0): BoolImplied outer_size = ImVec2(0.0f, 0.0f), inner_width = 0.0f
| Name | Type | Default |
|---|---|---|
strId |
cpp.ConstCharStar | |
columns |
Int | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
endTable(): Voidonly call EndTable() if BeginTable() returns true!
tableNextRowEx(?rowFlags: Int = 0, ?minRowHeight: cpp.Float32 = 0.0): Voidappend into the first cell of a new row. 'min_row_height' include the minimum top and bottom padding aka CellPadding.y * 2.0f.
| Name | Type | Default |
|---|---|---|
rowFlags |
Int | 0 |
minRowHeight |
cpp.Float32 | 0.0 |
tableNextRow(): VoidImplied row_flags = 0, min_row_height = 0.0f
tableNextColumn(): Boolappend into the next column (or first column of next row if currently in last column). Return true when column is visible.
| Returns |
|---|
| Bool |
append into the specified column. Return true when column is visible.
| Name | Type |
|---|---|
columnN |
Int |
| Returns |
|---|
| Bool |
tableSetupColumnEx(label: cpp.ConstCharStar, ?flags: Int = 0, ?initWidthOrWeight: cpp.Float32 = 0.0, ?userId: UInt = 0): Void| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
flags |
Int | 0 |
initWidthOrWeight |
cpp.Float32 | 0.0 |
userId |
UInt | 0 |
tableSetupColumn(label: cpp.ConstCharStar, ?flags: Int = 0): VoidImplied init_width_or_weight = 0.0f, user_id = 0
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
flags |
Int | 0 |
lock columns/rows so they stay visible when scrolled.
| Name | Type |
|---|---|
cols |
Int |
rows |
Int |
tableHeader(label: cpp.ConstCharStar): Voidsubmit one header cell manually (rarely used)
| Name | Type |
|---|---|
label |
cpp.ConstCharStar |
tableHeadersRow(): Voidsubmit a row with headers cells based on data provided to TableSetupColumn() + submit context menu
tableAngledHeadersRow(): Voidsubmit a row with angled headers for every column with the ImGuiTableColumnFlags_AngledHeader flag. MUST BE FIRST ROW.
tableGetSortSpecs(): cpp.Starget latest sort specs for the table (NULL if not sorting). Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable().
| Returns |
|---|
| cpp.Star |
tableGetColumnCount(): Intreturn number of columns (value passed to BeginTable)
| Returns |
|---|
| Int |
tableGetColumnIndex(): Intreturn current column index.
| Returns |
|---|
| Int |
tableGetRowIndex(): Intreturn current row index (header rows are accounted for)
| Returns |
|---|
| Int |
tableGetColumnName(?columnN: Int = -1): cpp.ConstCharStarreturn "" if column didn't have a name declared by TableSetupColumn(). Pass -1 to use current column.
| Name | Type | Default |
|---|---|---|
columnN |
Int | -1 |
| Returns |
|---|
| cpp.ConstCharStar |
return column flags so you can query their Enabled/Visible/Sorted/Hovered status flags. Pass -1 to use current column.
| Name | Type | Default |
|---|---|---|
columnN |
Int | -1 |
| Returns |
|---|
| Int |
change user accessible enabled/disabled state of a column. Set to false to hide the column. User can use the context menu to change this themselves (right-click in headers, or right-click in columns body with ImGuiTableFlags_ContextMenuInBody)
| Name | Type |
|---|---|
columnN |
Int |
v |
Bool |
tableGetHoveredColumn(): Intreturn hovered column. return -1 when table is not hovered. return columns_count if the unused space at the right of visible columns is hovered. Can also use (TableGetColumnFlags() & ImGuiTableColumnFlags_IsHovered) instead.
| Returns |
|---|
| Int |
change the color of a cell, row, or column. See ImGuiTableBgTarget_ flags for details.
| Name | Type | Default |
|---|---|---|
target |
Int | |
color |
UInt | |
columnN |
Int | -1 |
columnsEx(?count: Int = 1, ?id: cpp.ConstCharStar = null, ?borders: Bool = true): Void| Name | Type | Default |
|---|---|---|
count |
Int | 1 |
id |
cpp.ConstCharStar | null |
borders |
Bool | true |
columns(): VoidImplied count = 1, id = NULL, borders = true
nextColumn(): Voidnext column, defaults to current row or next row if the current row is finished
getColumnIndex(): Intget current column index
| Returns |
|---|
| Int |
getColumnWidth(?columnIndex: Int = -1): cpp.Float32get column width (in pixels). pass -1 to use current column
| Name | Type | Default |
|---|---|---|
columnIndex |
Int | -1 |
| Returns |
|---|
| cpp.Float32 |
setColumnWidth(columnIndex: Int, width: cpp.Float32): Voidset column width (in pixels). pass -1 to use current column
| Name | Type |
|---|---|
columnIndex |
Int |
width |
cpp.Float32 |
getColumnOffset(?columnIndex: Int = -1): cpp.Float32get position of column line (in pixels, from the left side of the contents region). pass -1 to use current column, otherwise 0..GetColumnsCount() inclusive. column 0 is typically 0.0f
| Name | Type | Default |
|---|---|---|
columnIndex |
Int | -1 |
| Returns |
|---|
| cpp.Float32 |
setColumnOffset(columnIndex: Int, offsetX: cpp.Float32): Voidset position of column line (in pixels, from the left side of the contents region). pass -1 to use current column
| Name | Type |
|---|---|
columnIndex |
Int |
offsetX |
cpp.Float32 |
getColumnsCount(): Int| Returns |
|---|
| Int |
beginTabBar(strId: cpp.ConstCharStar, ?flags: Int = 0): Boolcreate and append into a TabBar
| Name | Type | Default |
|---|---|---|
strId |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
endTabBar(): Voidonly call EndTabBar() if BeginTabBar() returns true!
beginTabItem(label: cpp.ConstCharStar, ?pOpen: cpp.Star = null, ?flags: Int = 0): Boolcreate a Tab. Returns true if the Tab is selected.
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
pOpen |
cpp.Star | null |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
endTabItem(): Voidonly call EndTabItem() if BeginTabItem() returns true!
tabItemButton(label: cpp.ConstCharStar, ?flags: Int = 0): Boolcreate a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar.
| Name | Type | Default |
|---|---|---|
label |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
setTabItemClosed(tabOrDockedWindowLabel: cpp.ConstCharStar): Voidnotify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name.
| Name | Type |
|---|---|
tabOrDockedWindowLabel |
cpp.ConstCharStar |
| Name | Type | Default |
|---|---|---|
dockspaceId |
UInt | |
size |
ImVec2 | |
flags |
Int | 0 |
windowClass |
cpp.Star | null |
| Returns |
|---|
| UInt |
Implied size = ImVec2(0, 0), flags = 0, window_class = NULL
| Name | Type |
|---|---|
dockspaceId |
UInt |
| Returns |
|---|
| UInt |
dockSpaceOverViewportEx(?dockspaceId: UInt = 0, ?viewport: cpp.Star = null, ?flags: Int = 0, ?windowClass: cpp.Star = null): UInt| Name | Type | Default |
|---|---|---|
dockspaceId |
UInt | 0 |
viewport |
cpp.Star | null |
flags |
Int | 0 |
windowClass |
cpp.Star | null |
| Returns |
|---|
| UInt |
dockSpaceOverViewport(): UIntImplied dockspace_id = 0, viewport = NULL, flags = 0, window_class = NULL
| Returns |
|---|
| UInt |
set next window dock id
| Name | Type | Default |
|---|---|---|
dockId |
UInt | |
cond |
Int | 0 |
set next window class (control docking compatibility + provide hints to platform backend via custom viewport flags and platform parent/child relationship)
| Name | Type |
|---|---|
windowClass |
cpp.Star |
getWindowDockID(): UIntget dock id of current window, or 0 if not associated to any docking node.
| Returns |
|---|
| UInt |
isWindowDocked(): Boolis current window docked into another window?
| Returns |
|---|
| Bool |
start logging to tty (stdout)
| Name | Type | Default |
|---|---|---|
autoOpenDepth |
Int | -1 |
logToFile(?autoOpenDepth: Int = -1, ?filename: cpp.ConstCharStar = null): Voidstart logging to file
| Name | Type | Default |
|---|---|---|
autoOpenDepth |
Int | -1 |
filename |
cpp.ConstCharStar | null |
start logging to OS clipboard
| Name | Type | Default |
|---|---|---|
autoOpenDepth |
Int | -1 |
logFinish(): Voidstop logging (close file, etc.)
logButtons(): Voidhelper to display buttons for logging to tty/file/clipboard
logText(text: cpp.ConstCharStar): Voidpass text data straight to log (without being displayed)
| Name | Type |
|---|---|
text |
cpp.ConstCharStar |
call after submitting an item which may be dragged. when this return true, you can call SetDragDropPayload() + EndDragDropSource()
| Name | Type | Default |
|---|---|---|
flags |
Int | 0 |
| Returns |
|---|
| Bool |
setDragDropPayload(type: cpp.ConstCharStar, data: cpp.RawPointer<cpp.Void>, sz: cpp.SizeT, ?cond: Int = 0): Booltype is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted.
| Name | Type | Default |
|---|---|---|
type |
cpp.ConstCharStar | |
data |
cpp.RawPointer<cpp.Void> | |
sz |
cpp.SizeT | |
cond |
Int | 0 |
| Returns |
|---|
| Bool |
endDragDropSource(): Voidonly call EndDragDropSource() if BeginDragDropSource() returns true!
beginDragDropTarget(): Boolcall after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget()
| Returns |
|---|
| Bool |
acceptDragDropPayload(type: cpp.ConstCharStar, ?flags: Int = 0): cpp.Staraccept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released.
| Name | Type | Default |
|---|---|---|
type |
cpp.ConstCharStar | |
flags |
Int | 0 |
| Returns |
|---|
| cpp.Star |
endDragDropTarget(): Voidonly call EndDragDropTarget() if BeginDragDropTarget() returns true!
getDragDropPayload(): cpp.Starpeek directly into the current payload from anywhere. returns NULL when drag and drop is finished or inactive. use ImGuiPayload::IsDataType() to test for the payload type.
| Returns |
|---|
| cpp.Star |
| Name | Type | Default |
|---|---|---|
disabled |
Bool | true |
endDisabled(): Void| Name | Type |
|---|---|
clipRectMin |
ImVec2 |
clipRectMax |
ImVec2 |
intersectWithCurrentClipRect |
Bool |
popClipRect(): VoidsetItemDefaultFocus(): Voidmake last item the default focused item of a newly appearing window.
focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget.
| Name | Type | Default |
|---|---|---|
offset |
Int | 0 |
setKeyboardFocusHere(): VoidImplied offset = 0
alter visibility of keyboard/gamepad cursor. by default: show when using an arrow key, hide when clicking with mouse.
| Name | Type |
|---|---|
visible |
Bool |
setNextItemAllowOverlap(): Voidallow next item to be overlapped by a subsequent item. Typically useful with InvisibleButton(), Selectable(), TreeNode() covering an area where subsequent items may need to be added. Note that both Selectable() and TreeNode() have dedicated flags doing this.
is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options.
| Name | Type | Default |
|---|---|---|
flags |
Int | 0 |
| Returns |
|---|
| Bool |
isItemActive(): Boolis the last item active? (e.g. button being held, text field being edited. This will continuously return true while holding mouse button on an item. Items that don't interact will always return false)
| Returns |
|---|
| Bool |
isItemFocused(): Boolis the last item focused for keyboard/gamepad navigation?
| Returns |
|---|
| Bool |
is the last item hovered and mouse clicked on? () == IsMouseClicked(mouse_button) && IsItemHovered()Important. () this is NOT equivalent to the behavior of e.g. Button(). Read comments in function definition.
| Name | Type | Default |
|---|---|---|
mouseButton |
Int | 0 |
| Returns |
|---|
| Bool |
isItemClicked(): BoolImplied mouse_button = 0
| Returns |
|---|
| Bool |
isItemVisible(): Boolis the last item visible? (items may be out of sight because of clipping/scrolling)
| Returns |
|---|
| Bool |
isItemEdited(): Booldid the last item modify its underlying value this frame? or was pressed? This is generally the same as the "bool" return value of many widgets.
| Returns |
|---|
| Bool |
isItemActivated(): Boolwas the last item just made active (item was previously inactive).
| Returns |
|---|
| Bool |
isItemDeactivated(): Boolwas the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that require continuous editing.
| Returns |
|---|
| Bool |
isItemDeactivatedAfterEdit(): Boolwas the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). Useful for Undo/Redo patterns with widgets that require continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item).
| Returns |
|---|
| Bool |
isItemToggledOpen(): Boolwas the last item open state toggled? set by TreeNode().
| Returns |
|---|
| Bool |
isAnyItemHovered(): Boolis any item hovered?
| Returns |
|---|
| Bool |
isAnyItemActive(): Boolis any item active?
| Returns |
|---|
| Bool |
isAnyItemFocused(): Boolis any item focused?
| Returns |
|---|
| Bool |
getItemID(): UIntget ID of last item (~~ often same ImGui::GetID(label) beforehand)
| Returns |
|---|
| UInt |
getItemRectMin(): ImVec2get upper-left bounding rectangle of the last item (screen space)
| Returns |
|---|
| ImVec2 |
getItemRectMax(): ImVec2get lower-right bounding rectangle of the last item (screen space)
| Returns |
|---|
| ImVec2 |
getItemRectSize(): ImVec2get size of last item
| Returns |
|---|
| ImVec2 |
getItemFlags(): Intget generic flags of last item
| Returns |
|---|
| Int |
getMainViewport(): cpp.Starreturn primary/default viewport. This can never be NULL.
| Returns |
|---|
| cpp.Star |
get background draw list for the given viewport or viewport associated to the current window. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents.
| Name | Type | Default |
|---|---|---|
viewport |
cpp.Star | null |
| Returns |
|---|
| cpp.Star |
getBackgroundDrawList(): cpp.StarImplied viewport = NULL
| Returns |
|---|
| cpp.Star |
get foreground draw list for the given viewport or viewport associated to the current window. this draw list will be the top-most rendered one. Useful to quickly draw shapes/text over dear imgui contents.
| Name | Type | Default |
|---|---|---|
viewport |
cpp.Star | null |
| Returns |
|---|
| cpp.Star |
getForegroundDrawList(): cpp.StarImplied viewport = NULL
| Returns |
|---|
| cpp.Star |
test if rectangle (of given size, starting from cursor position) is visible / not clipped.
| Name | Type |
|---|---|
size |
ImVec2 |
| Returns |
|---|
| Bool |
test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side.
| Name | Type |
|---|---|
rectMin |
ImVec2 |
rectMax |
ImVec2 |
| Returns |
|---|
| Bool |
getTime(): Floatget global imgui time. incremented by io.DeltaTime every frame.
| Returns |
|---|
| Float |
getFrameCount(): Intget global imgui frame count. incremented by 1 every frame.
| Returns |
|---|
| Int |
you may use this when creating your own ImDrawList instances.
| Returns |
|---|
| cpp.Star |
getStyleColorName(idx: Int): cpp.ConstCharStarget a string corresponding to the enum value (for display, saving, etc.).
| Name | Type |
|---|---|
idx |
Int |
| Returns |
|---|
| cpp.ConstCharStar |
replace current window storage with our own (if you want to manipulate it yourself, typically clear subsection of it)
| Name | Type |
|---|---|
storage |
cpp.Star |
getStateStorage(): cpp.Star| Returns |
|---|
| cpp.Star |
calcTextSizeEx(text: cpp.ConstCharStar, ?textEnd: cpp.ConstCharStar = null, ?hideTextAfterDoubleHash: Bool = false, ?wrapWidth: cpp.Float32 = -1.0): ImVec2| Name | Type | Default |
|---|---|---|
text |
cpp.ConstCharStar | |
textEnd |
cpp.ConstCharStar | null |
hideTextAfterDoubleHash |
Bool | false |
wrapWidth |
cpp.Float32 | -1.0 |
| Returns |
|---|
| ImVec2 |
calcTextSize(text: cpp.ConstCharStar): ImVec2Implied text_end = NULL, hide_text_after_double_hash = false, wrap_width = -1.0f
| Name | Type |
|---|---|
text |
cpp.ConstCharStar |
| Returns |
|---|
| ImVec2 |
| Name | Type |
|---|---|
in_ |
UInt |
| Returns |
|---|
| ImVec4 |
| Name | Type |
|---|---|
in_ |
ImVec4 |
| Returns |
|---|
| UInt |
colorConvertRGBtoHSV(r: cpp.Float32, g: cpp.Float32, b: cpp.Float32, outH: cpp.Star, outS: cpp.Star, outV: cpp.Star): Void| Name | Type |
|---|---|
r |
cpp.Float32 |
g |
cpp.Float32 |
b |
cpp.Float32 |
outH |
cpp.Star |
outS |
cpp.Star |
outV |
cpp.Star |
colorConvertHSVtoRGB(h: cpp.Float32, s: cpp.Float32, v: cpp.Float32, outR: cpp.Star, outG: cpp.Star, outB: cpp.Star): Void| Name | Type |
|---|---|
h |
cpp.Float32 |
s |
cpp.Float32 |
v |
cpp.Float32 |
outR |
cpp.Star |
outG |
cpp.Star |
outB |
cpp.Star |
is key being held.
| Name | Type |
|---|---|
key |
Int |
| Returns |
|---|
| Bool |
was key pressed (went from !Down to Down)? Repeat rate uses io.KeyRepeatDelay / KeyRepeatRate.
| Name | Type | Default |
|---|---|---|
key |
Int | |
repeat |
Bool | true |
| Returns |
|---|
| Bool |
Implied repeat = true
| Name | Type |
|---|---|
key |
Int |
| Returns |
|---|
| Bool |
was key released (went from Down to !Down)?
| Name | Type |
|---|---|
key |
Int |
| Returns |
|---|
| Bool |
was key chord (mods + key) pressed, e.g. you can pass 'ImGuiMod_Ctrl | ImGuiKey_S' as a key-chord. This doesn't do any routing or focus check, please consider using Shortcut() function instead.
| Name | Type |
|---|---|
keyChord |
Int |
| Returns |
|---|
| Bool |
getKeyPressedAmount(key: Int, repeatDelay: cpp.Float32, rate: cpp.Float32): Intuses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate
| Name | Type |
|---|---|
key |
Int |
repeatDelay |
cpp.Float32 |
rate |
cpp.Float32 |
| Returns |
|---|
| Int |
getKeyName(key: Int): cpp.ConstCharStar[DEBUG] returns English name of the key. Those names are provided for debugging purpose and are not meant to be saved persistently nor compared.
| Name | Type |
|---|---|
key |
Int |
| Returns |
|---|
| cpp.ConstCharStar |
Override io.WantCaptureKeyboard flag next frame (said flag is left for your application to handle, typically when true it instructs your app to ignore inputs). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard"; after the next NewFrame() call.
| Name | Type |
|---|---|
wantCaptureKeyboard |
Bool |
| Name | Type | Default |
|---|---|---|
keyChord |
Int | |
flags |
Int | 0 |
| Returns |
|---|
| Bool |
| Name | Type | Default |
|---|---|---|
keyChord |
Int | |
flags |
Int | 0 |
Set key owner to last item ID if it is hovered or active. Return true when ownership has been set. Roughly equivalent to 'if (TestKeyOwner(key, GetItemID()) && (IsItemHovered() || IsItemActive())) { SetKeyOwner(key, GetItemID());'.
| Name | Type |
|---|---|
key |
Int |
| Returns |
|---|
| Bool |
is mouse button held?
| Name | Type |
|---|---|
button |
Int |
| Returns |
|---|
| Bool |
did mouse button clicked? (went from !Down to Down). Same as GetMouseClickedCount() == 1.
| Name | Type | Default |
|---|---|---|
button |
Int | |
repeat |
Bool | false |
| Returns |
|---|
| Bool |
Implied repeat = false
| Name | Type |
|---|---|
button |
Int |
| Returns |
|---|
| Bool |
did mouse button released? (went from Down to !Down)
| Name | Type |
|---|---|
button |
Int |
| Returns |
|---|
| Bool |
did mouse button double-clicked? Same as GetMouseClickedCount() == 2. (note that a double-click will also report IsMouseClicked() == true)
| Name | Type |
|---|---|
button |
Int |
| Returns |
|---|
| Bool |
isMouseReleasedWithDelay(button: Int, delay: cpp.Float32): Booldelayed mouse release (use very sparingly!). Generally used with 'delay >= io.MouseDoubleClickTime' + combined with a 'io.MouseClickedLastCount==1' test. This is a very rarely used UI idiom, but some apps use this: e.g. MS Explorer single click on an icon to rename.
| Name | Type |
|---|---|
button |
Int |
delay |
cpp.Float32 |
| Returns |
|---|
| Bool |
return the number of successive mouse-clicks at the time where a click happen (otherwise 0).
| Name | Type |
|---|---|
button |
Int |
| Returns |
|---|
| Int |
is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block.
| Name | Type | Default |
|---|---|---|
rMin |
ImVec2 | |
rMax |
ImVec2 | |
clip |
Bool | true |
| Returns |
|---|
| Bool |
Implied clip = true
| Name | Type |
|---|---|
rMin |
ImVec2 |
rMax |
ImVec2 |
| Returns |
|---|
| Bool |
by convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse available
| Name | Type | Default |
|---|---|---|
mousePos |
cpp.Star | null |
| Returns |
|---|
| Bool |
isAnyMouseDown(): Bool[WILL OBSOLETE] is any mouse button held? This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid.
| Returns |
|---|
| Bool |
getMousePos(): ImVec2shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls
| Returns |
|---|
| ImVec2 |
getMousePosOnOpeningCurrentPopup(): ImVec2retrieve mouse position at the time of opening popup we have BeginPopup() into (helper to avoid user backing that value themselves)
| Returns |
|---|
| ImVec2 |
isMouseDragging(button: Int, ?lockThreshold: cpp.Float32 = -1.0): Boolis mouse dragging? (uses io.MouseDraggingThreshold if lock_threshold < 0.0f)
| Name | Type | Default |
|---|---|---|
button |
Int | |
lockThreshold |
cpp.Float32 | -1.0 |
| Returns |
|---|
| Bool |
getMouseDragDelta(?button: Int = 0, ?lockThreshold: cpp.Float32 = -1.0): ImVec2return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (uses io.MouseDraggingThreshold if lock_threshold < 0.0f)
| Name | Type | Default |
|---|---|---|
button |
Int | 0 |
lockThreshold |
cpp.Float32 | -1.0 |
| Returns |
|---|
| ImVec2 |
| Name | Type | Default |
|---|---|---|
button |
Int | 0 |
resetMouseDragDelta(): VoidImplied button = 0
getMouseCursor(): Intget desired mouse cursor shape. Important: reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you
| Returns |
|---|
| Int |
set desired mouse cursor shape
| Name | Type |
|---|---|
cursorType |
Int |
Override io.WantCaptureMouse flag next frame (said flag is left for your application to handle, typical when true it instructs your app to ignore inputs). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse;" after the next NewFrame() call.
| Name | Type |
|---|---|
wantCaptureMouse |
Bool |
getClipboardText(): cpp.ConstCharStar| Returns |
|---|
| cpp.ConstCharStar |
setClipboardText(text: cpp.ConstCharStar): Void| Name | Type |
|---|---|
text |
cpp.ConstCharStar |
loadIniSettingsFromDisk(iniFilename: cpp.ConstCharStar): Voidcall after CreateContext() and before the first call to NewFrame(). NewFrame() automatically calls LoadIniSettingsFromDisk(io.IniFilename).
| Name | Type |
|---|---|
iniFilename |
cpp.ConstCharStar |
loadIniSettingsFromMemory(iniData: cpp.ConstCharStar, ?iniSize: cpp.SizeT = 0): Voidcall after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source.
| Name | Type | Default |
|---|---|---|
iniData |
cpp.ConstCharStar | |
iniSize |
cpp.SizeT | 0 |
saveIniSettingsToDisk(iniFilename: cpp.ConstCharStar): Voidthis is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext).
| Name | Type |
|---|---|
iniFilename |
cpp.ConstCharStar |
saveIniSettingsToMemory(?outIniSize: cpp.Star = null): cpp.ConstCharStarreturn a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings.
| Name | Type | Default |
|---|---|---|
outIniSize |
cpp.Star | null |
| Returns |
|---|
| cpp.ConstCharStar |
debugTextEncoding(text: cpp.ConstCharStar): Void| Name | Type |
|---|---|
text |
cpp.ConstCharStar |
| Name | Type |
|---|---|
idx |
Int |
debugStartItemPicker(): VoiddebugCheckVersionAndDataLayout(versionStr: cpp.ConstCharStar, szIo: cpp.SizeT, szStyle: cpp.SizeT, szVec2: cpp.SizeT, szVec4: cpp.SizeT, szDrawvert: cpp.SizeT, szDrawidx: cpp.SizeT): BoolThis is called by IMGUI_CHECKVERSION() macro.
| Name | Type |
|---|---|
versionStr |
cpp.ConstCharStar |
szIo |
cpp.SizeT |
szStyle |
cpp.SizeT |
szVec2 |
cpp.SizeT |
szVec4 |
cpp.SizeT |
szDrawvert |
cpp.SizeT |
szDrawidx |
cpp.SizeT |
| Returns |
|---|
| Bool |
debugLog(text: cpp.ConstCharStar): VoidCall via IMGUI_DEBUG_LOG() for maximum stripping in caller code!
| Name | Type |
|---|---|
text |
cpp.ConstCharStar |
setAllocatorFunctions(allocFunc: ImGuiOpaqueCallback, freeFunc: ImGuiOpaqueCallback, ?userData: cpp.RawPointer<cpp.Void> = null): Void| Name | Type | Default |
|---|---|---|
allocFunc |
ImGuiOpaqueCallback | |
freeFunc |
ImGuiOpaqueCallback | |
userData |
cpp.RawPointer<cpp.Void> | null |
getAllocatorFunctions(pAllocFunc: cpp.Star, pFreeFunc: cpp.Star, pUserData: cpp.RawPointer<Void>): Void| Name | Type |
|---|---|
pAllocFunc |
cpp.Star |
pFreeFunc |
cpp.Star |
pUserData |
cpp.RawPointer<Void> |
memAlloc(size: cpp.SizeT): cpp.RawPointer<cpp.Void>| Name | Type |
|---|---|
size |
cpp.SizeT |
| Returns |
|---|
| cpp.RawPointer<cpp.Void> |
memFree(ptr: cpp.RawPointer<cpp.Void>): Void| Name | Type |
|---|---|
ptr |
cpp.RawPointer<cpp.Void> |
updatePlatformWindows(): Voidcall in main loop. will call CreateWindow/ResizeWindow/etc. platform functions for each secondary viewport, and DestroyWindow for each inactive viewport.
renderPlatformWindowsDefaultEx(?platformRenderArg: cpp.RawPointer<cpp.Void> = null, ?rendererRenderArg: cpp.RawPointer<cpp.Void> = null): Voidcall in main loop. will call RenderWindow/SwapBuffers platform functions for each secondary viewport which doesn't have the ImGuiViewportFlags_Minimized flag set. May be reimplemented by user for custom rendering needs.
| Name | Type | Default |
|---|---|---|
platformRenderArg |
cpp.RawPointer<cpp.Void> | null |
rendererRenderArg |
cpp.RawPointer<cpp.Void> | null |
renderPlatformWindowsDefault(): VoidImplied platform_render_arg = NULL, renderer_render_arg = NULL
destroyPlatformWindows(): Voidcall DestroyWindow platform functions for all viewports. call from backend Shutdown() if you need to close platform windows before imgui shutdown. otherwise will be called by DestroyContext().
this is a helper for backends.
| Name | Type |
|---|---|
viewportId |
UInt |
| Returns |
|---|
| cpp.Star |
findViewportByPlatformHandle(platformHandle: cpp.RawPointer<cpp.Void>): cpp.Starthis is a helper for backends. the type platform_handle is decided by the backend (e.g. HWND, MyWindow*, GLFWwindow* etc.)
| Name | Type |
|---|---|
platformHandle |
cpp.RawPointer<cpp.Void> |
| Returns |
|---|
| cpp.Star |
imVector_Construct(vector: cpp.RawPointer<cpp.Void>): VoidConstruct a zero-size ImVector<> (of any type). This is primarily useful when calling ImFontGlyphRangesBuilder_BuildRanges()
| Name | Type |
|---|---|
vector |
cpp.RawPointer<cpp.Void> |
imVector_Destruct(vector: cpp.RawPointer<cpp.Void>): VoidDestruct an ImVector<> (of any type). Important: Frees the vector memory but does not call destructors on contained objects (if they have them)
| Name | Type |
|---|---|
vector |
cpp.RawPointer<cpp.Void> |
Metadata
| Name | Parameters |
|---|---|
:include |
"linc_imgui.h" |
:build |
imguicpp.linc.Linc.xml("imgui") |
:build |
imguicpp.linc.Linc.touch() |