Class PaintToolSlot


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

    Class Documentation

    Blender Source Code

    We might want to store other things here.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         PaintToolSlot painttoolslot = ...;
         CPointer<Object> p = painttoolslot.__dna__addressof(PaintToolSlot.__DNA__FIELD__brush);
         CPointer<CPointer<Brush>> p_brush = p.cast(new Class[]{CPointer.class, Brush.class});
         

        Metadata

        • Field: 'brush'
        • Signature: 'Brush*'
        • Actual Size (32bit/64bit): 4/8
    • Constructor Detail

      • PaintToolSlot

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

      • getBrush

        public CPointer<Brush> getBrush()
                                 throws java.io.IOException
        Get method for struct member 'brush'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__brush
      • setBrush

        public void setBrush​(CPointer<Brush> brush)
                      throws java.io.IOException
        Set method for struct member 'brush'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__brush
      • __io__addressof

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