类 JImVec4
java.lang.Object
org.ice1000.jimgui.JImVec4
- 所有已实现的接口:
AutoCloseable,DeallocatableObject
- 直接已知子类:
MutableJImVec4
Off-stack Vector, read only
- 从以下版本开始:
- v0.1
- 另请参阅:
which is mutable
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidShould only be called once.static @NotNull MutableJImVec4fromHSV(float h, float s, float v)Convert HSV color to RGBstatic @NotNull MutableJImVec4fromHSV(float h, float s, float v, float a)Convert HSV color to RGBstatic @NotNull MutableJImVec4fromU32(int u32)floatgetW()Don't call this unless necessary.floatgetX()Don't call this unless necessary.floatgetY()Don't call this unless necessary.floatgetZ()Don't call this unless necessary.toString()inttoU32()convert toImU32, unsigned 32-bit integer从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 org.ice1000.jimgui.cpp.DeallocatableObject
close
-
构造器详细资料
-
JImVec4
@Contract public JImVec4() -
JImVec4
@Contract public JImVec4(float x, float y, float z, float w)
-
-
方法详细资料
-
getW
@Contract(pure=true) public final float getW()Don't call this unless necessary. -
getX
@Contract(pure=true) public final float getX()Don't call this unless necessary. -
getY
@Contract(pure=true) public final float getY()Don't call this unless necessary. -
getZ
@Contract(pure=true) public final float getZ()Don't call this unless necessary. -
toU32
@Contract(pure=true) public final int toU32()convert toImU32, unsigned 32-bit integer -
deallocateNativeObject
public final void deallocateNativeObject()Should only be called once.- 指定者:
deallocateNativeObject在接口中DeallocatableObject
-
fromHSV
Convert HSV color to RGB- 返回:
- a mutable imgui vec4 instance
-
fromHSV
@Contract @NotNull public static @NotNull MutableJImVec4 fromHSV(float h, float s, float v, float a)Convert HSV color to RGB- 返回:
- a mutable imgui vec4 instance
-
fromU32
- 参数:
u32- unsigned 32-bit int color representation- 返回:
- a mutable imgui vec4 instance
- 另请参阅:
toU32()
-
toString
-