类 JImGui
java.lang.Object
org.ice1000.jimgui.JImGuiGen
org.ice1000.jimgui.JImWidgets
org.ice1000.jimgui.JImGui
- 所有已实现的接口:
AutoCloseable,DeallocatableObject
- 从以下版本开始:
- v0.1
-
字段概要
字段从类继承的字段 org.ice1000.jimgui.JImGuiGen
DOUBLE_FMT, DOWN_ARROW, FLOAT_FMT, INT_FMT, LEFT_ARROW, RIGHT_ARROW, TIME_FMT, UP_ARROW -
构造器概要
构造器构造器说明JImGui()JImGui(int width, int height)JImGui(int width, int height, @NotNull JImFontAtlas fontAtlas, @NotNull String title)JImGui(int width, int height, @NotNull JImFontAtlas fontAtlas, @NotNull String title, long anotherWindow) -
方法概要
修饰符和类型方法说明voidclose()void@Nullable JImFontfindFont()Call this only if you expect a nullable result.@Nullable JImDrawListCall this only if you expect a nullable result.@Nullable JImGuiIOfindIO()Call this only if you expect a nullable result.@Nullable JImStyleCall this only if you expect a nullable result.@Nullable JImDrawListCall this only if you expect a nullable result.static @NotNull JImGuifromExistingPointer(long nativeObjectPtr)For hacking purpose, don't use this if you're not sure what you're doingstatic @NotNull JImGuifromExistingPointer(long nativeObjectPtr, @NotNull JImFontAtlas fontAtlas)For hacking purpose, don't use this if you're not sure what you're doing@NotNull JImVec4@NotNull Stringstatic floatstatic floatstatic floatstatic float@NotNull JImFontgetFont()static floatstatic float@NotNull JImDrawList@NotNull JImGuiIOgetIO()static floatstatic floatstatic floatstatic floatstatic floatstatic floatstatic floatstatic floatfloatfloatfloatfloat@NotNull JImStylegetStyle()static floatstatic floatstatic floatstatic float@NotNull JImDrawListstatic floatstatic floatvoidShould be called before drawing all widgetsbooleanvoidloadIniSettingsFromMemory(@NotNull String data)static voidpushID(int intID)voidrender()Should be called after drawing all widgets@NotNull StringvoidsetBackground(@NotNull JImVec4 background)voidsetPlatformWindowPos(float newX, float newY)voidsetPlatformWindowSize(float newX, float newY)static voidsetTimeLocale(@NotNull String locale)static voidsetTimeLocale(@NotNull JImStr locale)protected static voidsetupImguiSpecificObjects(long nativeObjectPtr, long fontAtlas)voidsetWindowTitle(@NotNull String title)voidsetWindowTitle(@NotNull JImStr title)voidsetWindowTitle(@NotNull NativeString title)@NotNull JImSortSpecsvoidwindowDrawListAddImage(@NotNull JImTextureID id, float aX, float aY, float bX, float bY, float uvAX, float uvAY, float uvBX, float uvBY, int color)voidwindowDrawListAddLine(float aX, float aY, float bX, float bY, int u32Color)voidwindowDrawListAddLine(float aX, float aY, float bX, float bY, int u32Color, float thickness)booleanthe condition of the main loop从类继承的方法 org.ice1000.jimgui.JImWidgets
alreadyDisposed, begin, beginTabItem, image, inputText, inputText, inputText, inputText, menuItem, menuItem, menuItem, menuItem, menuItem, plotHistogram, plotHistogram, plotHistogram, plotHistogram, plotHistogram, plotHistogram, plotHistogram, plotLines, plotLines, plotLines, plotLines, plotLines, plotLines, plotLines, progressBar, progressBar, pushStyleVar, pushStyleVar, tableColumnFlags, tableColumnFlags, tableColumnName, tableColumnName, text从类继承的方法 org.ice1000.jimgui.JImGuiGen
alignTextToFramePadding, arrowButton, arrowButton, arrowButton, begin, begin, begin, begin, begin, begin, begin, beginChild, beginChild, beginChild, beginChild, beginChild0, beginChild0, beginChild0, beginChild0, beginChild0, beginChild0, beginChild0, beginChild0, beginChild0, beginCombo, beginCombo, beginCombo, beginCombo, beginCombo, beginGroup, beginListBox, beginListBox, beginListBox, beginMainMenuBar, beginMenu, beginMenu, beginMenu, beginMenu, beginMenu, beginMenuBar, beginPopup, beginPopup, beginPopup, beginPopup, beginPopup, beginPopupContextItem, beginPopupContextItem, beginPopupContextItem, beginPopupContextItem, beginPopupContextVoid, beginPopupContextVoid, beginPopupContextVoid, beginPopupContextVoid, beginPopupContextWindow, beginPopupContextWindow, beginPopupContextWindow, beginPopupContextWindow, beginPopupModal, beginPopupModal, beginPopupModal, beginPopupModal, beginPopupModal, beginTabBar, beginTabBar, beginTabBar, beginTabBar, beginTabBar, beginTabItem, beginTabItem, beginTabItem, beginTabItem, beginTabItem, beginTabItem, beginTabItem, beginTable, beginTable, beginTable, beginTable, beginTable, beginTable, beginTable, beginTable, beginTable, beginTooltip, bufferingBar, bufferingBar, bullet, bulletText, bulletText, bulletText, button, button, button, button, button, calcItemWidth, captureKeyboardFromApp, captureKeyboardFromApp, captureMouseFromApp, captureMouseFromApp, checkbox, checkbox, checkbox, circle, circle, circle, circle, closeCurrentPopup, collapsingHeader, collapsingHeader, collapsingHeader, collapsingHeader, collapsingHeader, collapsingHeader, collapsingHeader, colorButton, colorButton, colorButton, colorButton, colorButton, colorButton, colorButton, colorEdit3, colorEdit3, colorEdit3, colorEdit3, colorEdit3, colorEdit4, colorEdit4, colorEdit4, colorEdit4, colorEdit4, colorPicker3, colorPicker3, colorPicker3, colorPicker3, colorPicker3, colorPicker4, colorPicker4, colorPicker4, colorPicker4, colorPicker4, columns, columns, columns, columns, columns, combo, combo, combo, combo, combo, dateChooser, dateChooser, dateChooser, dateChooser, dateChooser, dateChooser, dateChooser, dateChooser, dateChooser, dateChooser, dateChooser, dateChooser, dateChooser, dateChooser, dateChooser, dateChooser, dateChooser, dialogBox, dialogBox, dialogBox, dialogBox, dialogBox, dragFloat, dragFloat, dragFloat, dragFloat, dragFloat, dragFloat, dragFloat, dragFloat, dragFloat, dragFloat, dragFloat, dragFloat, dragFloat, dragFloatRange2, dragFloatRange2, dragFloatRange2, dragFloatRange2, dragFloatRange2, dragFloatRange2, dragFloatRange2, dragFloatRange2, dragFloatRange2, dragFloatRange2, dragFloatRange2, dragFloatRange2, dragFloatRange2, dragFloatRange2, dragFloatRange2, dragInt, dragInt, dragInt, dragInt, dragInt, dragInt, dragInt, dragInt, dragInt, dragInt, dragInt, dragInt, dragInt, dragIntRange2, dragIntRange2, dragIntRange2, dragIntRange2, dragIntRange2, dragIntRange2, dragIntRange2, dragIntRange2, dragIntRange2, dragIntRange2, dragIntRange2, dragIntRange2, dragIntRange2, dragIntRange2, dragIntRange2, dragVec4, dragVec4, dragVec4, dragVec4, dragVec4, dragVec4, dragVec4, dragVec4, dragVec4, dragVec4, dragVec4, dummy, emptyButton, emptyButton, end, endChild, endCombo, endGroup, endListBox, endMainMenuBar, endMenu, endMenuBar, endPopup, endTabBar, endTabItem, endTable, endTooltip, getColumnIndex, getColumnOffset, getColumnOffset, getColumnsCount, getColumnWidth, getColumnWidth, getCursorPosX, getCursorPosY, getDisableHighlight, getFontSize, getFrameCount, getFrameHeight, getFrameHeightWithSpacing, getID, getID, getKeyIndex, getKeyPressedAmount, getScrollMaxX, getScrollMaxY, getScrollX, getScrollY, getTextLineHeight, getTextLineHeightWithSpacing, getTime, getTreeNodeToLabelSpacing, getWindowContentRegionWidth, getWindowHeight, getWindowWidth, image, image, image, image, imageButton, imageButton, imageButton, imageButton, imageButton, indent, indent, inputDouble, inputDouble, inputDouble, inputDouble, inputDouble, inputDouble, inputDouble, inputDouble, inputDouble, inputDouble, inputDouble, inputFloat, inputFloat, inputFloat, inputFloat, inputFloat, inputFloat, inputFloat, inputFloat, inputFloat, inputFloat, inputFloat, inputInt, inputInt, inputInt, inputInt, inputInt, inputInt, inputInt, inputInt, inputInt, inputText, inputText, inputText, inputText, inputText, inputTextMultiline, inputTextMultiline, inputTextMultiline, inputTextMultiline, inputTextMultiline, inputTextMultiline, inputTextMultiline, inputTextWithHint, inputTextWithHint, inputTextWithHint, inputTextWithHint, inputTextWithHint, invisibleButton, invisibleButton, invisibleButton, invisibleButton, invisibleButton, invisibleButton, invisibleButton, isAnyItemActive, isAnyItemFocused, isAnyItemHovered, isAnyMouseDown, isItemActive, isItemClicked, isItemClicked, isItemDeactivated, isItemDeactivatedAfterEdit, isItemFocused, isItemHovered, isItemHovered, IsItemToggledOpen, isItemVisible, isKeyDown, isKeyPressed, isKeyPressed, isKeyReleased, isMouseClicked, isMouseClicked, isMouseClicked, isMouseDoubleClicked, isMouseDoubleClicked, isMouseDown, isMouseDown, isMouseDragging, isMouseDragging, isMouseDragging, isMouseHoveringRect, isMouseHoveringRect, isMousePosValid, isMouseReleased, isMouseReleased, isPopupOpen, isPopupOpen, isPopupOpen, isPopupOpen, isPopupOpen, isRectVisible, isWindowAppearing, isWindowCollapsed, isWindowFocused, isWindowFocused, isWindowHovered, isWindowHovered, labelText, labelText, labelText, lineTo, lineTo, lineTo, loadIniSettingsFromDisk, loadIniSettingsFromDisk, loadIniSettingsFromDisk, logButtons, logFinish, logText, logText, logText, logToClipboard, logToClipboard, logToFile, logToFile, logToFile, logToFile, logToTTY, logToTTY, menuItem, menuItem, menuItem, menuItem, menuItem, menuItem, menuItem, menuItem, menuItem, newLine, nextColumn, openPopup, openPopup, openPopup, openPopup, openPopup, openPopupOnItemClick, openPopupOnItemClick, openPopupOnItemClick, openPopupOnItemClick, popAllowKeyboardFocus, popButtonRepeat, popClipRect, popFont, popID, popItemFlag, popItemWidth, popStyleColor, popStyleColor, popStyleVar, popStyleVar, popTextWrapPos, progressBar, progressBar, progressBar, progressBar, pushAllowKeyboardFocus, pushButtonRepeat, pushButtonRepeat, pushClipRect, pushFont, pushFont, pushID, pushID, pushItemFlag, pushItemWidth, pushStyleColor, pushStyleColor, pushStyleVarFloat, pushStyleVarImVec2, pushTextWrapPos, pushTextWrapPos, radioButton, radioButton, radioButton, radioButton0, radioButton0, radioButton0, rect, rect, rect, rect, rect, sameLine, sameLine, sameLine, saveIniSettingsToDisk, saveIniSettingsToDisk, saveIniSettingsToDisk, selectable, selectable, selectable, selectable, selectable, selectable, selectable, selectable0, selectable0, selectable0, selectable0, selectable0, selectable0, selectable0, selectable0, selectable0, separator, setClipboardText, setClipboardText, setClipboardText, setColorEditOptions, setColorEditOptions, setColumnOffset, setColumnWidth, setCursorPos, setCursorPosX, setCursorPosY, setCursorScreenPos, setDisableHighlight, setItemAllowOverlap, setItemDefaultFocus, setKeyboardFocusHere, SetNextItemOpen, SetNextItemOpen, setNextItemWidth, setNextWindowBgAlpha, setNextWindowCollapsed, setNextWindowCollapsed, setNextWindowContentSize, setNextWindowFocus, setNextWindowPos, setNextWindowPos, setNextWindowPos, setNextWindowSize, setNextWindowSize, setNextWindowSizeConstraints, setScrollFromPosX, setScrollFromPosY, setScrollHereX, setScrollHereY, setScrollX, setScrollY, setTabItemClosed, setTabItemClosed, setTabItemClosed, setTooltip, setTooltip, setTooltip, setWindowCollapsed, setWindowCollapsed, setWindowCollapsed, setWindowCollapsed, setWindowCollapsed, setWindowFocus, setWindowFocus, setWindowFocus, setWindowFontScale, setWindowPos, setWindowPos, setWindowPos, setWindowPos, setWindowPos, setWindowSize, setWindowSize, setWindowSize, setWindowSize, setWindowSize, showAboutWindow, showAboutWindow, showAboutWindow, showDemoWindow, showDemoWindow, showDemoWindow, showFontSelector, showFontSelector, showFontSelector, showMetricsWindow, showMetricsWindow, showMetricsWindow, showStyleEditor, showStyleEditor, showStyleEditor, showStyleSelector, showStyleSelector, showStyleSelector, showUserGuide, sliderAngle, sliderAngle, sliderAngle, sliderAngle, sliderAngle, sliderAngle, sliderAngle, sliderAngle, sliderAngle, sliderAngle, sliderAngle, sliderFloat, sliderFloat, sliderFloat, sliderFloat, sliderFloat, sliderFloat, sliderFloat, sliderFloat, sliderFloat, sliderFloat, sliderFloat, sliderInt, sliderInt, sliderInt, sliderInt, sliderInt, sliderInt, sliderInt, sliderInt, sliderInt, sliderInt, sliderInt, sliderVec4, sliderVec4, sliderVec4, sliderVec4, sliderVec4, sliderVec4, sliderVec4, sliderVec4, sliderVec4, smallButton, smallButton, smallButton, spacing, spinner, spinner, styleColorsClassic, styleColorsClassic, styleColorsClassic, styleColorsDark, styleColorsDark, styleColorsDark, styleColorsLight, styleColorsLight, styleColorsLight, tabItemButton, tabItemButton, tabItemButton, tabItemButton, tabItemButton, tableGetColumnCount, tableGetColumnFlags, tableGetColumnIndex, tableGetColumnName, tableGetRowIndex, tableHeader, tableHeader, tableHeader, tableHeadersRow, tableNextColumn, tableNextRow, tableNextRow, tableNextRow, tableSetBgColor, tableSetBgColor, tableSetColumnIndex, tableSetupColumn, tableSetupColumn, tableSetupColumn, tableSetupColumn, tableSetupColumn, tableSetupColumn, tableSetupColumn, tableSetupColumn, tableSetupColumn, tableSetupScrollFreeze, text, text, text, textColored, textColored, textColored, textDisabled, textDisabled, textDisabled, textUnformatted, textUnformatted, textWrapped, textWrapped, textWrapped, toggleButton, toggleButton, toggleButton, treeNode, treeNode, treeNode, treeNodeEx, treeNodeEx, treeNodeEx, treeNodeEx, treeNodeEx, treePop, treePush, treePush, treePush, unindent, unindent, vSliderFloat, vSliderFloat, vSliderFloat, vSliderFloat, vSliderFloat, vSliderFloat, vSliderFloat, vSliderFloat, vSliderFloat, vSliderFloat, vSliderFloat, vSliderInt, vSliderInt, vSliderInt, vSliderInt, vSliderInt, vSliderInt, vSliderInt, vSliderInt, vSliderInt, vSliderInt, vSliderInt
-
字段详细资料
-
DEFAULT_TITLE
- 另请参阅:
- 常量字段值
-
-
构造器详细资料
-
JImGui
public JImGui() -
JImGui
-
JImGui
-
JImGui
public JImGui(int width, int height) -
JImGui
public JImGui(int width, int height, @NotNull @NotNull JImFontAtlas fontAtlas, @NotNull @NotNull String title) -
JImGui
public JImGui(int width, int height, @NotNull @NotNull JImFontAtlas fontAtlas, @NotNull @NotNull String title, long anotherWindow)
-
-
方法详细资料
-
fromExistingPointer
@NotNull public static @NotNull JImGui fromExistingPointer(long nativeObjectPtr, @NotNull @NotNull JImFontAtlas fontAtlas)For hacking purpose, don't use this if you're not sure what you're doing- 参数:
nativeObjectPtr- usually a C++ pointer toGLFWwindowon Linux/OSX,NativeObject(see dx9_impl.cpp) on Windows, but if you're usingJniLoaderEx(inorg.ice1000.jimgui:extension), this can a lot of things else.fontAtlas- font related settings- 另请参阅:
JniLoader
-
fromExistingPointer
For hacking purpose, don't use this if you're not sure what you're doing- 参数:
nativeObjectPtr- a C++ pointer toGLFWwindowon Linux/OSX,NativeObject(see dx9_impl.cpp) on Windows
-
deallocateNativeObject
public final void deallocateNativeObject()- 指定者:
deallocateNativeObject在接口中DeallocatableObject
-
close
public final void close()- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中DeallocatableObject
-
setBackground
- 参数:
background- shouldn't be closed, will close automatically
-
findIO
Call this only if you expect a nullable result.- 返回:
- same as
getIO()
-
getIO
-
getStyle
-
getFont
-
findWindowDrawList
Call this only if you expect a nullable result.- 返回:
- same as
getWindowDrawList()
-
tableGetSortSpecs
-
getWindowDrawList
-
findForegroundDrawList
Call this only if you expect a nullable result.- 返回:
- same as
getForegroundDrawList()
-
getForegroundDrawList
-
findStyle
Call this only if you expect a nullable result.- 返回:
- same as
getStyle(), don't callJImStyle.deallocateNativeObject()
-
findFont
Call this only if you expect a nullable result.- 返回:
- same as
getFont(), don't callJImStyle.deallocateNativeObject()
-
isDisposed
@Contract(pure=true) public boolean isDisposed() -
getBackground
- 返回:
- shouldn't be closed, will close automatically
-
getPlatformWindowSizeX
public float getPlatformWindowSizeX() -
getPlatformWindowSizeY
public float getPlatformWindowSizeY() -
getPlatformWindowPosX
public float getPlatformWindowPosX() -
getPlatformWindowPosY
public float getPlatformWindowPosY() -
setPlatformWindowSize
public void setPlatformWindowSize(float newX, float newY) -
setPlatformWindowPos
public void setPlatformWindowPos(float newX, float newY) -
pushID
public static void pushID(int intID) -
getWindowPosX
public static float getWindowPosX() -
getWindowPosY
public static float getWindowPosY() -
getContentRegionMaxX
public static float getContentRegionMaxX() -
getContentRegionMaxY
public static float getContentRegionMaxY() -
getContentRegionAvailX
public static float getContentRegionAvailX() -
getContentRegionAvailY
public static float getContentRegionAvailY() -
getWindowContentRegionMinX
public static float getWindowContentRegionMinX() -
getWindowContentRegionMinY
public static float getWindowContentRegionMinY() -
getWindowContentRegionMaxX
public static float getWindowContentRegionMaxX() -
getWindowContentRegionMaxY
public static float getWindowContentRegionMaxY() -
getFontTexUvWhitePixelX
public static float getFontTexUvWhitePixelX() -
getFontTexUvWhitePixelY
public static float getFontTexUvWhitePixelY() -
getItemRectMinX
public static float getItemRectMinX() -
getItemRectMinY
public static float getItemRectMinY() -
getItemRectMaxX
public static float getItemRectMaxX() -
getItemRectMaxY
public static float getItemRectMaxY() -
getItemRectSizeX
public static float getItemRectSizeX() -
getItemRectSizeY
public static float getItemRectSizeY() -
getMousePosOnOpeningCurrentPopupX
public static float getMousePosOnOpeningCurrentPopupX() -
getMousePosOnOpeningCurrentPopupY
public static float getMousePosOnOpeningCurrentPopupY() -
windowShouldClose
@Contract(pure=true) public boolean windowShouldClose()the condition of the main loop- 返回:
- should end the main loop or not
-
render
@Contract public void render()Should be called after drawing all widgets -
setWindowTitle
-
setWindowTitle
-
setWindowTitle
-
initNewFrame
@Contract public void initNewFrame()Should be called before drawing all widgets -
loadIniSettingsFromMemory
-
saveIniSettingsToMemory
-
getClipboardText
-
windowDrawListAddImage
public void windowDrawListAddImage(@NotNull @NotNull JImTextureID id, float aX, float aY, float bX, float bY, float uvAX, float uvAY, float uvBX, float uvBY, int color) -
windowDrawListAddLine
public void windowDrawListAddLine(float aX, float aY, float bX, float bY, int u32Color, float thickness) -
windowDrawListAddLine
public void windowDrawListAddLine(float aX, float aY, float bX, float bY, int u32Color) -
setTimeLocale
-
setTimeLocale
-
setupImguiSpecificObjects
protected static void setupImguiSpecificObjects(long nativeObjectPtr, long fontAtlas)
-