Package org.blender.dna
Class Palette
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.Palette
-
public class Palette extends CFacade
Generated facet for DNA struct type 'Palette'.Class Documentation
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD___pad
Field descriptor (offset) for struct member '_pad'.static long[]
__DNA__FIELD__active_color
Field descriptor (offset) for struct member 'active_color'.static long[]
__DNA__FIELD__colors
Field descriptor (offset) for struct member 'colors'.static long[]
__DNA__FIELD__id
Field descriptor (offset) for struct member 'id'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct Palette.-
Fields inherited from class org.cakelab.blender.nio.CFacade
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
-
-
Constructor Summary
Constructors Modifier Constructor Description Palette(long __address, Block __block, BlockTable __blockTable)
protected
Palette(Palette that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<Palette>
__io__addressof()
Instantiates a pointer on this instance.CArrayFacade<java.lang.Byte>
get_pad()
Get method for struct member '_pad'.int
getActive_color()
Get method for struct member 'active_color'.ListBase
getColors()
Get method for struct member 'colors'.ID
getId()
Get method for struct member 'id'.void
set_pad(CArrayFacade<java.lang.Byte> _pad)
Set method for struct member '_pad'.void
setActive_color(int active_color)
Set method for struct member 'active_color'.void
setColors(ListBase colors)
Set method for struct member 'colors'.void
setId(ID id)
Set method for struct member 'id'.-
Methods inherited from class org.cakelab.blender.nio.CFacade
__io__addressof, __io__addressof, __io__equals, __io__generic__copy, __io__generic__copy, __io__instanceof, __io__native__copy, __io__newInstance, __io__same__encoding, __io__sizeof, __io__sizeof, __io__subclassof, equals, hashCode
-
-
-
-
Field Detail
-
__DNA__SDNA_INDEX
public static final int __DNA__SDNA_INDEX
This is the sdna index of the struct Palette.It is required when allocating a new block to store data for Palette.
- See Also:
StructDNA
,BlockTable
, Constant Field Values
-
__DNA__FIELD__id
public static final long[] __DNA__FIELD__id
Field descriptor (offset) for struct member 'id'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Palette palette = ...; CPointer<Object> p = palette.__dna__addressof(Palette.__DNA__FIELD__id); CPointer<ID> p_id = p.cast(new Class[]{ID.class});
Metadata
- Field: 'id'
- Signature: 'ID'
- Actual Size (32bit/64bit): 128/160
-
__DNA__FIELD__colors
public static final long[] __DNA__FIELD__colors
Field descriptor (offset) for struct member 'colors'.Field Documentation
Blender Python API
(read-only)Blender Source Code
Pointer to individual colors.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Palette palette = ...; CPointer<Object> p = palette.__dna__addressof(Palette.__DNA__FIELD__colors); CPointer<ListBase> p_colors = p.cast(new Class[]{ListBase.class});
Metadata
- Field: 'colors'
- Signature: 'ListBase'
- Actual Size (32bit/64bit): 8/16
-
__DNA__FIELD__active_color
public static final long[] __DNA__FIELD__active_color
Field descriptor (offset) for struct member 'active_color'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Palette palette = ...; CPointer<Object> p = palette.__dna__addressof(Palette.__DNA__FIELD__active_color); CPointer<Integer> p_active_color = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'active_color'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD___pad
public static final long[] __DNA__FIELD___pad
Field descriptor (offset) for struct member '_pad'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
Palette palette = ...; CPointer<Object> p = palette.__dna__addressof(Palette.__DNA__FIELD___pad); CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
Metadata
- Field: '_pad'
- Signature: 'char[4]'
- Actual Size (32bit/64bit): 4/4
-
-
Constructor Detail
-
Palette
public Palette(long __address, Block __block, BlockTable __blockTable)
-
Palette
protected Palette(Palette that)
-
-
Method Detail
-
getId
public ID getId() throws java.io.IOException
Get method for struct member 'id'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__id
-
setId
public void setId(ID id) throws java.io.IOException
Set method for struct member 'id'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__id
-
getColors
public ListBase getColors() throws java.io.IOException
Get method for struct member 'colors'.Field Documentation
Blender Python API
(read-only)Blender Source Code
Pointer to individual colors.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__colors
-
setColors
public void setColors(ListBase colors) throws java.io.IOException
Set method for struct member 'colors'.Field Documentation
Blender Python API
(read-only)Blender Source Code
Pointer to individual colors.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__colors
-
getActive_color
public int getActive_color() throws java.io.IOException
Get method for struct member 'active_color'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__active_color
-
setActive_color
public void setActive_color(int active_color) throws java.io.IOException
Set method for struct member 'active_color'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__active_color
-
get_pad
public CArrayFacade<java.lang.Byte> get_pad() throws java.io.IOException
Get method for struct member '_pad'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad
-
set_pad
public void set_pad(CArrayFacade<java.lang.Byte> _pad) throws java.io.IOException
Set method for struct member '_pad'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD___pad
-
-