接口 JImGuiUtil
public interface JImGuiUtil
- 从以下版本开始:
- v0.1
-
字段概要
字段 -
方法概要
静态方法修饰符和类型方法说明static voidThe string-to-byte provided in #29, by @Mr00Anderson.static byte @Nullable []static voidstatic voidstatic voidrunPer(@NotNull LongSupplier millisSupplier, @NotNull Consumer<@NotNull JImGui> runnable)static voidRun a GUI in a limited time period.static voidrunWithinPer(long limit, long millis, @NotNull Consumer<@NotNull JImGui> runnable)static voidsetStringToBytes(@NotNull Function<@Nullable String,byte @Nullable []> stringToBytes)Customize your string-to-bytes function.
-
字段详细资料
-
EMPTY_BYTES
static final byte @NotNull [] EMPTY_BYTES -
FLT_MAX
static final float FLT_MAXdefined in C++ float.h- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
runWithin
Run a GUI in a limited time period.- 参数:
millis- millis seconds to runrunnable- the task executed in each refreshing
-
run
-
runPer
-
runWithinPer
-
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)
-