接口 JImGuiUtil


public interface JImGuiUtil
从以下版本开始:
v0.1
  • 字段详细资料

    • EMPTY_BYTES

      static final byte @NotNull [] EMPTY_BYTES
    • FLT_MAX

      static final float FLT_MAX
      defined in C++ float.h
      另请参阅:
      常量字段值
  • 方法详细资料

    • runWithin

      @TestOnly static void runWithin(long millis, @NotNull @NotNull Consumer<@NotNull JImGui> runnable)
      Run a GUI in a limited time period.
      参数:
      millis - millis seconds to run
      runnable - the task executed in each refreshing
    • run

      static void run(@NotNull @NotNull Consumer<@NotNull JImGui> runnable)
    • runPer

      static void runPer(long millis, @NotNull @NotNull Consumer<@NotNull JImGui> runnable)
    • runWithinPer

      @TestOnly @Internal static void runWithinPer(long limit, long millis, @NotNull @NotNull Consumer<@NotNull JImGui> runnable)
    • runPer

      static void runPer(@NotNull @NotNull LongSupplier millisSupplier, @NotNull @NotNull Consumer<@NotNull JImGui> runnable)
    • setStringToBytes

      static void setStringToBytes(@NotNull @NotNull Function<@Nullable String,​byte @Nullable []> stringToBytes)
      Customize your string-to-bytes function. Because the default implementation is not very efficient.
      参数:
      stringToBytes - your conversion function.
    • cacheStringToBytes

      static void cacheStringToBytes()
      The string-to-byte provided in #29, by @Mr00Anderson.
    • getBytes

      @Contract(value="!null -> !null; null -> null", pure=true) static byte @Nullable [] getBytes(@Nullable @Nullable String text)