Package imgui
Class ImGui
java.lang.Object
imgui.ImGui
public final class ImGui
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description static byte[]
acceptDragDropPayload(java.lang.String type)
Accept contents of a given type.static byte[]
acceptDragDropPayload(java.lang.String type, int imGuiDragDropFlags)
Accept contents of a given type.static void
alignTextToFramePadding()
Vertically 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)static boolean
arrowButton(java.lang.String strId, int dir)
Square button with an arrow shapestatic boolean
begin(java.lang.String title)
static boolean
begin(java.lang.String title, int imGuiWindowFlags)
static boolean
begin(java.lang.String title, ImBool pOpen)
static boolean
begin(java.lang.String title, ImBool pOpen, int imGuiWindowFlags)
static boolean
beginChild(int imGuiID)
static boolean
beginChild(int imGuiID, float width, float height, boolean border)
static boolean
beginChild(int imGuiID, float width, float height, boolean border, int imGuiWindowFlags)
static boolean
beginChild(java.lang.String strId)
static boolean
beginChild(java.lang.String strId, float width, float height)
static boolean
beginChild(java.lang.String strId, float width, float height, boolean border)
static boolean
beginChild(java.lang.String strId, float width, float height, boolean border, int imGuiWindowFlags)
static boolean
beginChildFrame(int id, float width, float height)
Helper to create a child window / scrolling region that looks like a normal widget framestatic boolean
beginChildFrame(int id, float width, float height, int imGuiWindowFlags)
Helper to create a child window / scrolling region that looks like a normal widget framestatic boolean
beginCombo(java.lang.String label, java.lang.String previewValue)
static boolean
beginCombo(java.lang.String label, java.lang.String previewValue, int imGuiComboFlags)
static boolean
beginDragDropSource()
Call when the current item is active.static boolean
beginDragDropSource(int imGuiDragDropFlags)
Call when the current item is active.static boolean
beginDragDropTarget()
Call after submitting an item that may receive a payload.static void
beginGroup()
Lock horizontal starting positionstatic boolean
beginMainMenuBar()
Create and append to a full screen menu-bar.static boolean
beginMenu(java.lang.String label)
Create a sub-menu entry.static boolean
beginMenu(java.lang.String label, boolean enabled)
Create a sub-menu entry.static boolean
beginMenuBar()
Append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set on parent window).static boolean
beginPopup(java.lang.String strId)
Return true if the popup is open, and you can start outputting to it.static boolean
beginPopup(java.lang.String strId, int imGuiWindowFlags)
Return true if the popup is open, and you can start outputting to it.static boolean
beginPopupContextItem()
helper to open and begin popup when clicked on last item.static boolean
beginPopupContextItem(java.lang.String strId)
helper to open and begin popup when clicked on last item.static boolean
beginPopupContextItem(java.lang.String strId, int mouseButton)
helper to open and begin popup when clicked on last item.static boolean
beginPopupContextVoid()
Helper to open and begin popup when clicked in void (where there are no imgui windows).static boolean
beginPopupContextVoid(java.lang.String strId)
Helper to open and begin popup when clicked in void (where there are no imgui windows).static boolean
beginPopupContextVoid(java.lang.String strId, int mouseButton)
Helper to open and begin popup when clicked in void (where there are no imgui windows).static boolean
beginPopupContextWindow()
Helper to open and begin popup when clicked on current window.static boolean
beginPopupContextWindow(java.lang.String strId)
Helper to open and begin popup when clicked on current window.static boolean
beginPopupContextWindow(java.lang.String strId, int mouseButton)
Helper to open and begin popup when clicked on current window.static boolean
beginPopupContextWindow(java.lang.String strId, int mouseButton, boolean alsoOverItems)
Helper to open and begin popup when clicked on current window.static boolean
beginPopupModal(java.lang.String name)
Modal dialog (regular window with title bar, block interactions behind the modal window, can't close the modal window by clicking outside)static boolean
beginPopupModal(java.lang.String name, int imGuiWindowFlags)
Modal dialog (regular window with title bar, block interactions behind the modal window, can't close the modal window by clicking outside)static boolean
beginPopupModal(java.lang.String name, ImBool pOpen)
Modal dialog (regular window with title bar, block interactions behind the modal window, can't close the modal window by clicking outside)static boolean
beginPopupModal(java.lang.String name, ImBool pOpen, int imGuiWindowFlags)
Modal dialog (regular window with title bar, block interactions behind the modal window, can't close the modal window by clicking outside)static boolean
beginTabBar(java.lang.String strId)
Create and append into a TabBarstatic boolean
beginTabBar(java.lang.String strId, int imGuiTabBarFlags)
Create and append into a TabBarstatic boolean
beginTabItem(java.lang.String label)
Create a Tab.static boolean
beginTabItem(java.lang.String label, int imGuiTabBarFlags)
Create a Tab.static boolean
beginTabItem(java.lang.String label, ImBool pOpen)
Create a Tab.static boolean
beginTabItem(java.lang.String label, ImBool pOpen, int imGuiTabBarFlags)
Create a Tab.static void
beginTooltip()
Begin/append a tooltip window.static void
bullet()
Draw a small circle and keep the cursor on the same line.static void
bulletText(java.lang.String text)
Shortcut for Bullet()+Text()static boolean
button(java.lang.String label)
Buttonstatic boolean
button(java.lang.String label, float width, float height)
Buttonstatic float
calcItemWidth()
Width of item given pushed settings and current cursor position.static void
calcListClipping(int itemCount, float itemsHeight, int[] outItemsDisplayStart, int[] outItemsDisplayEnd)
Calculate coarse clipping for large list of evenly sized items.static void
calcTextSize(ImVec2 dstImVec2, java.lang.String text)
static void
calcTextSize(ImVec2 dstImVec2, java.lang.String text, java.lang.String textEnd)
static void
calcTextSize(ImVec2 dstImVec2, java.lang.String text, java.lang.String textEnd, boolean hideTextAfterDoubleHas)
static void
calcTextSize(ImVec2 dstImVec2, java.lang.String text, java.lang.String textEnd, boolean hideTextAfterDoubleHas, float wrapWidth)
static void
captureKeyboardFromApp()
Attention: misleading name! manually override io.WantCaptureKeyboard flag next frame (said flag is entirely left for your application to handle).static void
captureKeyboardFromApp(boolean wantCaptureKeyboardValue)
Attention: misleading name! manually override io.WantCaptureKeyboard flag next frame (said flag is entirely left for your application to handle).static void
captureMouseFromApp()
Attention: misleading name! manually override io.WantCaptureMouse flag next frame (said flag is entirely left for your application to handle).static void
captureMouseFromApp(boolean wantCaptureMouseValue)
Attention: misleading name! manually override io.WantCaptureMouse flag next frame (said flag is entirely left for your application to handle).static boolean
checkbox(java.lang.String label, ImBool active)
static boolean
checkboxFlags(java.lang.String label, ImInt v, int flagsValue)
static void
closeCurrentPopup()
Close the popup we have begin-ed into.static boolean
collapsingHeader(java.lang.String label)
If returning 'true' the header is open.static boolean
collapsingHeader(java.lang.String label, int imGuiTreeNodeFlags)
If returning 'true' the header is open.static boolean
collapsingHeader(java.lang.String label, ImBool pOpen)
When 'pOpen' isn't NULL, display an additional small close button on upper right of the headerstatic boolean
collapsingHeader(java.lang.String label, ImBool pOpen, int imGuiTreeNodeFlags)
When 'pOpen' isn't NULL, display an additional small close button on upper right of the headerstatic boolean
colorButton(java.lang.String descId, float[] col)
Display a colored square/button, hover for details, return true when pressed.static boolean
colorButton(java.lang.String descId, float[] col, int imGuiColorEditFlags)
Display a colored square/button, hover for details, return true when pressed.static boolean
colorButton(java.lang.String descId, float[] col, int imGuiColorEditFlags, float width, float height)
Display a colored square/button, hover for details, return true when pressed.static int
colorConvertFloat4ToU32(float r, float g, float b, float a)
static void
colorConvertHSVtoRGB(float[] hsv, float[] rgb)
static void
colorConvertRGBtoHSV(float[] rgb, float[] hsv)
static void
colorConvertU32ToFloat4(long in, ImVec4 dstImVec4)
static boolean
colorEdit3(java.lang.String label, float[] col)
static boolean
colorEdit3(java.lang.String label, float[] col, int imGuiColorEditFlags)
static boolean
colorEdit4(java.lang.String label, float[] col)
static boolean
colorEdit4(java.lang.String label, float[] col, int imGuiColorEditFlags)
static boolean
colorPicker3(java.lang.String label, float[] col)
static boolean
colorPicker3(java.lang.String label, float[] col, int imGuiColorEditFlags)
static boolean
colorPicker4(java.lang.String label, float[] col)
static boolean
colorPicker4(java.lang.String label, float[] col, int imGuiColorEditFlags)
static boolean
colorPicker4(java.lang.String label, float[] col, int imGuiColorEditFlags, float refCol)
static void
columns()
static void
columns(int count)
static void
columns(int count, java.lang.String id)
static void
columns(int count, java.lang.String id, boolean border)
static boolean
combo(java.lang.String label, ImInt currentItem, java.lang.String itemsSeparatedByZeros)
Separate items with \0 within a string, end item-list with \0\0.static boolean
combo(java.lang.String label, ImInt currentItem, java.lang.String[] items, int itemsCount)
static boolean
combo(java.lang.String label, ImInt currentItem, java.lang.String[] items, int itemsCount, int popupMaxHeightInItems)
static boolean
combo(java.lang.String label, ImInt currentItem, java.lang.String itemsSeparatedByZeros, int popupMaxHeightInItems)
static void
createContext()
static void
destroyContext()
static boolean
dragFloat(java.lang.String label, float[] v)
static boolean
dragFloat(java.lang.String label, float[] v, float vSpeed)
static boolean
dragFloat(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax)
IfvMin >= vMax
we have no boundstatic boolean
dragFloat(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format)
IfvMin >= vMax
we have no boundstatic boolean
dragFloat(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format, float power)
IfvMin >= vMax
we have no boundstatic boolean
dragFloat2(java.lang.String label, float[] v)
static boolean
dragFloat2(java.lang.String label, float[] v, float vSpeed)
static boolean
dragFloat2(java.lang.String label, float[] v, float vSpeed, float vMin)
static boolean
dragFloat2(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax)
static boolean
dragFloat2(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format)
static boolean
dragFloat2(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format, float power)
static boolean
dragFloat3(java.lang.String label, float[] v)
static boolean
dragFloat3(java.lang.String label, float[] v, float vSpeed)
static boolean
dragFloat3(java.lang.String label, float[] v, float vSpeed, float vMin)
static boolean
dragFloat3(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax)
static boolean
dragFloat3(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format)
static boolean
dragFloat3(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format, float power)
static boolean
dragFloat4(java.lang.String label, float[] v)
static boolean
dragFloat4(java.lang.String label, float[] v, float vSpeed)
static boolean
dragFloat4(java.lang.String label, float[] v, float vSpeed, float vMin)
static boolean
dragFloat4(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax)
static boolean
dragFloat4(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format)
static boolean
dragFloat4(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format, float power)
static boolean
dragFloatRange2(java.lang.String label, float[] vCurrentMin, float[] vCurrentMax)
static boolean
dragFloatRange2(java.lang.String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed)
static boolean
dragFloatRange2(java.lang.String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin)
static boolean
dragFloatRange2(java.lang.String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin, float vMax)
static boolean
dragFloatRange2(java.lang.String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin, float vMax, java.lang.String format)
static boolean
dragFloatRange2(java.lang.String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin, float vMax, java.lang.String format, java.lang.String formatMax)
static boolean
dragFloatRange2(java.lang.String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin, float vMax, java.lang.String format, java.lang.String formatMax, float power)
static boolean
dragInt(java.lang.String label, int[] v)
static boolean
dragInt(java.lang.String label, int[] v, float vSpeed)
static boolean
dragInt(java.lang.String label, int[] v, float vSpeed, float vMin)
static boolean
dragInt(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax)
IfvMin >= vMax
we have no boundstatic boolean
dragInt(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax, java.lang.String format)
IfvMin >= vMax
we have no boundstatic boolean
dragInt2(java.lang.String label, int[] v)
static boolean
dragInt2(java.lang.String label, int[] v, float vSpeed)
static boolean
dragInt2(java.lang.String label, int[] v, float vSpeed, float vMin)
static boolean
dragInt2(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax)
static boolean
dragInt2(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax, java.lang.String format)
static boolean
dragInt3(java.lang.String label, int[] v)
static boolean
dragInt3(java.lang.String label, int[] v, float vSpeed)
static boolean
dragInt3(java.lang.String label, int[] v, float vSpeed, float vMin)
static boolean
dragInt3(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax)
static boolean
dragInt3(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax, java.lang.String format)
static boolean
dragInt4(java.lang.String label, int[] v)
static boolean
dragInt4(java.lang.String label, int[] v, float vSpeed)
static boolean
dragInt4(java.lang.String label, int[] v, float vSpeed, float vMin)
static boolean
dragInt4(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax)
static boolean
dragInt4(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax, java.lang.String format)
static boolean
dragIntRange2(java.lang.String label, int[] vCurrentMin, int[] vCurrentMax)
static boolean
dragIntRange2(java.lang.String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed)
static boolean
dragIntRange2(java.lang.String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed, float vMin)
static boolean
dragIntRange2(java.lang.String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed, float vMin, float vMax)
static boolean
dragIntRange2(java.lang.String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed, float vMin, float vMax, java.lang.String format)
static boolean
dragIntRange2(java.lang.String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed, float vMin, float vMax, java.lang.String format, java.lang.String formatMax)
static boolean
dragScalar(java.lang.String label, int dataType, ImDouble pData, float vSpeed)
static boolean
dragScalar(java.lang.String label, int dataType, ImDouble pData, float vSpeed, double pMin)
static boolean
dragScalar(java.lang.String label, int dataType, ImDouble pData, float vSpeed, double pMin, double pMax)
static boolean
dragScalar(java.lang.String label, int dataType, ImDouble pData, float vSpeed, double pMin, double pMax, java.lang.String format)
static boolean
dragScalar(java.lang.String label, int dataType, ImDouble pData, float vSpeed, double pMin, double pMax, java.lang.String format, float power)
static boolean
dragScalar(java.lang.String label, int dataType, ImFloat pData, float vSpeed)
static boolean
dragScalar(java.lang.String label, int dataType, ImFloat pData, float vSpeed, float pMin)
static boolean
dragScalar(java.lang.String label, int dataType, ImFloat pData, float vSpeed, float pMin, float pMax)
static boolean
dragScalar(java.lang.String label, int dataType, ImFloat pData, float vSpeed, float pMin, float pMax, java.lang.String format)
static boolean
dragScalar(java.lang.String label, int dataType, ImFloat pData, float vSpeed, float pMin, float pMax, java.lang.String format, float power)
static boolean
dragScalar(java.lang.String label, int dataType, ImInt pData, float vSpeed)
static boolean
dragScalar(java.lang.String label, int dataType, ImInt pData, float vSpeed, int pMin)
static boolean
dragScalar(java.lang.String label, int dataType, ImInt pData, float vSpeed, int pMin, int pMax)
static boolean
dragScalar(java.lang.String label, int dataType, ImInt pData, float vSpeed, int pMin, int pMax, java.lang.String format)
static boolean
dragScalar(java.lang.String label, int dataType, ImInt pData, float vSpeed, int pMin, int pMax, java.lang.String format, float power)
static boolean
dragScalar(java.lang.String label, int dataType, ImLong pData, float vSpeed)
static boolean
dragScalar(java.lang.String label, int dataType, ImLong pData, float vSpeed, long pMin)
static boolean
dragScalar(java.lang.String label, int dataType, ImLong pData, float vSpeed, long pMin, long pMax)
static boolean
dragScalar(java.lang.String label, int dataType, ImLong pData, float vSpeed, long pMin, long pMax, java.lang.String format)
static boolean
dragScalar(java.lang.String label, int dataType, ImLong pData, float vSpeed, long pMin, long pMax, java.lang.String format, float power)
static boolean
dragScalar(java.lang.String label, int dataType, ImShort pData, float vSpeed)
static boolean
dragScalar(java.lang.String label, int dataType, ImShort pData, float vSpeed, short pMin)
static boolean
dragScalar(java.lang.String label, int dataType, ImShort pData, float vSpeed, short pMin, short pMax)
static boolean
dragScalar(java.lang.String label, int dataType, ImShort pData, float vSpeed, short pMin, short pMax, java.lang.String format)
static boolean
dragScalar(java.lang.String label, int dataType, ImShort pData, float vSpeed, short pMin, short pMax, java.lang.String format, float power)
static boolean
dragScalarN(java.lang.String label, int dataType, ImDouble pData, int components, float vSpeed)
static boolean
dragScalarN(java.lang.String label, int dataType, ImDouble pData, int components, float vSpeed, double pMin)
static boolean
dragScalarN(java.lang.String label, int dataType, ImDouble pData, int components, float vSpeed, double pMin, double pMax)
static boolean
dragScalarN(java.lang.String label, int dataType, ImDouble pData, int components, float vSpeed, double pMin, double pMax, java.lang.String format)
static boolean
dragScalarN(java.lang.String label, int dataType, ImDouble pData, int components, float vSpeed, double pMin, double pMax, java.lang.String format, float power)
static boolean
dragScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float vSpeed)
static boolean
dragScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float vSpeed, float pMin)
static boolean
dragScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float vSpeed, float pMin, float pMax)
static boolean
dragScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float vSpeed, float pMin, float pMax, java.lang.String format)
static boolean
dragScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float vSpeed, float pMin, float pMax, java.lang.String format, float power)
static boolean
dragScalarN(java.lang.String label, int dataType, ImInt pData, int components, float vSpeed)
static boolean
dragScalarN(java.lang.String label, int dataType, ImInt pData, int components, float vSpeed, int pMin)
static boolean
dragScalarN(java.lang.String label, int dataType, ImInt pData, int components, float vSpeed, int pMin, int pMax)
static boolean
dragScalarN(java.lang.String label, int dataType, ImInt pData, int components, float vSpeed, int pMin, int pMax, java.lang.String format)
static boolean
dragScalarN(java.lang.String label, int dataType, ImInt pData, int components, float vSpeed, int pMin, int pMax, java.lang.String format, float power)
static boolean
dragScalarN(java.lang.String label, int dataType, ImLong pData, int components, float vSpeed)
static boolean
dragScalarN(java.lang.String label, int dataType, ImLong pData, int components, float vSpeed, long pMin)
static boolean
dragScalarN(java.lang.String label, int dataType, ImLong pData, int components, float vSpeed, long pMin, long pMax)
static boolean
dragScalarN(java.lang.String label, int dataType, ImLong pData, int components, float vSpeed, long pMin, long pMax, java.lang.String format)
static boolean
dragScalarN(java.lang.String label, int dataType, ImLong pData, int components, float vSpeed, long pMin, long pMax, java.lang.String format, float power)
static boolean
dragScalarN(java.lang.String label, int dataType, ImShort pData, int components, float vSpeed)
static boolean
dragScalarN(java.lang.String label, int dataType, ImShort pData, int components, float vSpeed, short pMin)
static boolean
dragScalarN(java.lang.String label, int dataType, ImShort pData, int components, float vSpeed, short pMin, short pMax)
static boolean
dragScalarN(java.lang.String label, int dataType, ImShort pData, int components, float vSpeed, short pMin, short pMax, java.lang.String format)
static boolean
dragScalarN(java.lang.String label, int dataType, ImShort pData, int components, float vSpeed, short pMin, short pMax, java.lang.String format, float power)
static void
dummy(float width, float height)
Add a dummy item of given size.static void
end()
static void
endChild()
static void
endChildFrame()
Always call EndChildFrame() regardless of BeginChildFrame() return values (which indicates a collapsed/clipped window)static void
endCombo()
Only call EndCombo() if BeginCombo() returns true!static void
endDragDropSource()
Only call EndDragDropSource() if BeginDragDropSource() returns true!static void
endDragDropTarget()
Only call EndDragDropTarget() if BeginDragDropTarget() returns true!static void
endFrame()
Ends the Dear ImGui frame.static void
endGroup()
Unlock 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.)static void
endMainMenuBar()
Only call EndMainMenuBar() if BeginMainMenuBar() returns true!static void
endMenu()
Only call EndMenu() if BeginMenu() returns true!static void
endMenuBar()
Only call EndMenuBar() if BeginMenuBar() returns true!static void
endPopup()
only call EndPopup() if BeginPopupXXX() returns true!static void
endTabBar()
Only call EndTabBar() if BeginTabBar() returns true!static void
endTabItem()
Only call EndTabItem() if BeginTabItem() returns true!static void
endTooltip()
static ImDrawList
getBackgroundDrawList()
This draw list will be the first rendering one.static java.lang.String
getClipboardText()
static int
getColorU32(float r, float g, float b, float a)
Retrieve given color with style alpha appliedstatic int
getColorU32(int imGuiCol)
Retrieve given style color with style alpha applied and optional extra alpha multiplierstatic int
getColorU32(int imGuiCol, float alphaMul)
Retrieve given style color with style alpha applied and optional extra alpha multiplierstatic int
getColorU32i(int col)
Retrieve given color with style alpha applied BINDING NOTICE: SincegetColorU32(int)
has the same signature, this specific method has an 'i' suffix.static int
getColumnIndex()
Get current column indexstatic float
getColumnOffset()
Get position of column line (in pixels, from the left side of the contents region).static float
getColumnOffset(int columnIndex)
Get position of column line (in pixels, from the left side of the contents region).static int
getColumnsCount()
static float
getColumnWidth()
Get column width (in pixels).static float
getColumnWidth(int columnIndex)
Get column width (in pixels).static void
getContentRegionAvail(ImVec2 dstImVec2)
== GetContentRegionMax() - GetCursorPos()static float
getContentRegionAvailWidth()
Content boundaries min (roughly (0,0)-Scroll), in window coordinatesstatic void
getContentRegionMax(ImVec2 dstImVec2)
Current content boundaries (typically window boundaries including scrolling, or current column boundaries), in windows coordinatesstatic void
getCursorPos(ImVec2 dstImVec2)
Cursor position in window coordinates (relative to window position)static float
getCursorPosX()
static float
getCursorPosY()
static void
getCursorScreenPos(ImVec2 dstImVec2)
Cursor position in absolute screen coordinates [0..io.DisplaySize] (useful to work with ImDrawList API)static void
getCursorStartPos(ImVec2 dstImVec2)
Initial cursor position in window coordinatesstatic byte[]
getDragDropPayload()
Peek directly into the current payload from anywhere.static ImDrawData
getDrawData()
Valid after Render() and until the next call to NewFrame().static int
getFontSize()
Get current font size (= height in pixels) of current font with current scale appliedstatic void
getFontTexUvWhitePixel(ImVec2 dstImVec2)
Get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList APIstatic ImDrawList
getForegroundDrawList()
This draw list will be the last rendered one.static int
getFrameCount()
Get global imgui frame count.static float
getFrameHeight()
~ FontSize + style.FramePadding.y * 2static float
getFrameHeightWithSpacing()
~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets)static long
getID(long ptrId)
static long
getID(java.lang.String strId)
Calculate unique ID (hash of whole ID stack + given parameter).static long
getID(java.lang.String strIdBegin, java.lang.String strIdEnd)
static ImGuiIO
getIO()
Access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags).static void
getItemRectMax(ImVec2 dstImVec2)
Get lower-right bounding rectangle of the last item (screen space)static void
getItemRectMin(ImVec2 dstImVec2)
Get upper-left bounding rectangle of the last item (screen space)static void
getItemRectSize(ImVec2 dstImVec2)
Get size of last itemstatic int
getKeyIndex(int imguiKey)
Map ImGuiKey_* values into user's key index.static boolean
getKeyPressedAmount(int keyIndex, float repeatDelay, float rate)
Uses provided repeat rate/delay.static int
getMouseCursor()
Get desired cursor type, reset in ImGui::NewFrame(), this is updated during the frame.static void
getMouseDragDelta(ImVec2 dstImVec2)
Return the delta from the initial clicking position while the mouse button is pressed or was just released.static void
getMouseDragDelta(ImVec2 dstImVec2, int button)
Return the delta from the initial clicking position while the mouse button is pressed or was just released.static void
getMouseDragDelta(ImVec2 dstImVec2, int button, float lockThreshold)
Return the delta from the initial clicking position while the mouse button is pressed or was just released.static void
getMousePos(ImVec2 dstImVec2)
Shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other callsstatic void
getMousePosOnOpeningCurrentPopup(ImVec2 dstImVec2)
Retrieve backup of mouse position at the time of opening popup we have BeginPopup() intostatic float
getScrollMaxX()
Get maximum scrolling amount ~~ ContentSize.X - WindowSize.Xstatic float
getScrollMaxY()
Get maximum scrolling amount ~~ ContentSize.Y - WindowSize.Ystatic float
getScrollX()
Get scrolling amount [0..GetScrollMaxX()]static float
getScrollY()
Get scrolling amount [0..GetScrollMaxY()]static ImGuiStyle
getStyle()
Access the Style structure (colors, sizes).static java.lang.String
getStyleColorName(int imGuiCol)
Get a string corresponding to the enum value (for display, saving, etc.).static void
getStyleColorVec4(int imGuiStyleVar, ImVec4 dstImVec4)
Retrieve style color as stored in ImGuiStyle structure.static float
getTextLineHeight()
~ FontSizestatic float
getTextLineHeightWithSpacing()
~ FontSize + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of text)static double
getTime()
Get global imgui time.static float
getTreeNodeToLabelSpacing()
Horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNodestatic java.lang.String
getVersion()
Get the compiled version string e.g.static void
getWindowContentRegionMax(ImVec2 dstImVec2)
static void
getWindowContentRegionMin(ImVec2 dstImVec2)
Content boundaries max (roughly (0,0)+Size-Scroll) where Size can be override with SetNextWindowContentSize(), in window coordinatesstatic ImDrawList
getWindowDrawList()
Get draw list associated to the current window, to append your own drawing primitivesstatic float
getWindowHeight()
Get current window height (shortcut for GetWindowSize().y)static void
getWindowPos(ImVec2 dstImVec2)
Get current window position in screen space (useful if you want to do your own drawing via the DrawList API)static void
getWindowSize(ImVec2 dstImVec2)
Get current window sizestatic float
getWindowWidth()
Get current window width (shortcut for GetWindowSize().x)static void
image(int textureID, float sizeX, float sizeY)
static void
image(int textureID, float sizeX, float sizeY, float uv0X, float uv0Y, float uv1X, float uv1Y)
static void
image(int textureID, float sizeX, float sizeY, float uv0X, float uv0Y, float uv1X, float uv1Y, float tintColorR, float tintColorG, float tintColorB, float tintColorA, float borderR, float borderG, float borderB, float borderA)
static boolean
imageButton(int textureID, float sizeX, float sizeY)
<0
framePadding uses default frame padding settings.static boolean
imageButton(int textureID, float sizeX, float sizeY, float uv0X, float uv0Y, float uv1X, float uv1Y, int framePadding)
<0
framePadding uses default frame padding settings.static boolean
imageButton(int textureID, float sizeX, float sizeY, float uv0X, float uv0Y, float uv1X, float uv1Y, int framePadding, float bgColorR, float bgColorG, float bgColorB, float bgColorA, float tintR, float tintG, float tintB, float tintA)
<0
framePadding uses default frame padding settings.static void
indent()
Move content position toward the right, by style.IndentSpacing or indent_w if != 0static void
indent(float indentW)
Move content position toward the right, by style.IndentSpacing or indent_w if != 0static boolean
inputDouble(java.lang.String label, ImDouble v)
static boolean
inputDouble(java.lang.String label, ImDouble v, double step)
static boolean
inputDouble(java.lang.String label, ImDouble v, double step, double stepFast)
static boolean
inputDouble(java.lang.String label, ImDouble v, double step, double stepFast, java.lang.String format)
static boolean
inputDouble(java.lang.String label, ImDouble v, double step, double stepFast, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputFloat(java.lang.String label, ImFloat v)
static boolean
inputFloat(java.lang.String label, ImFloat v, float step)
static boolean
inputFloat(java.lang.String label, ImFloat v, float step, float stepFast)
static boolean
inputFloat(java.lang.String label, ImFloat v, float step, float stepFast, java.lang.String format)
static boolean
inputFloat(java.lang.String label, ImFloat v, float step, float stepFast, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputFloat2(java.lang.String label, float[] v)
static boolean
inputFloat2(java.lang.String label, float[] v, java.lang.String format)
static boolean
inputFloat2(java.lang.String label, float[] v, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputFloat3(java.lang.String label, float[] v)
static boolean
inputFloat3(java.lang.String label, float[] v, java.lang.String format)
static boolean
inputFloat3(java.lang.String label, float[] v, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputFloat4(java.lang.String label, float[] v)
static boolean
inputFloat4(java.lang.String label, float[] v, java.lang.String format)
static boolean
inputFloat4(java.lang.String label, float[] v, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputInt(java.lang.String label, ImInt v)
static boolean
inputInt(java.lang.String label, ImInt v, int step)
static boolean
inputInt(java.lang.String label, ImInt v, int step, int stepFast)
static boolean
inputInt(java.lang.String label, ImInt v, int step, int stepFast, int imGuiInputTextFlags)
static boolean
inputInt2(java.lang.String label, int[] v)
static boolean
inputInt2(java.lang.String label, int[] v, int imGuiInputTextFlags)
static boolean
inputInt3(java.lang.String label, int[] v)
static boolean
inputInt3(java.lang.String label, int[] v, int imGuiInputTextFlags)
static boolean
inputInt4(java.lang.String label, int[] v)
static boolean
inputInt4(java.lang.String label, int[] v, int imGuiInputTextFlags)
static boolean
inputScalar(java.lang.String label, int dataType, ImDouble pData)
static boolean
inputScalar(java.lang.String label, int dataType, ImDouble pData, double pStep)
static boolean
inputScalar(java.lang.String label, int dataType, ImDouble pData, double pStep, double pStepFast)
static boolean
inputScalar(java.lang.String label, int dataType, ImDouble pData, double pStep, double pStepFast, java.lang.String format)
static boolean
inputScalar(java.lang.String label, int dataType, ImDouble pData, double pStep, double pStepFast, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputScalar(java.lang.String label, int dataType, ImFloat pData)
static boolean
inputScalar(java.lang.String label, int dataType, ImFloat pData, float pStep)
static boolean
inputScalar(java.lang.String label, int dataType, ImFloat pData, float pStep, float pStepFast)
static boolean
inputScalar(java.lang.String label, int dataType, ImFloat pData, float pStep, float pStepFast, java.lang.String format)
static boolean
inputScalar(java.lang.String label, int dataType, ImFloat pData, float pStep, float pStepFast, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputScalar(java.lang.String label, int dataType, ImInt pData)
static boolean
inputScalar(java.lang.String label, int dataType, ImInt pData, int pStep)
static boolean
inputScalar(java.lang.String label, int dataType, ImInt pData, int pStep, int pStepFast)
static boolean
inputScalar(java.lang.String label, int dataType, ImInt pData, int pStep, int pStepFast, java.lang.String format)
static boolean
inputScalar(java.lang.String label, int dataType, ImInt pData, int pStep, int pStepFast, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputScalar(java.lang.String label, int dataType, ImLong pData)
static boolean
inputScalar(java.lang.String label, int dataType, ImLong pData, long pStep)
static boolean
inputScalar(java.lang.String label, int dataType, ImLong pData, long pStep, long pStepFast)
static boolean
inputScalar(java.lang.String label, int dataType, ImLong pData, long pStep, long pStepFast, java.lang.String format)
static boolean
inputScalar(java.lang.String label, int dataType, ImLong pData, long pStep, long pStepFast, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputScalar(java.lang.String label, int dataType, ImShort pData)
static boolean
inputScalar(java.lang.String label, int dataType, ImShort pData, short pStep)
static boolean
inputScalar(java.lang.String label, int dataType, ImShort pData, short pStep, short pStepFast)
static boolean
inputScalar(java.lang.String label, int dataType, ImShort pData, short pStep, short pStepFast, java.lang.String format)
static boolean
inputScalar(java.lang.String label, int dataType, ImShort pData, short pStep, short pStepFast, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputScalarN(java.lang.String label, int dataType, ImDouble pData, int components)
static boolean
inputScalarN(java.lang.String label, int dataType, ImDouble pData, int components, double pStep)
static boolean
inputScalarN(java.lang.String label, int dataType, ImDouble pData, int components, double pStep, double pStepFast)
static boolean
inputScalarN(java.lang.String label, int dataType, ImDouble pData, int components, double pStep, double pStepFast, java.lang.String format)
static boolean
inputScalarN(java.lang.String label, int dataType, ImDouble pData, int components, double pStep, double pStepFast, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputScalarN(java.lang.String label, int dataType, ImFloat pData, int components)
static boolean
inputScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float pStep)
static boolean
inputScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float pStep, float pStepFast)
static boolean
inputScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float pStep, float pStepFast, java.lang.String format)
static boolean
inputScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float pStep, float pStepFast, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputScalarN(java.lang.String label, int dataType, ImInt pData, int components)
static boolean
inputScalarN(java.lang.String label, int dataType, ImInt pData, int components, int pStep)
static boolean
inputScalarN(java.lang.String label, int dataType, ImInt pData, int components, int pStep, int pStepFast)
static boolean
inputScalarN(java.lang.String label, int dataType, ImInt pData, int components, int pStep, int pStepFast, java.lang.String format)
static boolean
inputScalarN(java.lang.String label, int dataType, ImInt pData, int components, int pStep, int pStepFast, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputScalarN(java.lang.String label, int dataType, ImLong pData, int components)
static boolean
inputScalarN(java.lang.String label, int dataType, ImLong pData, int components, long pStep)
static boolean
inputScalarN(java.lang.String label, int dataType, ImLong pData, int components, long pStep, long pStepFast)
static boolean
inputScalarN(java.lang.String label, int dataType, ImLong pData, int components, long pStep, long pStepFast, java.lang.String format)
static boolean
inputScalarN(java.lang.String label, int dataType, ImLong pData, int components, long pStep, long pStepFast, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputScalarN(java.lang.String label, int dataType, ImShort pData, int components)
static boolean
inputScalarN(java.lang.String label, int dataType, ImShort pData, int components, short pStep)
static boolean
inputScalarN(java.lang.String label, int dataType, ImShort pData, int components, short pStep, short pStepFast)
static boolean
inputScalarN(java.lang.String label, int dataType, ImShort pData, int components, short pStep, short pStepFast, java.lang.String format)
static boolean
inputScalarN(java.lang.String label, int dataType, ImShort pData, int components, short pStep, short pStepFast, java.lang.String format, int imGuiInputTextFlags)
static boolean
inputText(java.lang.String label, ImString text)
static boolean
inputText(java.lang.String label, ImString text, int imGuiInputTextFlags)
static boolean
inputTextMultiline(java.lang.String label, ImString text)
static boolean
inputTextMultiline(java.lang.String label, ImString text, float width, float height)
static boolean
inputTextMultiline(java.lang.String label, ImString text, float width, float height, int imGuiInputTextFlags)
static boolean
inputTextMultiline(java.lang.String label, ImString text, int imGuiInputTextFlags)
static boolean
invisibleButton(java.lang.String strId, float width, float height)
Button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.)static boolean
isAnyItemActive()
Is any item active?static boolean
isAnyItemFocused()
Is any item focused?static boolean
isAnyItemHovered()
Is any item hovered?static boolean
isAnyMouseDown()
Is any mouse button heldstatic boolean
isItemActivated()
Was the last item just made active (item was previously inactive).static boolean
isItemActive()
Is the last item active? (e.g.static boolean
isItemClicked()
Is the last item clicked? (e.g.static boolean
isItemClicked(int mouseButton)
Is the last item clicked? (e.g.static boolean
isItemDeactivated()
Was the last item just made inactive (item was previously active).static boolean
isItemDeactivatedAfterEdit()
Was the last item just made inactive and made a value change when it was active? (e.g.static boolean
isItemEdited()
Did 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.static boolean
isItemFocused()
Is the last item focused for keyboard/gamepad navigation?static boolean
isItemHovered()
Is the last item hovered? (and usable, aka not blocked by a popup, etc.).static boolean
isItemHovered(int imGuiHoveredFlags)
Is the last item hovered? (and usable, aka not blocked by a popup, etc.).static boolean
isItemToggledOpen()
Was the last item open state toggled? set by TreeNode().static boolean
isItemVisible()
Is the last item visible? (items may be out of sight because of clipping/scrolling)static boolean
isKeyDown(int userKeyIndex)
Is key being held.static boolean
isKeyPressed(int userKeyIndex)
Was key pressed (went from !Down to Down).static boolean
isKeyPressed(int userKeyIndex, boolean repeat)
Was key pressed (went from !Down to Down).static boolean
isKeyReleased(int userKeyIndex)
Was key released (went from Down to !Down)..static boolean
isMouseClicked(int button)
Did mouse button clicked (went from !Down to Down) (0=left, 1=right, 2=middle)static boolean
isMouseClicked(int button, boolean repeat)
static boolean
isMouseDoubleClicked(int button)
Did mouse button double-clicked.static boolean
isMouseDown(int button)
Is mouse button held (0=left, 1=right, 2=middle)static boolean
isMouseDragging()
Is mouse dragging.static boolean
isMouseDragging(int button)
Is mouse dragging.static boolean
isMouseDragging(int button, float lockThreshold)
Is mouse dragging.static boolean
isMouseHoveringRect(float minX, float minY, float maxX, float maxY)
Is mouse hovering given bounding rect (in screen space).static boolean
isMouseHoveringRect(float minX, float minY, float maxX, float maxY, boolean clip)
Is mouse hovering given bounding rect (in screen space).static boolean
isMousePosValid()
By convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mousestatic boolean
isMousePosValid(float mousePosX, float mousePosY)
By convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mousestatic boolean
isMouseReleased(int button)
Did mouse button released (went from Down to !Down)static boolean
isPopupOpen(java.lang.String strId)
Return true if the popup is open at the current begin-ed level of the popup stack.static boolean
isRectVisible(float width, float height)
Test if rectangle (of given size, starting from cursor position) is visible / not clipped.static boolean
isRectVisible(float minX, float minY, float maxX, float maxY)
Test if rectangle (in screen space) is visible / not clipped.static boolean
isWindowAppearing()
static boolean
isWindowCollapsed()
static boolean
isWindowFocused()
Is current window focused? or its root/child, depending on flags.static boolean
isWindowFocused(int imGuiFocusedFlags)
Is current window focused? or its root/child, depending on flags.static boolean
isWindowHovered()
Is current window hovered (and typically: not blocked by a popup/modal)? see flags for options.static boolean
isWindowHovered(int imGuiHoveredFlags)
Is current window hovered (and typically: not blocked by a popup/modal)? see flags for options.static void
labelText(java.lang.String label, java.lang.String text)
Display text+label aligned the same way as value+label widgetsstatic void
listBox(java.lang.String label, ImInt currentItem, java.lang.String[] items, int itemsCount)
static void
listBox(java.lang.String label, ImInt currentItem, java.lang.String[] items, int itemsCount, int heightInItems)
static void
listBoxFooter()
Terminate the scrolling region.static boolean
listBoxHeader(java.lang.String label)
Use if you want to reimplement ListBox() will custom data or interactions.static boolean
listBoxHeader(java.lang.String label, float sizeX, float sizeY)
Use if you want to reimplement ListBox() will custom data or interactions.static boolean
listBoxHeader(java.lang.String label, int itemsCount)
static boolean
listBoxHeader(java.lang.String label, int itemsCount, int heightInItems)
static void
loadIniSettingsFromDisk(java.lang.String iniFilename)
Call after CreateContext() and before the first call to NewFrame().static void
loadIniSettingsFromMemory(java.lang.String iniData)
Call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source.static void
loadIniSettingsFromMemory(java.lang.String iniData, int iniSize)
Call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source.static void
logButtons()
Helper to display buttons for logging to tty/file/clipboardstatic void
logFinish()
Stop logging (close file, etc.)static void
logText(java.lang.String text)
Pass text data straight to log (without being displayed)static void
logToClipboard()
Start logging to OS clipboardstatic void
logToClipboard(int autoOpenDepth)
Start logging to OS clipboardstatic void
logToFile()
Start logging to filestatic void
logToFile(int autoOpenDepth)
Start logging to filestatic void
logToFile(int autoOpenDepth, java.lang.String filename)
Start logging to filestatic void
logToTTY()
Start logging to tty (stdout)static void
logToTTY(int autoOpenDepth)
Start logging to tty (stdout)static boolean
menuItem(java.lang.String label)
Return true when activated.static boolean
menuItem(java.lang.String label, java.lang.String shortcut)
Return true when activated.static boolean
menuItem(java.lang.String label, java.lang.String shortcut, boolean selected)
Return true when activated.static boolean
menuItem(java.lang.String label, java.lang.String shortcut, boolean selected, boolean enabled)
Return true when activated.static boolean
menuItem(java.lang.String label, java.lang.String shortcut, ImBool pSelected)
Return true when activated + toggle (*pSelected) if pSelected != NULLstatic boolean
menuItem(java.lang.String label, java.lang.String shortcut, ImBool pSelected, boolean enabled)
Return true when activated + toggle (*pSelected) if pSelected != NULLstatic void
newFrame()
Start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame().static void
newLine()
Undo a SameLine() or force a new line when in an horizontal-layout context.static void
nextColumn()
Next column, defaults to current row or next row if the current row is finishedstatic void
openPopup(java.lang.String strId)
Call to mark popup as open (don't call every frame!).static boolean
openPopupOnItemClick()
Helper to open popup when clicked on last item (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors).static boolean
openPopupOnItemClick(java.lang.String strId)
Helper to open popup when clicked on last item (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors).static boolean
openPopupOnItemClick(java.lang.String strId, int mouseButton)
Helper to open popup when clicked on last item (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors).static void
plotHistogram(java.lang.String label, float[] values, int valuesCount)
static void
plotHistogram(java.lang.String label, float[] values, int valuesCount, int valuesOffset)
static void
plotHistogram(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText)
static void
plotHistogram(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin)
static void
plotHistogram(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin, float scaleMax)
static void
plotHistogram(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin, float scaleMax, float graphWidth, float graphHeight)
static void
plotHistogram(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin, float scaleMax, float graphWidth, float graphHeight, int stride)
static void
plotLines(java.lang.String label, float[] values, int valuesCount)
static void
plotLines(java.lang.String label, float[] values, int valuesCount, int valuesOffset)
static void
plotLines(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText)
static void
plotLines(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin)
static void
plotLines(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin, float scaleMax)
static void
plotLines(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin, float scaleMax, float graphWidth, float graphHeight)
static void
plotLines(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin, float scaleMax, float graphWidth, float graphHeight, int stride)
static void
popAllowKeyboardFocus()
static void
popButtonRepeat()
static void
popClipRect()
static void
popFont()
static void
popID()
Pop from the ID stack.static void
popItemWidth()
static void
popStyleColor()
static void
popStyleColor(int count)
static void
popStyleVar()
static void
popStyleVar(int count)
static void
popTextWrapPos()
static void
progressBar(float fraction)
static void
progressBar(float fraction, float sizeArgX, float sizeArgY)
static void
progressBar(float fraction, float sizeArgX, float sizeArgY, java.lang.String overlay)
static void
pushAllowKeyboardFocus(boolean allowKeyboardFocus)
Allow focusing using TAB/Shift-TAB, enabled by default but you can disable it for certain widgetsstatic void
pushButtonRepeat(boolean repeat)
In 'repeat' mode, Button*() functions return repeated true in a typematic manner (using io.KeyRepeatDelay/io.KeyRepeatRate setting).static void
pushClipRect(float clipRectMinX, float clipRectMinY, float clipRectMaxX, float clipRectMaxY, boolean intersectWithCurrentClipRect)
static void
pushID(int intId)
Push integer into the ID stack (will hash integer).static void
pushID(long ptrId)
Push pointer into the ID stack (will hash pointer).static void
pushID(java.lang.String strId)
Push string into the ID stack (will hash string).static void
pushID(java.lang.String strIdBegin, java.lang.String strIdEnd)
Push string into the ID stack (will hash string).static void
pushItemWidth(float itemWidth)
Set width of items for common large "item+label" widgets.static void
pushStyleColor(int imGuiCol, float r, float g, float b, float a)
static void
pushStyleColor(int imGuiCol, int col)
static void
pushStyleVar(int imGuiStyleVar, float val)
static void
pushStyleVar(int imGuiStyleVar, float valX, float valY)
static void
pushTextWrapPos()
Word-wrapping for Text*() commands.static void
pushTextWrapPos(float wrapLocalPosX)
Word-wrapping for Text*() commands.static boolean
radioButton(java.lang.String label, boolean active)
Use with e.g.static boolean
radioButton(java.lang.String label, ImInt v, int vButton)
Shortcut to handle the above pattern when value is an integerstatic void
render()
Ends the Dear ImGui frame, finalize the draw data.static void
resetMouseDragDelta()
static void
resetMouseDragDelta(int button)
static void
sameLine()
Call between widgets or groups to layout them horizontally.static void
sameLine(float offsetFromStartX)
Call between widgets or groups to layout them horizontally.static void
sameLine(float offsetFromStartX, float spacing)
Call between widgets or groups to layout them horizontally.static void
saveIniSettingsToDisk(java.lang.String iniFilename)
This 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).static java.lang.String
saveIniSettingsToMemory()
Return a zero-terminated string with the .ini data which you can save by your own mean.static java.lang.String
saveIniSettingsToMemory(long outIniSize)
Return a zero-terminated string with the .ini data which you can save by your own mean.static boolean
selectable(java.lang.String label)
static boolean
selectable(java.lang.String label, boolean selected)
static boolean
selectable(java.lang.String label, boolean selected, int imGuiSelectableFlags)
static boolean
selectable(java.lang.String label, boolean selected, int imGuiSelectableFlags, float sizeX, float sizeY)
static boolean
selectable(java.lang.String label, ImBool selected)
static boolean
selectable(java.lang.String label, ImBool selected, int imGuiSelectableFlags)
static boolean
selectable(java.lang.String label, ImBool selected, int imGuiSelectableFlags, float sizeX, float sizeY)
static void
separator()
Separator, generally horizontal.static void
setClipboardText(java.lang.String text)
static void
setColorEditOptions(int imGuiColorEditFlags)
Initialize current options (generally on application startup) if you want to select a default format, picker type, etc.static void
setColumnOffset(int columnIndex, float offsetX)
Set position of column line (in pixels, from the left side of the contents region).static void
setColumnWidth(int columnIndex, float width)
Set column width (in pixels).static void
setCursorPos(float x, float y)
static void
setCursorPosX(float x)
static void
setCursorPosY(float y)
static void
setCursorScreenPos(float x, float y)
Cursor position in absolute screen coordinates [0..io.DisplaySize]static boolean
setDragDropPayload(java.lang.String type, byte[] data, int sz)
Type is a user defined string of maximum 32 characters.static boolean
setDragDropPayload(java.lang.String type, byte[] data, int sz, int imGuiCond)
Type is a user defined string of maximum 32 characters.static void
setItemAllowOverlap()
Allow last item to be overlapped by a subsequent item.static void
setItemDefaultFocus()
Make last item the default focused item of a window.static void
setKeyboardFocusHere()
Focus keyboard on the next widget.static void
setKeyboardFocusHere(int offset)
Focus keyboard on the next widget.static void
setMouseCursor(int type)
Set desired cursor typestatic void
setNextItemOpen(boolean isOpen)
Set next TreeNode/CollapsingHeader open state.static void
setNextItemOpen(boolean isOpen, int cond)
Set next TreeNode/CollapsingHeader open state.static void
setNextItemWidth(float itemWidth)
Set width of the _next_ common large "item+label" widget.static void
setNextWindowBgAlpha(float alpha)
Set next window background color alpha.static void
setNextWindowCollapsed(boolean collapsed)
Set next window collapsed state.static void
setNextWindowCollapsed(boolean collapsed, int imGuiCond)
Set next window collapsed state.static void
setNextWindowContentSize(float width, float height)
Set next window content size (~ scrollable client area, which enforce the range of scrollbars).static void
setNextWindowFocus()
Set next window to be focused / top-most.static void
setNextWindowPos(float x, float y)
Set next window position.static void
setNextWindowPos(float x, float y, int imGuiCond)
Set next window position.static void
setNextWindowPos(float x, float y, int imGuiCond, float pivotX, float pivotY)
Set next window position.static void
setNextWindowSize(float width, float height)
Set next window size.static void
setNextWindowSize(float width, float height, int imGuiCond)
Set next window size.static void
setNextWindowSizeConstraints(float minWidth, float minHeight, float maxWidth, float maxHeight)
Set next window size limits.static void
setScrollFromPosX(float localX)
Adjust scrolling amount to make given position visible.static void
setScrollFromPosX(float localX, float centerXRatio)
Adjust scrolling amount to make given position visible.static void
setScrollFromPosY(float localY)
Adjust scrolling amount to make given position visible.static void
setScrollFromPosY(float localY, float centerYRatio)
Adjust scrolling amount to make given position visible.static void
setScrollHereX()
Adjust scrolling amount to make current cursor position visible.static void
setScrollHereX(float centerXRatio)
Adjust scrolling amount to make current cursor position visible.static void
setScrollHereY()
Adjust scrolling amount to make current cursor position visible.static void
setScrollHereY(float centerYRatio)
Adjust scrolling amount to make current cursor position visible.static void
setScrollX(float scrollX)
Set scrolling amount [0..GetScrollMaxX()]static void
setScrollY(float scrollY)
Set scrolling amount [0..GetScrollMaxY()]static void
setTabItemClosed(java.lang.String tabOrDockedWindowLabel)
Notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars).static void
setTooltip(java.lang.String text)
Set a text-only tooltip, typically use with ImGui::IsItemHovered().static void
setWindowCollapsed(boolean collapsed)
(not recommended) set current window collapsed state.static void
setWindowCollapsed(boolean collapsed, int imGuiCond)
(not recommended) set current window collapsed state.static void
setWindowCollapsed(java.lang.String name, boolean collapsed)
Set named window collapsed statestatic void
setWindowCollapsed(java.lang.String name, boolean collapsed, int imGuiCond)
Set named window collapsed statestatic void
setWindowFocus()
(not recommended) set current window to be focused / top-most.static void
setWindowFocus(java.lang.String name)
Set named window to be focused / top-most.void
setWindowFontScale(float scale)
Set font scale.static void
setWindowPos(float x, float y)
(not recommended) set current window position - call within Begin()/End().static void
setWindowPos(float x, float y, int imGuiCond)
(not recommended) set current window position - call within Begin()/End().static void
setWindowPos(java.lang.String name, float x, float y)
Set named window position.static void
setWindowPos(java.lang.String name, float x, float y, int imGuiCond)
Set named window position.static void
setWindowSize(float width, float height)
(not recommended) set current window size - call within Begin()/End().static void
setWindowSize(float width, float height, int imGuiCond)
(not recommended) set current window size - call within Begin()/End().static void
setWindowSize(java.lang.String name, float x, float y)
Set named window size.static void
setWindowSize(java.lang.String name, float x, float y, int imGuiCond)
Set named window size.static void
showAboutWindow()
Create About window.static void
showAboutWindow(ImBool pOpen)
static void
showDemoWindow()
Create Demo window (previously called ShowTestWindow).static void
showDemoWindow(ImBool pOpen)
static void
showFontSelector(java.lang.String label)
Add font selector block (not a window), essentially a combo listing the loaded fonts.static void
showMetricsWindow()
Create Metrics/Debug window.static void
showMetricsWindow(ImBool pOpen)
static void
showStyleEditor()
Add style editor block (not a window).static boolean
showStyleSelector(java.lang.String label)
Add style selector block (not a window), essentially a combo listing the default styles.static void
showUserGuide()
Add basic help/info block (not a window): how to manipulate ImGui as a end-user (mouse/keyboard controls).static boolean
sliderAngle(java.lang.String label, float[] vRad)
static boolean
sliderAngle(java.lang.String label, float[] vRad, float vDegreesMin)
static boolean
sliderAngle(java.lang.String label, float[] vRad, float vDegreesMin, float vDegreesMax)
static boolean
sliderAngle(java.lang.String label, float[] vRad, float vDegreesMin, float vDegreesMax, java.lang.String format)
static boolean
sliderFloat(java.lang.String label, float[] v, float vMin, float vMax)
Adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display.static boolean
sliderFloat(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format)
static boolean
sliderFloat(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format, float power)
static boolean
sliderFloat2(java.lang.String label, float[] v, float vMin, float vMax)
static boolean
sliderFloat2(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format)
static boolean
sliderFloat2(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format, float power)
static boolean
sliderFloat3(java.lang.String label, float[] v, float vMin, float vMax)
static boolean
sliderFloat3(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format)
static boolean
sliderFloat3(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format, float power)
static boolean
sliderFloat4(java.lang.String label, float[] v, float vMin, float vMax)
static boolean
sliderFloat4(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format)
static boolean
sliderFloat4(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format, float power)
static boolean
sliderInt(java.lang.String label, int[] v, int vMin, int vMax)
static boolean
sliderInt(java.lang.String label, int[] v, int vMin, int vMax, java.lang.String format)
static boolean
sliderInt2(java.lang.String label, int[] v, int vMin, int vMax)
static boolean
sliderInt2(java.lang.String label, int[] v, int vMin, int vMax, java.lang.String format)
static boolean
sliderInt3(java.lang.String label, int[] v, int vMin, int vMax)
static boolean
sliderInt3(java.lang.String label, int[] v, int vMin, int vMax, java.lang.String format)
static boolean
sliderInt4(java.lang.String label, int[] v, int vMin, int vMax)
static boolean
sliderInt4(java.lang.String label, int[] v, int vMin, int vMax, java.lang.String format)
static boolean
sliderScalar(java.lang.String label, int dataType, ImDouble v, double vMin, double vMax)
static boolean
sliderScalar(java.lang.String label, int dataType, ImDouble v, double vMin, double vMax, java.lang.String format)
static boolean
sliderScalar(java.lang.String label, int dataType, ImDouble v, double vMin, double vMax, java.lang.String format, float power)
static boolean
sliderScalar(java.lang.String label, int dataType, ImFloat v, float vMin, float vMax)
static boolean
sliderScalar(java.lang.String label, int dataType, ImFloat v, float vMin, float vMax, java.lang.String format)
static boolean
sliderScalar(java.lang.String label, int dataType, ImFloat v, float vMin, float vMax, java.lang.String format, float power)
static boolean
sliderScalar(java.lang.String label, int dataType, ImInt v, int vMin, int vMax)
static boolean
sliderScalar(java.lang.String label, int dataType, ImInt v, int vMin, int vMax, java.lang.String format)
static boolean
sliderScalar(java.lang.String label, int dataType, ImInt v, int vMin, int vMax, java.lang.String format, float power)
static boolean
sliderScalar(java.lang.String label, int dataType, ImLong v, long vMin, long vMax)
static boolean
sliderScalar(java.lang.String label, int dataType, ImLong v, long vMin, long vMax, java.lang.String format)
static boolean
sliderScalar(java.lang.String label, int dataType, ImLong v, long vMin, long vMax, java.lang.String format, float power)
static boolean
sliderScalar(java.lang.String label, int dataType, ImShort v, short vMin, short vMax)
static boolean
sliderScalar(java.lang.String label, int dataType, ImShort v, short vMin, short vMax, java.lang.String format)
static boolean
sliderScalar(java.lang.String label, int dataType, ImShort v, short vMin, short vMax, java.lang.String format, float power)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImDouble v, double vMin, double vMax)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImDouble v, double vMin, double vMax, java.lang.String format)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImDouble v, double vMin, double vMax, java.lang.String format, float power)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImFloat v, float vMin, float vMax)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImFloat v, float vMin, float vMax, java.lang.String format)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImFloat v, float vMin, float vMax, java.lang.String format, float power)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImInt v, int vMin, int vMax)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImInt v, int vMin, int vMax, java.lang.String format)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImInt v, int vMin, int vMax, java.lang.String format, float power)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImLong v, long vMin, long vMax)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImLong v, long vMin, long vMax, java.lang.String format)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImLong v, long vMin, long vMax, java.lang.String format, float power)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImShort v, short vMin, short vMax)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImShort v, short vMin, short vMax, java.lang.String format)
static boolean
sliderScalarN(java.lang.String label, int dataType, int components, ImShort v, short vMin, short vMax, java.lang.String format, float power)
static boolean
smallButton(java.lang.String label)
Button with FramePadding=(0,0) to easily embed within textstatic void
spacing()
Add vertical spacing.static void
styleColorsClassic()
Classic imgui stylestatic void
styleColorsDark()
New, recommended style (default)static void
styleColorsLight()
Best used with borders and a custom, thicker fontstatic void
text(java.lang.String text)
Formatted text BINDING NOTICE: Since all text formatting could be done on Java side, this call is equal totextUnformatted(String)
.static void
textColored(float r, float g, float b, float a, java.lang.String text)
Shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor();static void
textDisabled(java.lang.String text)
Shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor();static void
textUnformatted(java.lang.String text)
Raw text without formatting.static void
textUnformatted(java.lang.String text, java.lang.String textEnd)
Raw text without formatting.static void
textWrapped(java.lang.String text)
Shortcut for PushTextWrapPos(0.0f); Text(fmt, ...); PopTextWrapPos();.static void
treeAdvanceToLabelPos()
static boolean
treeNode(long ptrId, java.lang.String label)
static boolean
treeNode(java.lang.String label)
static boolean
treeNode(java.lang.String strId, java.lang.String label)
Helper variation to easily decorelate the id from the displayed string.static boolean
treeNodeEx(int ptrId, int imGuiTreeNodeFlags, java.lang.String label)
static boolean
treeNodeEx(java.lang.String label)
static boolean
treeNodeEx(java.lang.String label, int imGuiTreeNodeFlags)
static boolean
treeNodeEx(java.lang.String strId, int imGuiTreeNodeFlags, java.lang.String label)
static void
treePop()
~ Unindent()+PopId()static void
treePush()
~ Indent()+PushId().static void
treePush(long ptrId)
static void
treePush(java.lang.String strId)
static void
unindent()
Move content position back to the left, by style.IndentSpacing or indent_w if != 0static void
unindent(float indentW)
Move content position back to the left, by style.IndentSpacing or indent_w if != 0static void
value(java.lang.String prefix, boolean b)
static void
value(java.lang.String prefix, float f)
static void
value(java.lang.String prefix, float f, java.lang.String floatFormat)
static void
value(java.lang.String prefix, int v)
static void
value(java.lang.String prefix, long v)
static boolean
vSliderFloat(java.lang.String label, float sizeX, float sizeY, float[] v, float vMin, float vMax)
static boolean
vSliderFloat(java.lang.String label, float sizeX, float sizeY, float[] v, float vMin, float vMax, java.lang.String format)
static boolean
vSliderFloat(java.lang.String label, float sizeX, float sizeY, float[] v, float vMin, float vMax, java.lang.String format, float power)
static boolean
vSliderInt(java.lang.String label, float sizeX, float sizeY, int[] v, int vMin, int vMax)
static boolean
vSliderInt(java.lang.String label, float sizeX, float sizeY, int[] v, int vMin, int vMax, java.lang.String format)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImDouble v, double vMin, double vMax)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImDouble v, double vMin, double vMax, java.lang.String format)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImDouble v, double vMin, double vMax, java.lang.String format, float power)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImFloat v, float vMin, float vMax)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImFloat v, float vMin, float vMax, java.lang.String format)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImFloat v, float vMin, float vMax, java.lang.String format, float power)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImInt v, int vMin, int vMax)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImInt v, int vMin, int vMax, java.lang.String format)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImInt v, int vMin, int vMax, java.lang.String format, float power)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImLong v, long vMin, long vMax)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImLong v, long vMin, long vMax, java.lang.String format)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImLong v, long vMin, long vMax, java.lang.String format, float power)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImShort v, short vMin, short vMax)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImShort v, short vMin, short vMax, java.lang.String format)
static boolean
vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImShort v, short vMin, short vMax, java.lang.String format, float power)
-
Method Details
-
createContext
public static void createContext() -
destroyContext
public static void destroyContext() -
getIO
Access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags). -
getStyle
Access the Style structure (colors, sizes). Always use PushStyleCol(), PushStyleVar() to modify style mid-frame. -
newFrame
public static void newFrame()Start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame(). -
endFrame
public static void endFrame()Ends the Dear ImGui frame. automatically called by Render(), you likely don't need to call that yourself directly. If you don't need to render data (skipping rendering) you may call EndFrame() but you'll have wasted CPU already! If you don't need to render, better to not create any imgui windows and not call NewFrame() at all! -
render
public static void render()Ends the Dear ImGui frame, finalize the draw data. You can get call GetDrawData() to obtain it and run your rendering function. -
getDrawData
Valid after Render() and until the next call to NewFrame(). this is what you have to render. -
showDemoWindow
public static void showDemoWindow()Create Demo window (previously called ShowTestWindow). demonstrate most ImGui features. Call this to learn about the library! -
showDemoWindow
-
showAboutWindow
public static void showAboutWindow()Create About window. display Dear ImGui version, credits and build/system information. -
showAboutWindow
-
showMetricsWindow
public static void showMetricsWindow()Create Metrics/Debug window. Display Dear ImGui internals: draw commands (with individual draw calls and vertices), window list, basic internal state, etc. -
showMetricsWindow
-
showStyleEditor
public static void showStyleEditor()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) -
showStyleSelector
public static boolean showStyleSelector(java.lang.String label)Add style selector block (not a window), essentially a combo listing the default styles. -
showFontSelector
public static void showFontSelector(java.lang.String label)Add font selector block (not a window), essentially a combo listing the loaded fonts. -
showUserGuide
public static void showUserGuide()Add basic help/info block (not a window): how to manipulate ImGui as a end-user (mouse/keyboard controls). -
getVersion
public static java.lang.String getVersion()Get the compiled version string e.g. "1.23" (essentially the compiled value for IMGUI_VERSION) -
styleColorsDark
public static void styleColorsDark()New, recommended style (default) -
styleColorsClassic
public static void styleColorsClassic()Classic imgui style -
styleColorsLight
public static void styleColorsLight()Best used with borders and a custom, thicker font -
begin
public static boolean begin(java.lang.String title) -
begin
-
begin
public static boolean begin(java.lang.String title, int imGuiWindowFlags) -
begin
-
end
public static void end() -
beginChild
public static boolean beginChild(java.lang.String strId) -
beginChild
public static boolean beginChild(java.lang.String strId, float width, float height) -
beginChild
public static boolean beginChild(java.lang.String strId, float width, float height, boolean border) -
beginChild
public static boolean beginChild(java.lang.String strId, float width, float height, boolean border, int imGuiWindowFlags) -
beginChild
public static boolean beginChild(int imGuiID) -
beginChild
public static boolean beginChild(int imGuiID, float width, float height, boolean border) -
beginChild
public static boolean beginChild(int imGuiID, float width, float height, boolean border, int imGuiWindowFlags) -
endChild
public static void endChild() -
isWindowAppearing
public static boolean isWindowAppearing() -
isWindowCollapsed
public static boolean isWindowCollapsed() -
isWindowFocused
public static boolean isWindowFocused()Is current window focused? or its root/child, depending on flags. see flags for options. -
isWindowFocused
public static boolean isWindowFocused(int imGuiFocusedFlags)Is current window focused? or its root/child, depending on flags. see flags for options. -
isWindowHovered
public static boolean isWindowHovered()Is current window hovered (and typically: not blocked by a popup/modal)? see flags for options. NB: If you are trying to check whether your mouse should be dispatched to imgui or to your app, you should use the 'io.WantCaptureMouse' boolean for that! Please read the FAQ! -
isWindowHovered
public static boolean isWindowHovered(int imGuiHoveredFlags)Is current window hovered (and typically: not blocked by a popup/modal)? see flags for options. NB: If you are trying to check whether your mouse should be dispatched to imgui or to your app, you should use the 'io.WantCaptureMouse' boolean for that! Please read the FAQ! -
getWindowDrawList
Get draw list associated to the current window, to append your own drawing primitives -
getWindowPos
Get current window position in screen space (useful if you want to do your own drawing via the DrawList API) -
getWindowSize
Get current window size -
getWindowWidth
public static float getWindowWidth()Get current window width (shortcut for GetWindowSize().x) -
getWindowHeight
public static float getWindowHeight()Get current window height (shortcut for GetWindowSize().y) -
setNextWindowPos
public static void setNextWindowPos(float x, float y)Set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. -
setNextWindowPos
public static void setNextWindowPos(float x, float y, int imGuiCond)Set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. -
setNextWindowPos
public static void setNextWindowPos(float x, float y, int imGuiCond, float pivotX, float pivotY)Set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc. -
setNextWindowSize
public static void setNextWindowSize(float width, float height)Set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin() -
setNextWindowSize
public static void setNextWindowSize(float width, float height, int imGuiCond)Set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin() -
setNextWindowSizeConstraints
public static void setNextWindowSizeConstraints(float minWidth, float minHeight, float maxWidth, float maxHeight)Set next window size limits. use -1,-1 on either X/Y axis to preserve the current size. Sizes will be rounded down. -
setNextWindowContentSize
public static void setNextWindowContentSize(float width, float height)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() -
setNextWindowCollapsed
public static void setNextWindowCollapsed(boolean collapsed)Set next window collapsed state. call before Begin() -
setNextWindowCollapsed
public static void setNextWindowCollapsed(boolean collapsed, int imGuiCond)Set next window collapsed state. call before Begin() -
setNextWindowFocus
public static void setNextWindowFocus()Set next window to be focused / top-most. call before Begin() -
setNextWindowBgAlpha
public static void setNextWindowBgAlpha(float alpha)Set next window background color alpha. helper to easily modify ImGuiCol_WindowBg/ChildBg/PopupBg. You may also use ImGuiWindowFlags_NoBackground. -
setWindowPos
public static void setWindowPos(float x, float y)(not recommended) set current window position - call within Begin()/End(). Prefer using SetNextWindowPos(), as this may incur tearing and side-effects. -
setWindowPos
public static void setWindowPos(float x, float y, int imGuiCond)(not recommended) set current window position - call within Begin()/End(). Prefer using SetNextWindowPos(), as this may incur tearing and side-effects. -
setWindowSize
public static void setWindowSize(float width, float height)(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. -
setWindowSize
public static void setWindowSize(float width, float height, int imGuiCond)(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. -
setWindowCollapsed
public static void setWindowCollapsed(boolean collapsed)(not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed(). -
setWindowCollapsed
public static void setWindowCollapsed(boolean collapsed, int imGuiCond)(not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed(). -
setWindowFocus
public static void setWindowFocus()(not recommended) set current window to be focused / top-most. prefer using SetNextWindowFocus(). -
setWindowFontScale
public void setWindowFontScale(float scale)Set font scale. Adjust IO.FontGlobalScale if you want to scale all windows. This is an old API! For correct scaling, prefer to reload font + rebuild ImFontAtlas + call style.ScaleAllSizes(). -
setWindowPos
public static void setWindowPos(java.lang.String name, float x, float y)Set named window position. -
setWindowPos
public static void setWindowPos(java.lang.String name, float x, float y, int imGuiCond)Set named window position. -
setWindowSize
public static void setWindowSize(java.lang.String name, float x, float y)Set named window size. set axis to 0.0f to force an auto-fit on this axis. -
setWindowSize
public static void setWindowSize(java.lang.String name, float x, float y, int imGuiCond)Set named window size. set axis to 0.0f to force an auto-fit on this axis. -
setWindowCollapsed
public static void setWindowCollapsed(java.lang.String name, boolean collapsed)Set named window collapsed state -
setWindowCollapsed
public static void setWindowCollapsed(java.lang.String name, boolean collapsed, int imGuiCond)Set named window collapsed state -
setWindowFocus
public static void setWindowFocus(java.lang.String name)Set named window to be focused / top-most. Use NULL to remove focus. -
getContentRegionMax
Current content boundaries (typically window boundaries including scrolling, or current column boundaries), in windows coordinates -
getContentRegionAvail
== GetContentRegionMax() - GetCursorPos() -
getContentRegionAvailWidth
public static float getContentRegionAvailWidth()Content boundaries min (roughly (0,0)-Scroll), in window coordinates -
getWindowContentRegionMin
Content boundaries max (roughly (0,0)+Size-Scroll) where Size can be override with SetNextWindowContentSize(), in window coordinates -
getWindowContentRegionMax
-
getScrollX
public static float getScrollX()Get scrolling amount [0..GetScrollMaxX()] -
getScrollY
public static float getScrollY()Get scrolling amount [0..GetScrollMaxY()] -
getScrollMaxX
public static float getScrollMaxX()Get maximum scrolling amount ~~ ContentSize.X - WindowSize.X -
getScrollMaxY
public static float getScrollMaxY()Get maximum scrolling amount ~~ ContentSize.Y - WindowSize.Y -
setScrollX
public static void setScrollX(float scrollX)Set scrolling amount [0..GetScrollMaxX()] -
setScrollY
public static void setScrollY(float scrollY)Set scrolling amount [0..GetScrollMaxY()] -
setScrollHereX
public static void setScrollHereX()Adjust 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. -
setScrollHereX
public static void setScrollHereX(float centerXRatio)Adjust 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. -
setScrollHereY
public static void setScrollHereY()Adjust 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. -
setScrollHereY
public static void setScrollHereY(float centerYRatio)Adjust 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. -
setScrollFromPosX
public static void setScrollFromPosX(float localX)Adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. -
setScrollFromPosX
public static void setScrollFromPosX(float localX, float centerXRatio)Adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. -
setScrollFromPosY
public static void setScrollFromPosY(float localY)Adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. -
setScrollFromPosY
public static void setScrollFromPosY(float localY, float centerYRatio)Adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. -
popFont
public static void popFont() -
pushStyleColor
public static void pushStyleColor(int imGuiCol, int col) -
pushStyleColor
public static void pushStyleColor(int imGuiCol, float r, float g, float b, float a) -
popStyleColor
public static void popStyleColor() -
popStyleColor
public static void popStyleColor(int count) -
pushStyleVar
public static void pushStyleVar(int imGuiStyleVar, float val) -
pushStyleVar
public static void pushStyleVar(int imGuiStyleVar, float valX, float valY) -
popStyleVar
public static void popStyleVar() -
popStyleVar
public static void popStyleVar(int count) -
getStyleColorVec4
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. -
getFontSize
public static int getFontSize()Get current font size (= height in pixels) of current font with current scale applied -
getFontTexUvWhitePixel
Get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API -
getColorU32
public static int getColorU32(int imGuiCol)Retrieve given style color with style alpha applied and optional extra alpha multiplier -
getColorU32
public static int getColorU32(int imGuiCol, float alphaMul)Retrieve given style color with style alpha applied and optional extra alpha multiplier -
getColorU32
public static int getColorU32(float r, float g, float b, float a)Retrieve given color with style alpha applied -
getColorU32i
public static int getColorU32i(int col)Retrieve given color with style alpha applied BINDING NOTICE: SincegetColorU32(int)
has the same signature, this specific method has an 'i' suffix. -
pushItemWidth
public static void pushItemWidth(float itemWidth)Set 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 -1.0f always align width to the right side). 0.0f = default to ~2/3 of windows width, -
popItemWidth
public static void popItemWidth() -
setNextItemWidth
public static void setNextItemWidth(float itemWidth)Set 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 -1.0f always align width to the right side) -
calcItemWidth
public static float calcItemWidth()Width of item given pushed settings and current cursor position. NOT necessarily the width of last item unlike most 'Item' functions. -
pushTextWrapPos
public static void pushTextWrapPos()Word-wrapping for Text*() commands.< 0.0f
: no wrapping; 0.0f: wrap to end of window (or column);> 0.0f
: wrap at 'wrap_posX' position in window local space -
pushTextWrapPos
public static void pushTextWrapPos(float wrapLocalPosX)Word-wrapping for Text*() commands.< 0.0f
: no wrapping; 0.0f: wrap to end of window (or column);> 0.0f
: wrap at 'wrap_posX' position in window local space -
popTextWrapPos
public static void popTextWrapPos() -
pushAllowKeyboardFocus
public static void pushAllowKeyboardFocus(boolean allowKeyboardFocus)Allow focusing using TAB/Shift-TAB, enabled by default but you can disable it for certain widgets -
popAllowKeyboardFocus
public static void popAllowKeyboardFocus() -
pushButtonRepeat
public static void pushButtonRepeat(boolean repeat)In 'repeat' mode, Button*() functions return repeated true in a typematic manner (using io.KeyRepeatDelay/io.KeyRepeatRate setting). Note that you can call IsItemActive() after any Button() to tell if the button is held in the current frame. -
popButtonRepeat
public static void popButtonRepeat() -
separator
public static void separator()Separator, generally horizontal. inside a menu bar or in horizontal layout mode, this becomes a vertical separator. -
sameLine
public static void sameLine()Call between widgets or groups to layout them horizontally. X position given in window coordinates. -
sameLine
public static void sameLine(float offsetFromStartX)Call between widgets or groups to layout them horizontally. X position given in window coordinates. -
sameLine
public static void sameLine(float offsetFromStartX, float spacing)Call between widgets or groups to layout them horizontally. X position given in window coordinates. -
newLine
public static void newLine()Undo a SameLine() or force a new line when in an horizontal-layout context. -
spacing
public static void spacing()Add vertical spacing. -
dummy
public static void dummy(float width, float height)Add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into. -
indent
public static void indent()Move content position toward the right, by style.IndentSpacing or indent_w if != 0 -
indent
public static void indent(float indentW)Move content position toward the right, by style.IndentSpacing or indent_w if != 0 -
unindent
public static void unindent()Move content position back to the left, by style.IndentSpacing or indent_w if != 0 -
unindent
public static void unindent(float indentW)Move content position back to the left, by style.IndentSpacing or indent_w if != 0 -
beginGroup
public static void beginGroup()Lock horizontal starting position -
endGroup
public static void endGroup()Unlock 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.) -
getCursorPos
Cursor position in window coordinates (relative to window position) -
getCursorPosX
public static float getCursorPosX() -
getCursorPosY
public static float getCursorPosY() -
setCursorPos
public static void setCursorPos(float x, float y) -
setCursorPosX
public static void setCursorPosX(float x) -
setCursorPosY
public static void setCursorPosY(float y) -
getCursorStartPos
Initial cursor position in window coordinates -
getCursorScreenPos
Cursor position in absolute screen coordinates [0..io.DisplaySize] (useful to work with ImDrawList API) -
setCursorScreenPos
public static void setCursorScreenPos(float x, float y)Cursor position in absolute screen coordinates [0..io.DisplaySize] -
alignTextToFramePadding
public static void alignTextToFramePadding()Vertically 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
public static float getTextLineHeight()~ FontSize -
getTextLineHeightWithSpacing
public static float getTextLineHeightWithSpacing()~ FontSize + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of text) -
getFrameHeight
public static float getFrameHeight()~ FontSize + style.FramePadding.y * 2 -
getFrameHeightWithSpacing
public static float getFrameHeightWithSpacing()~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets) -
pushID
public static void pushID(java.lang.String strId)Push string into the ID stack (will hash string). -
pushID
public static void pushID(java.lang.String strIdBegin, java.lang.String strIdEnd)Push string into the ID stack (will hash string). -
pushID
public static void pushID(long ptrId)Push pointer into the ID stack (will hash pointer). -
pushID
public static void pushID(int intId)Push integer into the ID stack (will hash integer). -
popID
public static void popID()Pop from the ID stack. -
getID
public static long getID(java.lang.String strId)Calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself -
getID
public static long getID(java.lang.String strIdBegin, java.lang.String strIdEnd) -
getID
public static long getID(long ptrId) -
textUnformatted
public static void textUnformatted(java.lang.String text)Raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'textEnd' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. -
textUnformatted
public static void textUnformatted(java.lang.String text, java.lang.String textEnd)Raw text without formatting. Roughly equivalent to Text("%s", text) but: A) doesn't require null terminated string if 'textEnd' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text. -
text
public static void text(java.lang.String text)Formatted text BINDING NOTICE: Since all text formatting could be done on Java side, this call is equal totextUnformatted(String)
. -
textColored
public static void textColored(float r, float g, float b, float a, java.lang.String text)Shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor(); -
textDisabled
public static void textDisabled(java.lang.String text)Shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor(); -
textWrapped
public static void textWrapped(java.lang.String text)Shortcut 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(). -
labelText
public static void labelText(java.lang.String label, java.lang.String text)Display text+label aligned the same way as value+label widgets -
bulletText
public static void bulletText(java.lang.String text)Shortcut for Bullet()+Text() -
button
public static boolean button(java.lang.String label)Button -
button
public static boolean button(java.lang.String label, float width, float height)Button -
smallButton
public static boolean smallButton(java.lang.String label)Button with FramePadding=(0,0) to easily embed within text -
invisibleButton
public static boolean invisibleButton(java.lang.String strId, float width, float height)Button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.) -
arrowButton
public static boolean arrowButton(java.lang.String strId, int dir)Square button with an arrow shape -
image
public static void image(int textureID, float sizeX, float sizeY) -
image
public static void image(int textureID, float sizeX, float sizeY, float uv0X, float uv0Y, float uv1X, float uv1Y) -
image
public static void image(int textureID, float sizeX, float sizeY, float uv0X, float uv0Y, float uv1X, float uv1Y, float tintColorR, float tintColorG, float tintColorB, float tintColorA, float borderR, float borderG, float borderB, float borderA) -
imageButton
public static boolean imageButton(int textureID, float sizeX, float sizeY)<0
framePadding uses default frame padding settings. 0 for no padding -
imageButton
public static boolean imageButton(int textureID, float sizeX, float sizeY, float uv0X, float uv0Y, float uv1X, float uv1Y, int framePadding)<0
framePadding uses default frame padding settings. 0 for no padding -
imageButton
public static boolean imageButton(int textureID, float sizeX, float sizeY, float uv0X, float uv0Y, float uv1X, float uv1Y, int framePadding, float bgColorR, float bgColorG, float bgColorB, float bgColorA, float tintR, float tintG, float tintB, float tintA)<0
framePadding uses default frame padding settings. 0 for no padding -
checkbox
-
checkboxFlags
-
radioButton
public static boolean radioButton(java.lang.String label, boolean active)Use with e.g. if (RadioButton("one", my_value==1)) { my_value = 1; } -
radioButton
Shortcut to handle the above pattern when value is an integer -
progressBar
public static void progressBar(float fraction) -
progressBar
public static void progressBar(float fraction, float sizeArgX, float sizeArgY) -
progressBar
public static void progressBar(float fraction, float sizeArgX, float sizeArgY, java.lang.String overlay) -
bullet
public static void bullet()Draw a small circle and keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses -
beginCombo
public static boolean beginCombo(java.lang.String label, java.lang.String previewValue) -
beginCombo
public static boolean beginCombo(java.lang.String label, java.lang.String previewValue, int imGuiComboFlags) -
endCombo
public static void endCombo()Only call EndCombo() if BeginCombo() returns true! -
combo
public static boolean combo(java.lang.String label, ImInt currentItem, java.lang.String[] items, int itemsCount) -
combo
public static boolean combo(java.lang.String label, ImInt currentItem, java.lang.String[] items, int itemsCount, int popupMaxHeightInItems) -
combo
public static boolean combo(java.lang.String label, ImInt currentItem, java.lang.String itemsSeparatedByZeros)Separate items with \0 within a string, end item-list with \0\0. e.g. "One\0Two\0Three\0" -
combo
public static boolean combo(java.lang.String label, ImInt currentItem, java.lang.String itemsSeparatedByZeros, int popupMaxHeightInItems) -
dragFloat
public static boolean dragFloat(java.lang.String label, float[] v) -
dragFloat
public static boolean dragFloat(java.lang.String label, float[] v, float vSpeed) -
dragFloat
public static boolean dragFloat(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax)IfvMin >= vMax
we have no bound -
dragFloat
public static boolean dragFloat(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format)IfvMin >= vMax
we have no bound -
dragFloat
public static boolean dragFloat(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format, float power)IfvMin >= vMax
we have no bound -
dragFloat2
public static boolean dragFloat2(java.lang.String label, float[] v) -
dragFloat2
public static boolean dragFloat2(java.lang.String label, float[] v, float vSpeed) -
dragFloat2
public static boolean dragFloat2(java.lang.String label, float[] v, float vSpeed, float vMin) -
dragFloat2
public static boolean dragFloat2(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax) -
dragFloat2
public static boolean dragFloat2(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format) -
dragFloat2
public static boolean dragFloat2(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format, float power) -
dragFloat3
public static boolean dragFloat3(java.lang.String label, float[] v) -
dragFloat3
public static boolean dragFloat3(java.lang.String label, float[] v, float vSpeed) -
dragFloat3
public static boolean dragFloat3(java.lang.String label, float[] v, float vSpeed, float vMin) -
dragFloat3
public static boolean dragFloat3(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax) -
dragFloat3
public static boolean dragFloat3(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format) -
dragFloat3
public static boolean dragFloat3(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format, float power) -
dragFloat4
public static boolean dragFloat4(java.lang.String label, float[] v) -
dragFloat4
public static boolean dragFloat4(java.lang.String label, float[] v, float vSpeed) -
dragFloat4
public static boolean dragFloat4(java.lang.String label, float[] v, float vSpeed, float vMin) -
dragFloat4
public static boolean dragFloat4(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax) -
dragFloat4
public static boolean dragFloat4(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format) -
dragFloat4
public static boolean dragFloat4(java.lang.String label, float[] v, float vSpeed, float vMin, float vMax, java.lang.String format, float power) -
dragFloatRange2
public static boolean dragFloatRange2(java.lang.String label, float[] vCurrentMin, float[] vCurrentMax) -
dragFloatRange2
public static boolean dragFloatRange2(java.lang.String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed) -
dragFloatRange2
public static boolean dragFloatRange2(java.lang.String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin) -
dragFloatRange2
public static boolean dragFloatRange2(java.lang.String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin, float vMax) -
dragFloatRange2
public static boolean dragFloatRange2(java.lang.String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin, float vMax, java.lang.String format) -
dragFloatRange2
public static boolean dragFloatRange2(java.lang.String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin, float vMax, java.lang.String format, java.lang.String formatMax) -
dragFloatRange2
public static boolean dragFloatRange2(java.lang.String label, float[] vCurrentMin, float[] vCurrentMax, float vSpeed, float vMin, float vMax, java.lang.String format, java.lang.String formatMax, float power) -
dragInt
public static boolean dragInt(java.lang.String label, int[] v) -
dragInt
public static boolean dragInt(java.lang.String label, int[] v, float vSpeed) -
dragInt
public static boolean dragInt(java.lang.String label, int[] v, float vSpeed, float vMin) -
dragInt
public static boolean dragInt(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax)IfvMin >= vMax
we have no bound -
dragInt
public static boolean dragInt(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax, java.lang.String format)IfvMin >= vMax
we have no bound -
dragInt2
public static boolean dragInt2(java.lang.String label, int[] v) -
dragInt2
public static boolean dragInt2(java.lang.String label, int[] v, float vSpeed) -
dragInt2
public static boolean dragInt2(java.lang.String label, int[] v, float vSpeed, float vMin) -
dragInt2
public static boolean dragInt2(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax) -
dragInt2
public static boolean dragInt2(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax, java.lang.String format) -
dragInt3
public static boolean dragInt3(java.lang.String label, int[] v) -
dragInt3
public static boolean dragInt3(java.lang.String label, int[] v, float vSpeed) -
dragInt3
public static boolean dragInt3(java.lang.String label, int[] v, float vSpeed, float vMin) -
dragInt3
public static boolean dragInt3(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax) -
dragInt3
public static boolean dragInt3(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax, java.lang.String format) -
dragInt4
public static boolean dragInt4(java.lang.String label, int[] v) -
dragInt4
public static boolean dragInt4(java.lang.String label, int[] v, float vSpeed) -
dragInt4
public static boolean dragInt4(java.lang.String label, int[] v, float vSpeed, float vMin) -
dragInt4
public static boolean dragInt4(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax) -
dragInt4
public static boolean dragInt4(java.lang.String label, int[] v, float vSpeed, float vMin, float vMax, java.lang.String format) -
dragIntRange2
public static boolean dragIntRange2(java.lang.String label, int[] vCurrentMin, int[] vCurrentMax) -
dragIntRange2
public static boolean dragIntRange2(java.lang.String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed) -
dragIntRange2
public static boolean dragIntRange2(java.lang.String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed, float vMin) -
dragIntRange2
public static boolean dragIntRange2(java.lang.String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed, float vMin, float vMax) -
dragIntRange2
public static boolean dragIntRange2(java.lang.String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed, float vMin, float vMax, java.lang.String format) -
dragIntRange2
public static boolean dragIntRange2(java.lang.String label, int[] vCurrentMin, int[] vCurrentMax, float vSpeed, float vMin, float vMax, java.lang.String format, java.lang.String formatMax) -
dragScalar
-
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImInt pData, float vSpeed, int pMin) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImInt pData, float vSpeed, int pMin, int pMax) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImInt pData, float vSpeed, int pMin, int pMax, java.lang.String format) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImInt pData, float vSpeed, int pMin, int pMax, java.lang.String format, float power) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImFloat pData, float vSpeed) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImFloat pData, float vSpeed, float pMin) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImFloat pData, float vSpeed, float pMin, float pMax) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImFloat pData, float vSpeed, float pMin, float pMax, java.lang.String format) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImFloat pData, float vSpeed, float pMin, float pMax, java.lang.String format, float power) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImDouble pData, float vSpeed) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImDouble pData, float vSpeed, double pMin) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImDouble pData, float vSpeed, double pMin, double pMax) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImDouble pData, float vSpeed, double pMin, double pMax, java.lang.String format) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImDouble pData, float vSpeed, double pMin, double pMax, java.lang.String format, float power) -
dragScalar
-
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImLong pData, float vSpeed, long pMin) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImLong pData, float vSpeed, long pMin, long pMax) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImLong pData, float vSpeed, long pMin, long pMax, java.lang.String format) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImLong pData, float vSpeed, long pMin, long pMax, java.lang.String format, float power) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImShort pData, float vSpeed) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImShort pData, float vSpeed, short pMin) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImShort pData, float vSpeed, short pMin, short pMax) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImShort pData, float vSpeed, short pMin, short pMax, java.lang.String format) -
dragScalar
public static boolean dragScalar(java.lang.String label, int dataType, ImShort pData, float vSpeed, short pMin, short pMax, java.lang.String format, float power) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImInt pData, int components, float vSpeed) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImInt pData, int components, float vSpeed, int pMin) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImInt pData, int components, float vSpeed, int pMin, int pMax) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImInt pData, int components, float vSpeed, int pMin, int pMax, java.lang.String format) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImInt pData, int components, float vSpeed, int pMin, int pMax, java.lang.String format, float power) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float vSpeed) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float vSpeed, float pMin) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float vSpeed, float pMin, float pMax) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float vSpeed, float pMin, float pMax, java.lang.String format) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float vSpeed, float pMin, float pMax, java.lang.String format, float power) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImDouble pData, int components, float vSpeed) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImDouble pData, int components, float vSpeed, double pMin) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImDouble pData, int components, float vSpeed, double pMin, double pMax) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImDouble pData, int components, float vSpeed, double pMin, double pMax, java.lang.String format) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImDouble pData, int components, float vSpeed, double pMin, double pMax, java.lang.String format, float power) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImLong pData, int components, float vSpeed) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImLong pData, int components, float vSpeed, long pMin) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImLong pData, int components, float vSpeed, long pMin, long pMax) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImLong pData, int components, float vSpeed, long pMin, long pMax, java.lang.String format) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImLong pData, int components, float vSpeed, long pMin, long pMax, java.lang.String format, float power) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImShort pData, int components, float vSpeed) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImShort pData, int components, float vSpeed, short pMin) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImShort pData, int components, float vSpeed, short pMin, short pMax) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImShort pData, int components, float vSpeed, short pMin, short pMax, java.lang.String format) -
dragScalarN
public static boolean dragScalarN(java.lang.String label, int dataType, ImShort pData, int components, float vSpeed, short pMin, short pMax, java.lang.String format, float power) -
sliderFloat
public static boolean sliderFloat(java.lang.String label, float[] v, float vMin, float vMax)Adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display. Use power!=1.0 for power curve sliders -
sliderFloat
public static boolean sliderFloat(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format) -
sliderFloat
public static boolean sliderFloat(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format, float power) -
sliderFloat2
public static boolean sliderFloat2(java.lang.String label, float[] v, float vMin, float vMax) -
sliderFloat2
public static boolean sliderFloat2(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format) -
sliderFloat2
public static boolean sliderFloat2(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format, float power) -
sliderFloat3
public static boolean sliderFloat3(java.lang.String label, float[] v, float vMin, float vMax) -
sliderFloat3
public static boolean sliderFloat3(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format) -
sliderFloat3
public static boolean sliderFloat3(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format, float power) -
sliderFloat4
public static boolean sliderFloat4(java.lang.String label, float[] v, float vMin, float vMax) -
sliderFloat4
public static boolean sliderFloat4(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format) -
sliderFloat4
public static boolean sliderFloat4(java.lang.String label, float[] v, float vMin, float vMax, java.lang.String format, float power) -
sliderAngle
public static boolean sliderAngle(java.lang.String label, float[] vRad) -
sliderAngle
public static boolean sliderAngle(java.lang.String label, float[] vRad, float vDegreesMin) -
sliderAngle
public static boolean sliderAngle(java.lang.String label, float[] vRad, float vDegreesMin, float vDegreesMax) -
sliderAngle
public static boolean sliderAngle(java.lang.String label, float[] vRad, float vDegreesMin, float vDegreesMax, java.lang.String format) -
sliderInt
public static boolean sliderInt(java.lang.String label, int[] v, int vMin, int vMax) -
sliderInt
public static boolean sliderInt(java.lang.String label, int[] v, int vMin, int vMax, java.lang.String format) -
sliderInt2
public static boolean sliderInt2(java.lang.String label, int[] v, int vMin, int vMax) -
sliderInt2
public static boolean sliderInt2(java.lang.String label, int[] v, int vMin, int vMax, java.lang.String format) -
sliderInt3
public static boolean sliderInt3(java.lang.String label, int[] v, int vMin, int vMax) -
sliderInt3
public static boolean sliderInt3(java.lang.String label, int[] v, int vMin, int vMax, java.lang.String format) -
sliderInt4
public static boolean sliderInt4(java.lang.String label, int[] v, int vMin, int vMax) -
sliderInt4
public static boolean sliderInt4(java.lang.String label, int[] v, int vMin, int vMax, java.lang.String format) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImInt v, int vMin, int vMax) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImInt v, int vMin, int vMax, java.lang.String format) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImInt v, int vMin, int vMax, java.lang.String format, float power) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImFloat v, float vMin, float vMax) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImFloat v, float vMin, float vMax, java.lang.String format) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImFloat v, float vMin, float vMax, java.lang.String format, float power) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImLong v, long vMin, long vMax) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImLong v, long vMin, long vMax, java.lang.String format) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImLong v, long vMin, long vMax, java.lang.String format, float power) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImDouble v, double vMin, double vMax) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImDouble v, double vMin, double vMax, java.lang.String format) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImDouble v, double vMin, double vMax, java.lang.String format, float power) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImShort v, short vMin, short vMax) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImShort v, short vMin, short vMax, java.lang.String format) -
sliderScalar
public static boolean sliderScalar(java.lang.String label, int dataType, ImShort v, short vMin, short vMax, java.lang.String format, float power) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImInt v, int vMin, int vMax) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImInt v, int vMin, int vMax, java.lang.String format) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImInt v, int vMin, int vMax, java.lang.String format, float power) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImFloat v, float vMin, float vMax) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImFloat v, float vMin, float vMax, java.lang.String format) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImFloat v, float vMin, float vMax, java.lang.String format, float power) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImLong v, long vMin, long vMax) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImLong v, long vMin, long vMax, java.lang.String format) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImLong v, long vMin, long vMax, java.lang.String format, float power) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImDouble v, double vMin, double vMax) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImDouble v, double vMin, double vMax, java.lang.String format) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImDouble v, double vMin, double vMax, java.lang.String format, float power) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImShort v, short vMin, short vMax) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImShort v, short vMin, short vMax, java.lang.String format) -
sliderScalarN
public static boolean sliderScalarN(java.lang.String label, int dataType, int components, ImShort v, short vMin, short vMax, java.lang.String format, float power) -
vSliderFloat
public static boolean vSliderFloat(java.lang.String label, float sizeX, float sizeY, float[] v, float vMin, float vMax) -
vSliderFloat
public static boolean vSliderFloat(java.lang.String label, float sizeX, float sizeY, float[] v, float vMin, float vMax, java.lang.String format) -
vSliderFloat
public static boolean vSliderFloat(java.lang.String label, float sizeX, float sizeY, float[] v, float vMin, float vMax, java.lang.String format, float power) -
vSliderInt
public static boolean vSliderInt(java.lang.String label, float sizeX, float sizeY, int[] v, int vMin, int vMax) -
vSliderInt
public static boolean vSliderInt(java.lang.String label, float sizeX, float sizeY, int[] v, int vMin, int vMax, java.lang.String format) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImInt v, int vMin, int vMax) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImInt v, int vMin, int vMax, java.lang.String format) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImInt v, int vMin, int vMax, java.lang.String format, float power) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImFloat v, float vMin, float vMax) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImFloat v, float vMin, float vMax, java.lang.String format) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImFloat v, float vMin, float vMax, java.lang.String format, float power) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImLong v, long vMin, long vMax) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImLong v, long vMin, long vMax, java.lang.String format) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImLong v, long vMin, long vMax, java.lang.String format, float power) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImDouble v, double vMin, double vMax) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImDouble v, double vMin, double vMax, java.lang.String format) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImDouble v, double vMin, double vMax, java.lang.String format, float power) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImShort v, short vMin, short vMax) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImShort v, short vMin, short vMax, java.lang.String format) -
vSliderScalar
public static boolean vSliderScalar(java.lang.String label, float sizeX, float sizeY, int dataType, ImShort v, short vMin, short vMax, java.lang.String format, float power) -
inputText
-
inputText
-
inputTextMultiline
-
inputTextMultiline
public static boolean inputTextMultiline(java.lang.String label, ImString text, float width, float height) -
inputTextMultiline
public static boolean inputTextMultiline(java.lang.String label, ImString text, int imGuiInputTextFlags) -
inputTextMultiline
public static boolean inputTextMultiline(java.lang.String label, ImString text, float width, float height, int imGuiInputTextFlags) -
inputFloat
-
inputFloat
-
inputFloat
-
inputFloat
public static boolean inputFloat(java.lang.String label, ImFloat v, float step, float stepFast, java.lang.String format) -
inputFloat
public static boolean inputFloat(java.lang.String label, ImFloat v, float step, float stepFast, java.lang.String format, int imGuiInputTextFlags) -
inputFloat2
public static boolean inputFloat2(java.lang.String label, float[] v) -
inputFloat2
public static boolean inputFloat2(java.lang.String label, float[] v, java.lang.String format) -
inputFloat2
public static boolean inputFloat2(java.lang.String label, float[] v, java.lang.String format, int imGuiInputTextFlags) -
inputFloat3
public static boolean inputFloat3(java.lang.String label, float[] v) -
inputFloat3
public static boolean inputFloat3(java.lang.String label, float[] v, java.lang.String format) -
inputFloat3
public static boolean inputFloat3(java.lang.String label, float[] v, java.lang.String format, int imGuiInputTextFlags) -
inputFloat4
public static boolean inputFloat4(java.lang.String label, float[] v) -
inputFloat4
public static boolean inputFloat4(java.lang.String label, float[] v, java.lang.String format) -
inputFloat4
public static boolean inputFloat4(java.lang.String label, float[] v, java.lang.String format, int imGuiInputTextFlags) -
inputInt
-
inputInt
-
inputInt
-
inputInt
public static boolean inputInt(java.lang.String label, ImInt v, int step, int stepFast, int imGuiInputTextFlags) -
inputInt2
public static boolean inputInt2(java.lang.String label, int[] v) -
inputInt2
public static boolean inputInt2(java.lang.String label, int[] v, int imGuiInputTextFlags) -
inputInt3
public static boolean inputInt3(java.lang.String label, int[] v) -
inputInt3
public static boolean inputInt3(java.lang.String label, int[] v, int imGuiInputTextFlags) -
inputInt4
public static boolean inputInt4(java.lang.String label, int[] v) -
inputInt4
public static boolean inputInt4(java.lang.String label, int[] v, int imGuiInputTextFlags) -
inputDouble
-
inputDouble
-
inputDouble
public static boolean inputDouble(java.lang.String label, ImDouble v, double step, double stepFast) -
inputDouble
public static boolean inputDouble(java.lang.String label, ImDouble v, double step, double stepFast, java.lang.String format) -
inputDouble
public static boolean inputDouble(java.lang.String label, ImDouble v, double step, double stepFast, java.lang.String format, int imGuiInputTextFlags) -
inputScalar
-
inputScalar
-
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImInt pData, int pStep, int pStepFast) -
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImInt pData, int pStep, int pStepFast, java.lang.String format) -
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImInt pData, int pStep, int pStepFast, java.lang.String format, int imGuiInputTextFlags) -
inputScalar
-
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImFloat pData, float pStep) -
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImFloat pData, float pStep, float pStepFast) -
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImFloat pData, float pStep, float pStepFast, java.lang.String format) -
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImFloat pData, float pStep, float pStepFast, java.lang.String format, int imGuiInputTextFlags) -
inputScalar
-
inputScalar
-
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImLong pData, long pStep, long pStepFast) -
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImLong pData, long pStep, long pStepFast, java.lang.String format) -
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImLong pData, long pStep, long pStepFast, java.lang.String format, int imGuiInputTextFlags) -
inputScalar
-
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImDouble pData, double pStep) -
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImDouble pData, double pStep, double pStepFast) -
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImDouble pData, double pStep, double pStepFast, java.lang.String format) -
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImDouble pData, double pStep, double pStepFast, java.lang.String format, int imGuiInputTextFlags) -
inputScalar
-
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImShort pData, short pStep) -
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImShort pData, short pStep, short pStepFast) -
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImShort pData, short pStep, short pStepFast, java.lang.String format) -
inputScalar
public static boolean inputScalar(java.lang.String label, int dataType, ImShort pData, short pStep, short pStepFast, java.lang.String format, int imGuiInputTextFlags) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImInt pData, int components) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImInt pData, int components, int pStep) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImInt pData, int components, int pStep, int pStepFast) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImInt pData, int components, int pStep, int pStepFast, java.lang.String format) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImInt pData, int components, int pStep, int pStepFast, java.lang.String format, int imGuiInputTextFlags) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImFloat pData, int components) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float pStep) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float pStep, float pStepFast) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float pStep, float pStepFast, java.lang.String format) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImFloat pData, int components, float pStep, float pStepFast, java.lang.String format, int imGuiInputTextFlags) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImLong pData, int components) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImLong pData, int components, long pStep) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImLong pData, int components, long pStep, long pStepFast) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImLong pData, int components, long pStep, long pStepFast, java.lang.String format) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImLong pData, int components, long pStep, long pStepFast, java.lang.String format, int imGuiInputTextFlags) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImDouble pData, int components) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImDouble pData, int components, double pStep) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImDouble pData, int components, double pStep, double pStepFast) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImDouble pData, int components, double pStep, double pStepFast, java.lang.String format) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImDouble pData, int components, double pStep, double pStepFast, java.lang.String format, int imGuiInputTextFlags) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImShort pData, int components) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImShort pData, int components, short pStep) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImShort pData, int components, short pStep, short pStepFast) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImShort pData, int components, short pStep, short pStepFast, java.lang.String format) -
inputScalarN
public static boolean inputScalarN(java.lang.String label, int dataType, ImShort pData, int components, short pStep, short pStepFast, java.lang.String format, int imGuiInputTextFlags) -
colorEdit3
public static boolean colorEdit3(java.lang.String label, float[] col) -
colorEdit3
public static boolean colorEdit3(java.lang.String label, float[] col, int imGuiColorEditFlags) -
colorEdit4
public static boolean colorEdit4(java.lang.String label, float[] col) -
colorEdit4
public static boolean colorEdit4(java.lang.String label, float[] col, int imGuiColorEditFlags) -
colorPicker3
public static boolean colorPicker3(java.lang.String label, float[] col) -
colorPicker3
public static boolean colorPicker3(java.lang.String label, float[] col, int imGuiColorEditFlags) -
colorPicker4
public static boolean colorPicker4(java.lang.String label, float[] col) -
colorPicker4
public static boolean colorPicker4(java.lang.String label, float[] col, int imGuiColorEditFlags) -
colorPicker4
public static boolean colorPicker4(java.lang.String label, float[] col, int imGuiColorEditFlags, float refCol) -
colorButton
public static boolean colorButton(java.lang.String descId, float[] col)Display a colored square/button, hover for details, return true when pressed. -
colorButton
public static boolean colorButton(java.lang.String descId, float[] col, int imGuiColorEditFlags)Display a colored square/button, hover for details, return true when pressed. -
colorButton
public static boolean colorButton(java.lang.String descId, float[] col, int imGuiColorEditFlags, float width, float height)Display a colored square/button, hover for details, return true when pressed. -
setColorEditOptions
public static void setColorEditOptions(int imGuiColorEditFlags)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. -
treeNode
public static boolean treeNode(java.lang.String label) -
treeNode
public static boolean treeNode(java.lang.String strId, java.lang.String label)Helper variation to easily decorelate 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(). -
treeNode
public static boolean treeNode(long ptrId, java.lang.String label) -
treeNodeEx
public static boolean treeNodeEx(java.lang.String label) -
treeNodeEx
public static boolean treeNodeEx(java.lang.String label, int imGuiTreeNodeFlags) -
treeNodeEx
public static boolean treeNodeEx(java.lang.String strId, int imGuiTreeNodeFlags, java.lang.String label) -
treeNodeEx
public static boolean treeNodeEx(int ptrId, int imGuiTreeNodeFlags, java.lang.String label) -
treePush
public static void treePush()~ Indent()+PushId(). Already called by TreeNode() when returning true, but you can call TreePush/TreePop yourself if desired. -
treePush
public static void treePush(java.lang.String strId) -
treePush
public static void treePush(long ptrId) -
treePop
public static void treePop()~ Unindent()+PopId() -
treeAdvanceToLabelPos
public static void treeAdvanceToLabelPos() -
getTreeNodeToLabelSpacing
public static float getTreeNodeToLabelSpacing()Horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode -
collapsingHeader
public static boolean collapsingHeader(java.lang.String label)If returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). -
collapsingHeader
public static boolean collapsingHeader(java.lang.String label, int imGuiTreeNodeFlags)If returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop(). -
collapsingHeader
When 'pOpen' isn't NULL, display an additional small close button on upper right of the header -
collapsingHeader
public static boolean collapsingHeader(java.lang.String label, ImBool pOpen, int imGuiTreeNodeFlags)When 'pOpen' isn't NULL, display an additional small close button on upper right of the header -
setNextItemOpen
public static void setNextItemOpen(boolean isOpen)Set next TreeNode/CollapsingHeader open state. -
setNextItemOpen
public static void setNextItemOpen(boolean isOpen, int cond)Set next TreeNode/CollapsingHeader open state. -
selectable
public static boolean selectable(java.lang.String label) -
selectable
public static boolean selectable(java.lang.String label, boolean selected) -
selectable
public static boolean selectable(java.lang.String label, boolean selected, int imGuiSelectableFlags) -
selectable
public static boolean selectable(java.lang.String label, boolean selected, int imGuiSelectableFlags, float sizeX, float sizeY) -
selectable
-
selectable
public static boolean selectable(java.lang.String label, ImBool selected, int imGuiSelectableFlags) -
selectable
public static boolean selectable(java.lang.String label, ImBool selected, int imGuiSelectableFlags, float sizeX, float sizeY) -
listBox
public static void listBox(java.lang.String label, ImInt currentItem, java.lang.String[] items, int itemsCount) -
listBox
public static void listBox(java.lang.String label, ImInt currentItem, java.lang.String[] items, int itemsCount, int heightInItems) -
listBoxHeader
public static boolean listBoxHeader(java.lang.String label)Use if you want to reimplement ListBox() will custom data or interactions. If the function return true, you can output elements then call ListBoxFooter() afterwards. -
listBoxHeader
public static boolean listBoxHeader(java.lang.String label, float sizeX, float sizeY)Use if you want to reimplement ListBox() will custom data or interactions. If the function return true, you can output elements then call ListBoxFooter() afterwards. -
listBoxHeader
public static boolean listBoxHeader(java.lang.String label, int itemsCount) -
listBoxHeader
public static boolean listBoxHeader(java.lang.String label, int itemsCount, int heightInItems) -
listBoxFooter
public static void listBoxFooter()Terminate the scrolling region. Only call ListBoxFooter() if ListBoxHeader() returned true! -
plotLines
public static void plotLines(java.lang.String label, float[] values, int valuesCount) -
plotLines
public static void plotLines(java.lang.String label, float[] values, int valuesCount, int valuesOffset) -
plotLines
public static void plotLines(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText) -
plotLines
public static void plotLines(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin) -
plotLines
public static void plotLines(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin, float scaleMax) -
plotLines
public static void plotLines(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin, float scaleMax, float graphWidth, float graphHeight) -
plotLines
public static void plotLines(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin, float scaleMax, float graphWidth, float graphHeight, int stride) -
plotHistogram
public static void plotHistogram(java.lang.String label, float[] values, int valuesCount) -
plotHistogram
public static void plotHistogram(java.lang.String label, float[] values, int valuesCount, int valuesOffset) -
plotHistogram
public static void plotHistogram(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText) -
plotHistogram
public static void plotHistogram(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin) -
plotHistogram
public static void plotHistogram(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin, float scaleMax) -
plotHistogram
public static void plotHistogram(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin, float scaleMax, float graphWidth, float graphHeight) -
plotHistogram
public static void plotHistogram(java.lang.String label, float[] values, int valuesCount, int valuesOffset, java.lang.String overlayText, float scaleMin, float scaleMax, float graphWidth, float graphHeight, int stride) -
value
public static void value(java.lang.String prefix, boolean b) -
value
public static void value(java.lang.String prefix, int v) -
value
public static void value(java.lang.String prefix, long v) -
value
public static void value(java.lang.String prefix, float f) -
value
public static void value(java.lang.String prefix, float f, java.lang.String floatFormat) -
beginMenuBar
public static boolean beginMenuBar()Append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set on parent window). -
endMenuBar
public static void endMenuBar()Only call EndMenuBar() if BeginMenuBar() returns true! -
beginMainMenuBar
public static boolean beginMainMenuBar()Create and append to a full screen menu-bar. -
endMainMenuBar
public static void endMainMenuBar()Only call EndMainMenuBar() if BeginMainMenuBar() returns true! -
beginMenu
public static boolean beginMenu(java.lang.String label)Create a sub-menu entry. only call EndMenu() if this returns true! -
beginMenu
public static boolean beginMenu(java.lang.String label, boolean enabled)Create a sub-menu entry. only call EndMenu() if this returns true! -
endMenu
public static void endMenu()Only call EndMenu() if BeginMenu() returns true! -
menuItem
public static boolean menuItem(java.lang.String label)Return true when activated. shortcuts are displayed for convenience but not processed by ImGui at the moment -
menuItem
public static boolean menuItem(java.lang.String label, java.lang.String shortcut)Return true when activated. shortcuts are displayed for convenience but not processed by ImGui at the moment -
menuItem
public static boolean menuItem(java.lang.String label, java.lang.String shortcut, boolean selected)Return true when activated. shortcuts are displayed for convenience but not processed by ImGui at the moment -
menuItem
public static boolean menuItem(java.lang.String label, java.lang.String shortcut, boolean selected, boolean enabled)Return true when activated. shortcuts are displayed for convenience but not processed by ImGui at the moment -
menuItem
public static boolean menuItem(java.lang.String label, java.lang.String shortcut, ImBool pSelected)Return true when activated + toggle (*pSelected) if pSelected != NULL -
menuItem
public static boolean menuItem(java.lang.String label, java.lang.String shortcut, ImBool pSelected, boolean enabled)Return true when activated + toggle (*pSelected) if pSelected != NULL -
beginTooltip
public static void beginTooltip()Begin/append a tooltip window. to create full-featured tooltip (with any kind of items). -
endTooltip
public static void endTooltip() -
setTooltip
public static void setTooltip(java.lang.String text)Set a text-only tooltip, typically use with ImGui::IsItemHovered(). override any previous call to SetTooltip(). -
openPopup
public static void openPopup(java.lang.String strId)Call to mark popup as open (don't call every frame!). Popups are closed when user click outside, or if CloseCurrentPopup() is called within a BeginPopup()/EndPopup() block. By default, Selectable()/MenuItem() are calling CloseCurrentPopup(). Popup identifiers are relative to the current ID-stack (so OpenPopup and BeginPopup needs to be at the same level). -
beginPopup
public static boolean beginPopup(java.lang.String strId)Return true if the popup is open, and you can start outputting to it. only call EndPopup() if BeginPopup() returns true! -
beginPopup
public static boolean beginPopup(java.lang.String strId, int imGuiWindowFlags)Return true if the popup is open, and you can start outputting to it. only call EndPopup() if BeginPopup() returns true! -
beginPopupContextItem
public static boolean beginPopupContextItem()helper to open and begin popup when clicked on last item. if you can pass a NULL strId only if the previous item had an id. 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! -
beginPopupContextItem
public static boolean beginPopupContextItem(java.lang.String strId)helper to open and begin popup when clicked on last item. if you can pass a NULL strId only if the previous item had an id. 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! -
beginPopupContextItem
public static boolean beginPopupContextItem(java.lang.String strId, int mouseButton)helper to open and begin popup when clicked on last item. if you can pass a NULL strId only if the previous item had an id. 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! -
beginPopupContextWindow
public static boolean beginPopupContextWindow()Helper to open and begin popup when clicked on current window. -
beginPopupContextWindow
public static boolean beginPopupContextWindow(java.lang.String strId)Helper to open and begin popup when clicked on current window. -
beginPopupContextWindow
public static boolean beginPopupContextWindow(java.lang.String strId, int mouseButton)Helper to open and begin popup when clicked on current window. -
beginPopupContextWindow
public static boolean beginPopupContextWindow(java.lang.String strId, int mouseButton, boolean alsoOverItems)Helper to open and begin popup when clicked on current window. -
beginPopupContextVoid
public static boolean beginPopupContextVoid()Helper to open and begin popup when clicked in void (where there are no imgui windows). -
beginPopupContextVoid
public static boolean beginPopupContextVoid(java.lang.String strId)Helper to open and begin popup when clicked in void (where there are no imgui windows). -
beginPopupContextVoid
public static boolean beginPopupContextVoid(java.lang.String strId, int mouseButton)Helper to open and begin popup when clicked in void (where there are no imgui windows). -
beginPopupModal
public static boolean beginPopupModal(java.lang.String name)Modal dialog (regular window with title bar, block interactions behind the modal window, can't close the modal window by clicking outside) -
beginPopupModal
Modal dialog (regular window with title bar, block interactions behind the modal window, can't close the modal window by clicking outside) -
beginPopupModal
public static boolean beginPopupModal(java.lang.String name, int imGuiWindowFlags)Modal dialog (regular window with title bar, block interactions behind the modal window, can't close the modal window by clicking outside) -
beginPopupModal
Modal dialog (regular window with title bar, block interactions behind the modal window, can't close the modal window by clicking outside) -
endPopup
public static void endPopup()only call EndPopup() if BeginPopupXXX() returns true! -
openPopupOnItemClick
public static boolean openPopupOnItemClick()Helper to open popup when clicked on last item (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors). return true when just opened. -
openPopupOnItemClick
public static boolean openPopupOnItemClick(java.lang.String strId)Helper to open popup when clicked on last item (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors). return true when just opened. -
openPopupOnItemClick
public static boolean openPopupOnItemClick(java.lang.String strId, int mouseButton)Helper to open popup when clicked on last item (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors). return true when just opened. -
isPopupOpen
public static boolean isPopupOpen(java.lang.String strId)Return true if the popup is open at the current begin-ed level of the popup stack. -
closeCurrentPopup
public static void closeCurrentPopup()Close the popup we have begin-ed into. clicking on a MenuItem or Selectable automatically close the current popup. -
columns
public static void columns() -
columns
public static void columns(int count) -
columns
public static void columns(int count, java.lang.String id) -
columns
public static void columns(int count, java.lang.String id, boolean border) -
nextColumn
public static void nextColumn()Next column, defaults to current row or next row if the current row is finished -
getColumnIndex
public static int getColumnIndex()Get current column index -
getColumnWidth
public static float getColumnWidth()Get column width (in pixels). pass -1 to use current column -
getColumnWidth
public static float getColumnWidth(int columnIndex)Get column width (in pixels). pass -1 to use current column -
setColumnWidth
public static void setColumnWidth(int columnIndex, float width)Set column width (in pixels). pass -1 to use current column -
getColumnOffset
public static float getColumnOffset()Get 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 -
getColumnOffset
public static float getColumnOffset(int columnIndex)Get 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 -
setColumnOffset
public static void setColumnOffset(int columnIndex, float offsetX)Set position of column line (in pixels, from the left side of the contents region). pass -1 to use current column -
getColumnsCount
public static int getColumnsCount() -
beginTabBar
public static boolean beginTabBar(java.lang.String strId)Create and append into a TabBar -
beginTabBar
public static boolean beginTabBar(java.lang.String strId, int imGuiTabBarFlags)Create and append into a TabBar -
endTabBar
public static void endTabBar()Only call EndTabBar() if BeginTabBar() returns true! -
beginTabItem
public static boolean beginTabItem(java.lang.String label)Create a Tab. Returns true if the Tab is selected. -
beginTabItem
Create a Tab. Returns true if the Tab is selected. -
beginTabItem
public static boolean beginTabItem(java.lang.String label, int imGuiTabBarFlags)Create a Tab. Returns true if the Tab is selected. -
beginTabItem
Create a Tab. Returns true if the Tab is selected. -
endTabItem
public static void endTabItem()Only call EndTabItem() if BeginTabItem() returns true! -
setTabItemClosed
public static void setTabItemClosed(java.lang.String tabOrDockedWindowLabel)Notify 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. -
logToTTY
public static void logToTTY()Start logging to tty (stdout) -
logToTTY
public static void logToTTY(int autoOpenDepth)Start logging to tty (stdout) -
logToFile
public static void logToFile()Start logging to file -
logToFile
public static void logToFile(int autoOpenDepth)Start logging to file -
logToFile
public static void logToFile(int autoOpenDepth, java.lang.String filename)Start logging to file -
logToClipboard
public static void logToClipboard()Start logging to OS clipboard -
logToClipboard
public static void logToClipboard(int autoOpenDepth)Start logging to OS clipboard -
logFinish
public static void logFinish()Stop logging (close file, etc.) -
logButtons
public static void logButtons()Helper to display buttons for logging to tty/file/clipboard -
logText
public static void logText(java.lang.String text)Pass text data straight to log (without being displayed) -
beginDragDropSource
public static boolean beginDragDropSource()Call when the current item is active. If this return true, you can call SetDragDropPayload() + EndDragDropSource() -
beginDragDropSource
public static boolean beginDragDropSource(int imGuiDragDropFlags)Call when the current item is active. If this return true, you can call SetDragDropPayload() + EndDragDropSource() -
setDragDropPayload
public static boolean setDragDropPayload(java.lang.String type, byte[] data, int sz)Type 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. -
setDragDropPayload
public static boolean setDragDropPayload(java.lang.String type, byte[] data, int sz, int imGuiCond)Type 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. -
endDragDropSource
public static void endDragDropSource()Only call EndDragDropSource() if BeginDragDropSource() returns true! -
beginDragDropTarget
public static boolean beginDragDropTarget()Call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget() -
acceptDragDropPayload
public static byte[] acceptDragDropPayload(java.lang.String type)Accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. -
acceptDragDropPayload
public static byte[] acceptDragDropPayload(java.lang.String type, int imGuiDragDropFlags)Accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released. -
endDragDropTarget
public static void endDragDropTarget()Only call EndDragDropTarget() if BeginDragDropTarget() returns true! -
getDragDropPayload
public static byte[] getDragDropPayload()Peek directly into the current payload from anywhere. May return NULL. use ImGuiPayload::IsDataType() to test for the payload type. TODO implement ImGuiPayload class -
pushClipRect
public static void pushClipRect(float clipRectMinX, float clipRectMinY, float clipRectMaxX, float clipRectMaxY, boolean intersectWithCurrentClipRect) -
popClipRect
public static void popClipRect() -
setItemDefaultFocus
public static void setItemDefaultFocus()Make last item the default focused item of a window. -
setKeyboardFocusHere
public static void setKeyboardFocusHere()Focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. -
setKeyboardFocusHere
public static void setKeyboardFocusHere(int offset)Focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. -
isItemHovered
public static boolean isItemHovered()Is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. -
isItemHovered
public static boolean isItemHovered(int imGuiHoveredFlags)Is the last item hovered? (and usable, aka not blocked by a popup, etc.). See ImGuiHoveredFlags for more options. -
isItemActive
public static boolean isItemActive()Is 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) -
isItemFocused
public static boolean isItemFocused()Is the last item focused for keyboard/gamepad navigation? -
isItemClicked
public static boolean isItemClicked()Is the last item clicked? (e.g. button/node just clicked on) ==IsMouseClicked(mouseButton) && IsItemHovered()
-
isItemClicked
public static boolean isItemClicked(int mouseButton)Is the last item clicked? (e.g. button/node just clicked on) ==IsMouseClicked(mouseButton) && IsItemHovered()
-
isItemVisible
public static boolean isItemVisible()Is the last item visible? (items may be out of sight because of clipping/scrolling) -
isItemEdited
public static boolean isItemEdited()Did 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. -
isItemActivated
public static boolean isItemActivated()Was the last item just made active (item was previously inactive). -
isItemDeactivated
public static boolean isItemDeactivated()Was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that requires continuous editing. -
isItemDeactivatedAfterEdit
public static boolean isItemDeactivatedAfterEdit()Was 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 requires 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). -
isItemToggledOpen
public static boolean isItemToggledOpen()Was the last item open state toggled? set by TreeNode(). -
isAnyItemHovered
public static boolean isAnyItemHovered()Is any item hovered? -
isAnyItemActive
public static boolean isAnyItemActive()Is any item active? -
isAnyItemFocused
public static boolean isAnyItemFocused()Is any item focused? -
getItemRectMin
Get upper-left bounding rectangle of the last item (screen space) -
getItemRectMax
Get lower-right bounding rectangle of the last item (screen space) -
getItemRectSize
Get size of last item -
setItemAllowOverlap
public static void setItemAllowOverlap()Allow last item to be overlapped by a subsequent item. sometimes useful with invisible buttons, selectables, etc. to catch unused area. -
isRectVisible
public static boolean isRectVisible(float width, float height)Test if rectangle (of given size, starting from cursor position) is visible / not clipped. -
isRectVisible
public static boolean isRectVisible(float minX, float minY, float maxX, float maxY)Test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side. -
getTime
public static double getTime()Get global imgui time. incremented by io.DeltaTime every frame. -
getFrameCount
public static int getFrameCount()Get global imgui frame count. incremented by 1 every frame. -
getBackgroundDrawList
This draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents. -
getForegroundDrawList
This draw list will be the last rendered one. Useful to quickly draw shapes/text over dear imgui contents. -
getStyleColorName
public static java.lang.String getStyleColorName(int imGuiCol)Get a string corresponding to the enum value (for display, saving, etc.). -
calcTextSize
-
calcTextSize
-
calcTextSize
public static void calcTextSize(ImVec2 dstImVec2, java.lang.String text, java.lang.String textEnd, boolean hideTextAfterDoubleHas) -
calcTextSize
public static void calcTextSize(ImVec2 dstImVec2, java.lang.String text, java.lang.String textEnd, boolean hideTextAfterDoubleHas, float wrapWidth) -
calcListClipping
public static void calcListClipping(int itemCount, float itemsHeight, int[] outItemsDisplayStart, int[] outItemsDisplayEnd)Calculate coarse clipping for large list of evenly sized items. Prefer using the ImGuiListClipper higher-level helper if you can. -
beginChildFrame
public static boolean beginChildFrame(int id, float width, float height)Helper to create a child window / scrolling region that looks like a normal widget frame -
beginChildFrame
public static boolean beginChildFrame(int id, float width, float height, int imGuiWindowFlags)Helper to create a child window / scrolling region that looks like a normal widget frame -
endChildFrame
public static void endChildFrame()Always call EndChildFrame() regardless of BeginChildFrame() return values (which indicates a collapsed/clipped window) -
colorConvertU32ToFloat4
-
colorConvertFloat4ToU32
public static int colorConvertFloat4ToU32(float r, float g, float b, float a) -
colorConvertRGBtoHSV
public static void colorConvertRGBtoHSV(float[] rgb, float[] hsv) -
colorConvertHSVtoRGB
public static void colorConvertHSVtoRGB(float[] hsv, float[] rgb) -
getKeyIndex
public static int getKeyIndex(int imguiKey)Map ImGuiKey_* values into user's key index. == io.KeyMap[key] -
isKeyDown
public static boolean isKeyDown(int userKeyIndex)Is key being held. == io.KeysDown[userKeyIndex]. note that imgui doesn't know the semantic of each entry of io.KeysDown[]. Use your own indices/enums according to how your backend/engine stored them into io.KeysDown[]! -
isKeyPressed
public static boolean isKeyPressed(int userKeyIndex)Was key pressed (went from !Down to Down). if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate -
isKeyPressed
public static boolean isKeyPressed(int userKeyIndex, boolean repeat)Was key pressed (went from !Down to Down). if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate -
isKeyReleased
public static boolean isKeyReleased(int userKeyIndex)Was key released (went from Down to !Down).. -
getKeyPressedAmount
public static boolean getKeyPressedAmount(int keyIndex, float repeatDelay, float rate)Uses provided repeat rate/delay. Return a count, most often 0 or 1 but might be>1
if RepeatRate is small enough thatDeltaTime > RepeatRate
-
isMouseDown
public static boolean isMouseDown(int button)Is mouse button held (0=left, 1=right, 2=middle) -
isAnyMouseDown
public static boolean isAnyMouseDown()Is any mouse button held -
isMouseClicked
public static boolean isMouseClicked(int button)Did mouse button clicked (went from !Down to Down) (0=left, 1=right, 2=middle) -
isMouseClicked
public static boolean isMouseClicked(int button, boolean repeat) -
isMouseDoubleClicked
public static boolean isMouseDoubleClicked(int button)Did mouse button double-clicked. a double-click returns false in IsMouseClicked(). uses io.MouseDoubleClickTime. -
isMouseReleased
public static boolean isMouseReleased(int button)Did mouse button released (went from Down to !Down) -
isMouseDragging
public static boolean isMouseDragging()Is mouse dragging. if lockThreshold< -1.0f
uses io.MouseDraggingThreshold -
isMouseDragging
public static boolean isMouseDragging(int button)Is mouse dragging. if lockThreshold< -1.0f
uses io.MouseDraggingThreshold -
isMouseDragging
public static boolean isMouseDragging(int button, float lockThreshold)Is mouse dragging. if lockThreshold< -1.0f
uses io.MouseDraggingThreshold -
isMouseHoveringRect
public static boolean isMouseHoveringRect(float minX, float minY, float maxX, float maxY)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. -
isMouseHoveringRect
public static boolean isMouseHoveringRect(float minX, float minY, float maxX, float maxY, boolean clip)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. -
isMousePosValid
public static boolean isMousePosValid()By convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse -
isMousePosValid
public static boolean isMousePosValid(float mousePosX, float mousePosY)By convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse -
getMousePos
Shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls -
getMousePosOnOpeningCurrentPopup
Retrieve backup of mouse position at the time of opening popup we have BeginPopup() into -
getMouseDragDelta
Return 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. If lockThreshold< -1.0f
uses io.MouseDraggingThreshold. -
getMouseDragDelta
Return 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. If lockThreshold< -1.0f
uses io.MouseDraggingThreshold. -
getMouseDragDelta
Return 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. If lockThreshold< -1.0f
uses io.MouseDraggingThreshold. -
resetMouseDragDelta
public static void resetMouseDragDelta() -
resetMouseDragDelta
public static void resetMouseDragDelta(int button) -
getMouseCursor
public static int getMouseCursor()Get desired cursor type, 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 -
setMouseCursor
public static void setMouseCursor(int type)Set desired cursor type -
captureKeyboardFromApp
public static void captureKeyboardFromApp()Attention: misleading name! manually override io.WantCaptureKeyboard flag next frame (said flag is entirely left for your application to handle). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = wantCaptureKeyboardValue"; after the next NewFrame() call. -
captureKeyboardFromApp
public static void captureKeyboardFromApp(boolean wantCaptureKeyboardValue)Attention: misleading name! manually override io.WantCaptureKeyboard flag next frame (said flag is entirely left for your application to handle). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = wantCaptureKeyboardValue"; after the next NewFrame() call. -
captureMouseFromApp
public static void captureMouseFromApp()Attention: misleading name! manually override io.WantCaptureMouse flag next frame (said flag is entirely left for your application to handle). This is equivalent to setting "io.WantCaptureMouse = wantCaptureMouseValue;" after the next NewFrame() call. -
captureMouseFromApp
public static void captureMouseFromApp(boolean wantCaptureMouseValue)Attention: misleading name! manually override io.WantCaptureMouse flag next frame (said flag is entirely left for your application to handle). This is equivalent to setting "io.WantCaptureMouse = wantCaptureMouseValue;" after the next NewFrame() call. -
getClipboardText
public static java.lang.String getClipboardText() -
setClipboardText
public static void setClipboardText(java.lang.String text) -
loadIniSettingsFromDisk
public static void loadIniSettingsFromDisk(java.lang.String iniFilename)Call after CreateContext() and before the first call to NewFrame(). NewFrame() automatically calls LoadIniSettingsFromDisk(io.IniFilename). -
loadIniSettingsFromMemory
public static void loadIniSettingsFromMemory(java.lang.String iniData)Call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. -
loadIniSettingsFromMemory
public static void loadIniSettingsFromMemory(java.lang.String iniData, int iniSize)Call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source. -
saveIniSettingsToDisk
public static void saveIniSettingsToDisk(java.lang.String iniFilename)This 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). -
saveIniSettingsToMemory
public static java.lang.String saveIniSettingsToMemory()Return 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. -
saveIniSettingsToMemory
public static java.lang.String saveIniSettingsToMemory(long outIniSize)Return 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.
-