Class bGPDpalettecolor


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

    Class Documentation

    Blender Source Code



    GP Palettes (Deprecated - 2.78 - 2.79 only) color of palettes

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        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:

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

        Metadata

        • Field: 'next'
        • Signature: 'bGPDpalettecolor*'
        • 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:

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

        Metadata

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

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

        Field Documentation

        Blender Source Code

        Color name. Must be unique.

        Pointer Arithmetics

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

         bGPDpalettecolor bgpdpalettecolor = ...;
         CPointer<Object> p = bgpdpalettecolor.__dna__addressof(bGPDpalettecolor.__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__color

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

        Pointer Arithmetics

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

         bGPDpalettecolor bgpdpalettecolor = ...;
         CPointer<Object> p = bgpdpalettecolor.__dna__addressof(bGPDpalettecolor.__DNA__FIELD__color);
         CPointer<CArrayFacade<Float>> p_color = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'color'
        • Signature: 'float[4]'
        • Actual Size (32bit/64bit): 16/16
      • __DNA__FIELD__fill

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

        Field Documentation

        Blender Source Code

        Color that should be used for drawing "fills" for strokes.

        Pointer Arithmetics

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

         bGPDpalettecolor bgpdpalettecolor = ...;
         CPointer<Object> p = bgpdpalettecolor.__dna__addressof(bGPDpalettecolor.__DNA__FIELD__fill);
         CPointer<CArrayFacade<Float>> p_fill = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'fill'
        • Signature: 'float[4]'
        • Actual Size (32bit/64bit): 16/16
      • __DNA__FIELD__flag

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

        Field Documentation

        Blender Source Code

        Settings for palette color.

        Pointer Arithmetics

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

         bGPDpalettecolor bgpdpalettecolor = ...;
         CPointer<Object> p = bgpdpalettecolor.__dna__addressof(bGPDpalettecolor.__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'.

        Field Documentation

        Blender Source Code

        Padding for compiler alignment error.

        Pointer Arithmetics

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

         bGPDpalettecolor bgpdpalettecolor = ...;
         CPointer<Object> p = bgpdpalettecolor.__dna__addressof(bGPDpalettecolor.__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

      • bGPDpalettecolor

        public bGPDpalettecolor​(long __address,
                                Block __block,
                                BlockTable __blockTable)
    • Method Detail

      • getInfo

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

        Field Documentation

        Blender Source Code

        Color 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

        Color name. Must be unique.

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

        public CArrayFacade<java.lang.Float> getColor()
                                               throws java.io.IOException
        Get method for struct member 'color'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__color
      • setColor

        public void setColor​(CArrayFacade<java.lang.Float> color)
                      throws java.io.IOException
        Set method for struct member 'color'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__color
      • getFill

        public CArrayFacade<java.lang.Float> getFill()
                                              throws java.io.IOException
        Get method for struct member 'fill'.

        Field Documentation

        Blender Source Code

        Color that should be used for drawing "fills" for strokes.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__fill
      • setFill

        public void setFill​(CArrayFacade<java.lang.Float> fill)
                     throws java.io.IOException
        Set method for struct member 'fill'.

        Field Documentation

        Blender Source Code

        Color that should be used for drawing "fills" for strokes.

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

        public short getFlag()
                      throws java.io.IOException
        Get method for struct member 'flag'.

        Field Documentation

        Blender Source Code

        Settings for palette color.

        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'.

        Field Documentation

        Blender Source Code

        Settings for palette color.

        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'.

        Field Documentation

        Blender Source Code

        Padding for compiler alignment error.

        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'.

        Field Documentation

        Blender Source Code

        Padding for compiler alignment error.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad