Class PreviewImage


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        All values of 2 are really NUM_ICON_SIZES

        Pointer Arithmetics

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

         PreviewImage previewimage = ...;
         CPointer<Object> p = previewimage.__dna__addressof(PreviewImage.__DNA__FIELD__w);
         CPointer<CArrayFacade<Integer>> p_w = p.cast(new Class[]{CArrayFacade.class, Integer.class});
         

        Metadata

        • Field: 'w'
        • Signature: 'int[2]'
        • Actual Size (32bit/64bit): 8/8
      • __DNA__FIELD__h

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

        Pointer Arithmetics

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

         PreviewImage previewimage = ...;
         CPointer<Object> p = previewimage.__dna__addressof(PreviewImage.__DNA__FIELD__h);
         CPointer<CArrayFacade<Integer>> p_h = p.cast(new Class[]{CArrayFacade.class, Integer.class});
         

        Metadata

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

         PreviewImage previewimage = ...;
         CPointer<Object> p = previewimage.__dna__addressof(PreviewImage.__DNA__FIELD__flag);
         CPointer<CArrayFacade<Short>> p_flag = p.cast(new Class[]{CArrayFacade.class, Short.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'short[2]'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__changed_timestamp

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

        Pointer Arithmetics

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

         PreviewImage previewimage = ...;
         CPointer<Object> p = previewimage.__dna__addressof(PreviewImage.__DNA__FIELD__changed_timestamp);
         CPointer<CArrayFacade<Short>> p_changed_timestamp = p.cast(new Class[]{CArrayFacade.class, Short.class});
         

        Metadata

        • Field: 'changed_timestamp'
        • Signature: 'short[2]'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__rect

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

        Pointer Arithmetics

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

         PreviewImage previewimage = ...;
         CPointer<Object> p = previewimage.__dna__addressof(PreviewImage.__DNA__FIELD__rect);
         CPointer<CArrayFacade<CPointer<Integer>>> p_rect = p.cast(new Class[]{CArrayFacade.class, CPointer.class, Integer.class});
         

        Metadata

        • Field: 'rect'
        • Signature: 'int*[2]'
        • Actual Size (32bit/64bit): 8/16
      • __DNA__FIELD__gputexture

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

        Field Documentation

        Blender Source Code

        Runtime-only data.

        Pointer Arithmetics

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

         PreviewImage previewimage = ...;
         CPointer<Object> p = previewimage.__dna__addressof(PreviewImage.__DNA__FIELD__gputexture);
         CPointer<CArrayFacade<CPointer<Object>>> p_gputexture = p.cast(new Class[]{CArrayFacade.class, CPointer.class, Object.class});
         

        Metadata

        • Field: 'gputexture'
        • Signature: 'GPUTexture*[2]'
        • Actual Size (32bit/64bit): 8/16
      • __DNA__FIELD__icon_id

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

        Field Documentation

        Blender Source Code

        Used by previews outside of ID context.

        Pointer Arithmetics

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

         PreviewImage previewimage = ...;
         CPointer<Object> p = previewimage.__dna__addressof(PreviewImage.__DNA__FIELD__icon_id);
         CPointer<Integer> p_icon_id = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'icon_id'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__tag

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

        Field Documentation

        Blender Source Code

        Runtime data.

        Pointer Arithmetics

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

         PreviewImage previewimage = ...;
         CPointer<Object> p = previewimage.__dna__addressof(PreviewImage.__DNA__FIELD__tag);
         CPointer<Short> p_tag = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'tag'
        • 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:

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

        Metadata

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

      • PreviewImage

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

        protected PreviewImage​(PreviewImage that)
    • Method Detail

      • getW

        public CArrayFacade<java.lang.Integer> getW()
                                             throws java.io.IOException
        Get method for struct member 'w'.

        Field Documentation

        Blender Source Code

        All values of 2 are really NUM_ICON_SIZES

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__w
      • setW

        public void setW​(CArrayFacade<java.lang.Integer> w)
                  throws java.io.IOException
        Set method for struct member 'w'.

        Field Documentation

        Blender Source Code

        All values of 2 are really NUM_ICON_SIZES

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__w
      • getH

        public CArrayFacade<java.lang.Integer> getH()
                                             throws java.io.IOException
        Get method for struct member 'h'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__h
      • setH

        public void setH​(CArrayFacade<java.lang.Integer> h)
                  throws java.io.IOException
        Set method for struct member 'h'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__h
      • getFlag

        public CArrayFacade<java.lang.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​(CArrayFacade<java.lang.Short> flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • getChanged_timestamp

        public CArrayFacade<java.lang.Short> getChanged_timestamp()
                                                           throws java.io.IOException
        Get method for struct member 'changed_timestamp'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__changed_timestamp
      • setChanged_timestamp

        public void setChanged_timestamp​(CArrayFacade<java.lang.Short> changed_timestamp)
                                  throws java.io.IOException
        Set method for struct member 'changed_timestamp'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__changed_timestamp
      • getRect

        public CArrayFacade<CPointer<java.lang.Integer>> getRect()
                                                          throws java.io.IOException
        Get method for struct member 'rect'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rect
      • setRect

        public void setRect​(CArrayFacade<CPointer<java.lang.Integer>> rect)
                     throws java.io.IOException
        Set method for struct member 'rect'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rect
      • getGputexture

        public CArrayFacade<CPointer<java.lang.Object>> getGputexture()
                                                               throws java.io.IOException
        Get method for struct member 'gputexture'.

        Field Documentation

        Blender Source Code

        Runtime-only data.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__gputexture
      • setGputexture

        public void setGputexture​(CArrayFacade<CPointer<java.lang.Object>> gputexture)
                           throws java.io.IOException
        Set method for struct member 'gputexture'.

        Field Documentation

        Blender Source Code

        Runtime-only data.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__gputexture
      • getIcon_id

        public int getIcon_id()
                       throws java.io.IOException
        Get method for struct member 'icon_id'.

        Field Documentation

        Blender Source Code

        Used by previews outside of ID context.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__icon_id
      • setIcon_id

        public void setIcon_id​(int icon_id)
                        throws java.io.IOException
        Set method for struct member 'icon_id'.

        Field Documentation

        Blender Source Code

        Used by previews outside of ID context.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__icon_id
      • getTag

        public short getTag()
                     throws java.io.IOException
        Get method for struct member 'tag'.

        Field Documentation

        Blender Source Code

        Runtime data.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tag
      • setTag

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

        Field Documentation

        Blender Source Code

        Runtime data.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tag
      • 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<PreviewImage> __io__addressof()
        Instantiates a pointer on this instance.