struct NVGcolor {
union {
float rgba[4];
struct {
float r;
float g;
float b;
float a;
};
};
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | NVGColor.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | A
The struct member offsets. |
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | B
The struct member offsets. |
| public static final int | G
The struct member offsets. |
| public static final int | R
The struct member offsets. |
| public static final int | RGBA
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | NVGColor(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public NVGColor | |
| public float | |
| public NVGColor | |
| public static NVGColor | |
| public static NVGColor. | calloc(int
the buffer capacity capacity)Returns a new |
| public static NVGColor | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NVGColor. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NVGColor | |
| public static NVGColor | |
| public static NVGColor. | |
| public static NVGColor. | |
| protected NVGColor | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static NVGColor | |
| public static NVGColor | |
| public static NVGColor. | create(int
the buffer capacity capacity)Returns a new |
| public static NVGColor. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static NVGColor | |
| public static NVGColor. | |
| public float | |
| public NVGColor | |
| public static NVGColor | |
| public static NVGColor. | malloc(int
the buffer capacity capacity)Returns a new |
| public static NVGColor | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static NVGColor. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static NVGColor | |
| public static NVGColor | |
| public static NVGColor. | |
| public static NVGColor. | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static float | |
| public static void | |
| public static FloatBuffer | |
| public static float | |
| public static void | |
| public static void | |
| public float | |
| public NVGColor | |
| public FloatBuffer | |
| public float | |
| public NVGColor | |
| public NVGColor | |
| public NVGColor | |
| public int |
| A | back to summary |
|---|---|
| public static final int A The struct member offsets. | |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| B | back to summary |
|---|---|
| public static final int B The struct member offsets. | |
| G | back to summary |
|---|---|
| public static final int G The struct member offsets. | |
| R | back to summary |
|---|---|
| public static final int R The struct member offsets. | |
| RGBA | back to summary |
|---|---|
| public static final int RGBA The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| NVGColor | back to summary |
|---|---|
| protected NVGColor(long address, ByteBuffer container) | |
| NVGColor | back to summary |
|---|---|
| public NVGColor(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| a | back to summary |
|---|---|
| public float a() the color alpha component | |
| a | back to summary |
|---|---|
| public NVGColor a(float value) Sets the specified value to the | |
| b | back to summary |
|---|---|
| public float b() the color blue component | |
| b | back to summary |
|---|---|
| public NVGColor b(float value) Sets the specified value to the | |
| calloc | back to summary |
|---|---|
| public static NVGColor calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static NVGColor. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NVGColor calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static NVGColor. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static NVGColor callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NVGColor callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NVGColor. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static NVGColor. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected NVGColor create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static NVGColor create() Returns a new | |
| create | back to summary |
|---|---|
| public static NVGColor create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static NVGColor. Returns a new
| |
| create | back to summary |
|---|---|
| public static NVGColor. Create a
| |
| createSafe | back to summary |
|---|---|
| public static NVGColor createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static NVGColor. Like
| |
| g | back to summary |
|---|---|
| public float g() the color green component | |
| g | back to summary |
|---|---|
| public NVGColor g(float value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static NVGColor malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static NVGColor. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NVGColor malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static NVGColor. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static NVGColor mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NVGColor mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NVGColor. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static NVGColor. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| na | back to summary |
|---|---|
| public static float na(long struct) Unsafe version of | |
| na | back to summary |
|---|---|
| public static void na(long struct, float value) Unsafe version of | |
| nb | back to summary |
|---|---|
| public static float nb(long struct) Unsafe version of | |
| nb | back to summary |
|---|---|
| public static void nb(long struct, float value) Unsafe version of | |
| ng | back to summary |
|---|---|
| public static float ng(long struct) Unsafe version of | |
| ng | back to summary |
|---|---|
| public static void ng(long struct, float value) Unsafe version of | |
| nr | back to summary |
|---|---|
| public static float nr(long struct) Unsafe version of | |
| nr | back to summary |
|---|---|
| public static void nr(long struct, float value) Unsafe version of | |
| nrgba | back to summary |
|---|---|
| public static FloatBuffer nrgba(long struct) Unsafe version of | |
| nrgba | back to summary |
|---|---|
| public static float nrgba(long struct, int index) Unsafe version of | |
| nrgba | back to summary |
|---|---|
| public static void nrgba(long struct, FloatBuffer value) Unsafe version of | |
| nrgba | back to summary |
|---|---|
| public static void nrgba(long struct, int index, float value) Unsafe version of | |
| r | back to summary |
|---|---|
| public float r() the color red component | |
| r | back to summary |
|---|---|
| public NVGColor r(float value) Sets the specified value to the | |
| rgba | back to summary |
|---|---|
| public FloatBuffer rgba() an array of 4 color components
| |
| rgba | back to summary |
|---|---|
| public float rgba(int index) an array of 4 color components | |
| rgba | back to summary |
|---|---|
| public NVGColor rgba(FloatBuffer value) Copies the specified | |
| rgba | back to summary |
|---|---|
| public NVGColor rgba(int index, float value) Sets the specified value at the specified index of the | |
| set | back to summary |
|---|---|
| public NVGColor set(NVGColor src) Copies the specified struct data to this struct. | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
NVGColor structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final NVGColor |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public float | |
| public NVGColor. | |
| public float | |
| public NVGColor. | |
| public float | |
| public NVGColor. | |
| protected NVGColor | |
| public float | |
| public NVGColor. | |
| public FloatBuffer | |
| public float | |
| public NVGColor. | |
| public NVGColor. | rgba(int index, float value)
Sets the specified value at the specified index of the |
| protected NVGColor. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final NVGColor ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| a | back to summary |
|---|---|
public float a()
| |
| a | back to summary |
|---|---|
| public NVGColor. Sets the specified value to the | |
| b | back to summary |
|---|---|
public float b()
| |
| b | back to summary |
|---|---|
| public NVGColor. Sets the specified value to the | |
| g | back to summary |
|---|---|
public float g()
| |
| g | back to summary |
|---|---|
| public NVGColor. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected NVGColor getElementFactory() Implements abstract org.
| |
| r | back to summary |
|---|---|
public float r()
| |
| r | back to summary |
|---|---|
| public NVGColor. Sets the specified value to the | |
| rgba | back to summary |
|---|---|
public FloatBuffer rgba()
| |
| rgba | back to summary |
|---|---|
public float rgba(int index)
| |
| rgba | back to summary |
|---|---|
| public NVGColor. Copies the specified | |
| rgba | back to summary |
|---|---|
| public NVGColor. Sets the specified value at the specified index of the | |
| self | back to summary |
|---|---|
| protected NVGColor. Implements abstract org.
| |