Class bGPDpalette


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

    Class Documentation

    Blender Source Code

    palette of colors

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         bGPDpalette bgpdpalette = ...;
         CPointer<Object> p = bgpdpalette.__dna__addressof(bGPDpalette.__DNA__FIELD__next);
         CPointer<CPointer<bGPDpalette>> p_next = p.cast(new Class[]{CPointer.class, bGPDpalette.class});
         

        Metadata

        • Field: 'next'
        • Signature: 'bGPDpalette*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__prev

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

        Pointer Arithmetics

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

         bGPDpalette bgpdpalette = ...;
         CPointer<Object> p = bgpdpalette.__dna__addressof(bGPDpalette.__DNA__FIELD__prev);
         CPointer<CPointer<bGPDpalette>> p_prev = p.cast(new Class[]{CPointer.class, bGPDpalette.class});
         

        Metadata

        • Field: 'prev'
        • Signature: 'bGPDpalette*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__colors

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

        Field Documentation

        Blender Source Code

        Pointer to individual colors.

        Pointer Arithmetics

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

         bGPDpalette bgpdpalette = ...;
         CPointer<Object> p = bgpdpalette.__dna__addressof(bGPDpalette.__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__info

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

        Field Documentation

        Blender Source Code

        Palette name. Must be unique.

        Pointer Arithmetics

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

         bGPDpalette bgpdpalette = ...;
         CPointer<Object> p = bgpdpalette.__dna__addressof(bGPDpalette.__DNA__FIELD__info);
         CPointer<CArrayFacade<Byte>> p_info = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

         bGPDpalette bgpdpalette = ...;
         CPointer<Object> p = bgpdpalette.__dna__addressof(bGPDpalette.__DNA__FIELD__flag);
         CPointer<Short> p_flag = p.cast(new Class[]{Short.class});
         

        Metadata

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

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

        Metadata

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

      • bGPDpalette

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

        protected bGPDpalette​(bGPDpalette that)
    • Method Detail

      • getColors

        public ListBase getColors()
                           throws java.io.IOException
        Get method for struct member 'colors'.

        Field Documentation

        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 Source Code

        Pointer to individual colors.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__colors
      • getInfo

        public CArrayFacade<java.lang.Byte> getInfo()
                                             throws java.io.IOException
        Get method for struct member 'info'.

        Field Documentation

        Blender Source Code

        Palette name. Must be unique.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__info
      • setInfo

        public void setInfo​(CArrayFacade<java.lang.Byte> info)
                     throws java.io.IOException
        Set method for struct member 'info'.

        Field Documentation

        Blender Source Code

        Palette name. Must be unique.

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

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

        public void setFlag​(short 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<bGPDpalette> __io__addressof()
        Instantiates a pointer on this instance.