类 JImGui

所有已实现的接口:
AutoCloseable, DeallocatableObject

public class JImGui extends JImWidgets implements DeallocatableObject
从以下版本开始:
v0.1
  • 字段详细资料

    • DEFAULT_TITLE

      @NotNull public static final @NotNull String DEFAULT_TITLE
      另请参阅:
      常量字段值
  • 构造器详细资料

    • JImGui

      public JImGui()
    • JImGui

      public JImGui(@NotNull @NotNull String title)
    • JImGui

      public JImGui(int width, int height, @NotNull @NotNull String title)
    • 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 to GLFWwindow on Linux/OSX, NativeObject (see dx9_impl.cpp) on Windows, but if you're using JniLoaderEx (in org.ice1000.jimgui:extension), this can a lot of things else.
      fontAtlas - font related settings
      另请参阅:
      JniLoader
    • fromExistingPointer

      @NotNull public static @NotNull JImGui fromExistingPointer(long nativeObjectPtr)
      For hacking purpose, don't use this if you're not sure what you're doing
      参数:
      nativeObjectPtr - a C++ pointer to GLFWwindow on 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

      @Contract public void setBackground(@NotNull @NotNull JImVec4 background)
      参数:
      background - shouldn't be closed, will close automatically
    • findIO

      @Contract(pure=true) @Nullable public @Nullable JImGuiIO findIO()
      Call this only if you expect a nullable result.
      返回:
      same as getIO()
    • getIO

      @Contract(pure=true) @NotNull public @NotNull JImGuiIO getIO()
    • getStyle

      @Contract(pure=true) @NotNull public @NotNull JImStyle getStyle()
    • getFont

      @Contract(pure=true) @NotNull public @NotNull JImFont getFont()
    • findWindowDrawList

      @Contract(pure=true) @Nullable public @Nullable JImDrawList findWindowDrawList()
      Call this only if you expect a nullable result.
      返回:
      same as getWindowDrawList()
    • tableGetSortSpecs

      @Contract(pure=true) @NotNull public @NotNull JImSortSpecs tableGetSortSpecs()
    • getWindowDrawList

      @Contract(pure=true) @NotNull public @NotNull JImDrawList getWindowDrawList()
    • findForegroundDrawList

      @Contract(pure=true) @Nullable public @Nullable JImDrawList findForegroundDrawList()
      Call this only if you expect a nullable result.
      返回:
      same as getForegroundDrawList()
    • getForegroundDrawList

      @Contract(pure=true) @NotNull public @NotNull JImDrawList getForegroundDrawList()
    • findStyle

      @Contract(pure=true) @Nullable public @Nullable JImStyle findStyle()
      Call this only if you expect a nullable result.
      返回:
      same as getStyle(), don't call JImStyle.deallocateNativeObject()
    • findFont

      @Contract(pure=true) @Nullable public @Nullable JImFont findFont()
      Call this only if you expect a nullable result.
      返回:
      same as getFont(), don't call JImStyle.deallocateNativeObject()
    • isDisposed

      @Contract(pure=true) public boolean isDisposed()
    • getBackground

      @Contract(pure=true) @NotNull public @NotNull JImVec4 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

      @Contract public void setWindowTitle(@NotNull @NotNull String title)
    • setWindowTitle

      @Contract public void setWindowTitle(@NotNull @NotNull JImStr title)
    • setWindowTitle

      @Contract public void setWindowTitle(@NotNull @NotNull NativeString title)
    • initNewFrame

      @Contract public void initNewFrame()
      Should be called before drawing all widgets
    • loadIniSettingsFromMemory

      public void loadIniSettingsFromMemory(@NotNull @NotNull String data)
    • saveIniSettingsToMemory

      @NotNull public @NotNull String saveIniSettingsToMemory()
    • getClipboardText

      @NotNull public @NotNull String 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

      public static void setTimeLocale(@NotNull @NotNull String locale)
    • setTimeLocale

      public static void setTimeLocale(@NotNull @NotNull JImStr locale)
    • setupImguiSpecificObjects

      protected static void setupImguiSpecificObjects(long nativeObjectPtr, long fontAtlas)