Class uiPreview


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

    Class Documentation

    Blender Source Code

    Some preview UI data need to be saved in file.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        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:

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

        Metadata

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

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

        Metadata

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

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

        Field Documentation

        Blender Source Code

        Defined as UI_MAX_NAME_STR.

        Pointer Arithmetics

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

         uiPreview uipreview = ...;
         CPointer<Object> p = uipreview.__dna__addressof(uiPreview.__DNA__FIELD__preview_id);
         CPointer<CArrayFacade<Byte>> p_preview_id = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'preview_id'
        • Signature: 'char[64]'
        • Actual Size (32bit/64bit): 64/64
      • __DNA__FIELD__height

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

        Pointer Arithmetics

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

         uiPreview uipreview = ...;
         CPointer<Object> p = uipreview.__dna__addressof(uiPreview.__DNA__FIELD__height);
         CPointer<Short> p_height = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'height'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD___pad1

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

        Pointer Arithmetics

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

         uiPreview uipreview = ...;
         CPointer<Object> p = uipreview.__dna__addressof(uiPreview.__DNA__FIELD___pad1);
         CPointer<CArrayFacade<Byte>> p__pad1 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

      • uiPreview

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

        protected uiPreview​(uiPreview that)
    • Method Detail

      • setNext

        public void setNext​(CPointer<uiPreview> next)
                     throws java.io.IOException
        Set method for struct member 'next'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__next
      • setPrev

        public void setPrev​(CPointer<uiPreview> prev)
                     throws java.io.IOException
        Set method for struct member 'prev'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prev
      • getPreview_id

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

        Field Documentation

        Blender Source Code

        Defined as UI_MAX_NAME_STR.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__preview_id
      • setPreview_id

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

        Field Documentation

        Blender Source Code

        Defined as UI_MAX_NAME_STR.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__preview_id
      • getHeight

        public short getHeight()
                        throws java.io.IOException
        Get method for struct member 'height'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__height
      • setHeight

        public void setHeight​(short height)
                       throws java.io.IOException
        Set method for struct member 'height'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__height
      • get_pad1

        public CArrayFacade<java.lang.Byte> get_pad1()
                                              throws java.io.IOException
        Get method for struct member '_pad1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad1
      • set_pad1

        public void set_pad1​(CArrayFacade<java.lang.Byte> _pad1)
                      throws java.io.IOException
        Set method for struct member '_pad1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad1
      • __io__addressof

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