Class CharInfo


  • public class CharInfo
    extends CFacade
    Generated facet for DNA struct type 'CharInfo'.

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct CharInfo.

        It is required when allocating a new block to store data for CharInfo.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__kern

        public static final long[] __DNA__FIELD__kern
        Field descriptor (offset) for struct member 'kern'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         CharInfo charinfo = ...;
         CPointer<Object> p = charinfo.__dna__addressof(CharInfo.__DNA__FIELD__kern);
         CPointer<Short> p_kern = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'kern'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__mat_nr

        public static final long[] __DNA__FIELD__mat_nr
        Field descriptor (offset) for struct member 'mat_nr'.

        Field Documentation

        Blender Source Code

        Index start at 1, unlike mesh & nurbs.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         CharInfo charinfo = ...;
         CPointer<Object> p = charinfo.__dna__addressof(CharInfo.__DNA__FIELD__mat_nr);
         CPointer<Short> p_mat_nr = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'mat_nr'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__flag

        public static final long[] __DNA__FIELD__flag
        Field descriptor (offset) for struct member 'flag'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         CharInfo charinfo = ...;
         CPointer<Object> p = charinfo.__dna__addressof(CharInfo.__DNA__FIELD__flag);
         CPointer<Byte> p_flag = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __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:

         CharInfo charinfo = ...;
         CPointer<Object> p = charinfo.__dna__addressof(CharInfo.__DNA__FIELD___pad);
         CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad'
        • Signature: 'char[3]'
        • Actual Size (32bit/64bit): 3/3
    • Constructor Detail

      • CharInfo

        public CharInfo​(long __address,
                        Block __block,
                        BlockTable __blockTable)
      • CharInfo

        protected CharInfo​(CharInfo that)
    • Method Detail

      • getKern

        public short getKern()
                      throws java.io.IOException
        Get method for struct member 'kern'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__kern
      • setKern

        public void setKern​(short kern)
                     throws java.io.IOException
        Set method for struct member 'kern'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__kern
      • getMat_nr

        public short getMat_nr()
                        throws java.io.IOException
        Get method for struct member 'mat_nr'.

        Field Documentation

        Blender Source Code

        Index start at 1, unlike mesh & nurbs.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mat_nr
      • setMat_nr

        public void setMat_nr​(short mat_nr)
                       throws java.io.IOException
        Set method for struct member 'mat_nr'.

        Field Documentation

        Blender Source Code

        Index start at 1, unlike mesh & nurbs.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mat_nr
      • getFlag

        public byte getFlag()
                     throws java.io.IOException
        Get method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

        public void setFlag​(byte flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • 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
      • __io__addressof

        public CPointer<CharInfo> __io__addressof()
        Instantiates a pointer on this instance.