public class FileSelectAssetLibraryUID extends CFacade
Information to identify a asset library. May be either one of the predefined types (current 'Main', builtin library, project library), or a custom type as defined in the Preferences.
If the type is set to FILE_ASSET_LIBRARY_CUSTOM
, idname must have the name to identify the custom library. Otherwise idname is not used.
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD___pad
Field descriptor (offset) for struct member '_pad'.
|
static long[] |
__DNA__FIELD__custom_library_index
Field descriptor (offset) for struct member 'custom_library_index'.
|
static long[] |
__DNA__FIELD__type
Field descriptor (offset) for struct member 'type'.
|
static int |
__DNA__SDNA_INDEX
This is the sdna index of the struct FileSelectAssetLibraryUID.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
protected |
FileSelectAssetLibraryUID(FileSelectAssetLibraryUID that) |
|
FileSelectAssetLibraryUID(long __address,
Block __block,
BlockTable __blockTable) |
Modifier and Type | Method and Description |
---|---|
CPointer<FileSelectAssetLibraryUID> |
__io__addressof()
Instantiates a pointer on this instance.
|
CArrayFacade<java.lang.Byte> |
get_pad()
Get method for struct member '_pad'.
|
int |
getCustom_library_index()
Get method for struct member 'custom_library_index'.
|
short |
getType()
Get method for struct member 'type'.
|
void |
set_pad(CArrayFacade<java.lang.Byte> _pad)
Set method for struct member '_pad'.
|
void |
setCustom_library_index(int custom_library_index)
Set method for struct member 'custom_library_index'.
|
void |
setType(short type)
Set method for struct member 'type'.
|
__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
public static final int __DNA__SDNA_INDEX
It is required when allocating a new block to store data for FileSelectAssetLibraryUID.
org.cakelab.blender.io.dna.internal.StructDNA}
,
org.cakelab.blender.io.block.BlockTable#allocate}
,
Constant Field Valuespublic static final long[] __DNA__FIELD__type
This is how you get a reference on the corresponding field in the struct:
FileSelectAssetLibraryUID fileselectassetlibraryuid = ...; CPointer<Object> p = fileselectassetlibraryuid.__dna__addressof(FileSelectAssetLibraryUID.__DNA__FIELD__type); CPointer<Short> p_type = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD___pad
This is how you get a reference on the corresponding field in the struct:
FileSelectAssetLibraryUID fileselectassetlibraryuid = ...; CPointer<Object> p = fileselectassetlibraryuid.__dna__addressof(FileSelectAssetLibraryUID.__DNA__FIELD___pad); CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
public static final long[] __DNA__FIELD__custom_library_index
If showing a custom asset library (FILE_ASSET_LIBRARY_CUSTOM
), this is the index of the bUserAssetLibrary
within UserDef.asset_libraries
. Should be ignored otherwise (but better set to -1 then, for sanity and debugging).
This is how you get a reference on the corresponding field in the struct:
FileSelectAssetLibraryUID fileselectassetlibraryuid = ...; CPointer<Object> p = fileselectassetlibraryuid.__dna__addressof(FileSelectAssetLibraryUID.__DNA__FIELD__custom_library_index); CPointer<Integer> p_custom_library_index = p.cast(new Class[]{Integer.class});
public FileSelectAssetLibraryUID(long __address, Block __block, BlockTable __blockTable)
protected FileSelectAssetLibraryUID(FileSelectAssetLibraryUID that)
public short getType() throws java.io.IOException
java.io.IOException
__DNA__FIELD__type
public void setType(short type) throws java.io.IOException
java.io.IOException
__DNA__FIELD__type
public CArrayFacade<java.lang.Byte> get_pad() throws java.io.IOException
java.io.IOException
__DNA__FIELD___pad
public void set_pad(CArrayFacade<java.lang.Byte> _pad) throws java.io.IOException
java.io.IOException
__DNA__FIELD___pad
public int getCustom_library_index() throws java.io.IOException
If showing a custom asset library (FILE_ASSET_LIBRARY_CUSTOM
), this is the index of the bUserAssetLibrary
within UserDef.asset_libraries
. Should be ignored otherwise (but better set to -1 then, for sanity and debugging).
java.io.IOException
__DNA__FIELD__custom_library_index
public void setCustom_library_index(int custom_library_index) throws java.io.IOException
If showing a custom asset library (FILE_ASSET_LIBRARY_CUSTOM
), this is the index of the bUserAssetLibrary
within UserDef.asset_libraries
. Should be ignored otherwise (but better set to -1 then, for sanity and debugging).
java.io.IOException
__DNA__FIELD__custom_library_index
public CPointer<FileSelectAssetLibraryUID> __io__addressof()