Class Panel_Runtime


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        Applied to Panel.getOfsx() , but saved separately so we can track changes between redraws.

        Pointer Arithmetics

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

         Panel_Runtime panel_runtime = ...;
         CPointer<Object> p = panel_runtime.__dna__addressof(Panel_Runtime.__DNA__FIELD__region_ofsx);
         CPointer<Integer> p_region_ofsx = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'region_ofsx'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __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:

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

        Metadata

        • Field: '_pad'
        • Signature: 'char[4]'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__custom_data_ptr

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

        Field Documentation

        Blender Source Code

        Pointer for storing which data the panel corresponds to. Useful when there can be multiple instances of the same panel type.

        Note

        A panel and its sub-panels share the same custom data pointer. This avoids freeing the same pointer twice when panels are removed.

        A panel and its sub-panels share the same custom data pointer. This avoids freeing the same pointer twice when panels are removed.

        Pointer Arithmetics

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

         Panel_Runtime panel_runtime = ...;
         CPointer<Object> p = panel_runtime.__dna__addressof(Panel_Runtime.__DNA__FIELD__custom_data_ptr);
         CPointer<CPointer<Object>> p_custom_data_ptr = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: 'custom_data_ptr'
        • Signature: 'PointerRNA*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__block

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

        Field Documentation

        Blender Source Code

        Pointer to the panel's block. Useful when changes to panel #uiBlocks need some context from traversal of the panel "tree".

        Pointer Arithmetics

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

         Panel_Runtime panel_runtime = ...;
         CPointer<Object> p = panel_runtime.__dna__addressof(Panel_Runtime.__DNA__FIELD__block);
         CPointer<CPointer<Object>> p_block = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: 'block'
        • Signature: 'uiBlock*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__context

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

        Field Documentation

        Blender Source Code

        Non-owning pointer. The context is stored in the block.

        Pointer Arithmetics

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

         Panel_Runtime panel_runtime = ...;
         CPointer<Object> p = panel_runtime.__dna__addressof(Panel_Runtime.__DNA__FIELD__context);
         CPointer<CPointer<Object>> p_context = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

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

      • Panel_Runtime

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

      • getRegion_ofsx

        public int getRegion_ofsx()
                           throws java.io.IOException
        Get method for struct member 'region_ofsx'.

        Field Documentation

        Blender Source Code

        Applied to Panel.getOfsx() , but saved separately so we can track changes between redraws.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__region_ofsx
      • setRegion_ofsx

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

        Field Documentation

        Blender Source Code

        Applied to Panel.getOfsx() , but saved separately so we can track changes between redraws.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__region_ofsx
      • 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
      • getCustom_data_ptr

        public CPointer<java.lang.Object> getCustom_data_ptr()
                                                      throws java.io.IOException
        Get method for struct member 'custom_data_ptr'.

        Field Documentation

        Blender Source Code

        Pointer for storing which data the panel corresponds to. Useful when there can be multiple instances of the same panel type.

        Note

        A panel and its sub-panels share the same custom data pointer. This avoids freeing the same pointer twice when panels are removed.

        A panel and its sub-panels share the same custom data pointer. This avoids freeing the same pointer twice when panels are removed.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__custom_data_ptr
      • setCustom_data_ptr

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

        Field Documentation

        Blender Source Code

        Pointer for storing which data the panel corresponds to. Useful when there can be multiple instances of the same panel type.

        Note

        A panel and its sub-panels share the same custom data pointer. This avoids freeing the same pointer twice when panels are removed.

        A panel and its sub-panels share the same custom data pointer. This avoids freeing the same pointer twice when panels are removed.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__custom_data_ptr
      • getBlock

        public CPointer<java.lang.Object> getBlock()
                                            throws java.io.IOException
        Get method for struct member 'block'.

        Field Documentation

        Blender Source Code

        Pointer to the panel's block. Useful when changes to panel #uiBlocks need some context from traversal of the panel "tree".

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__block
      • setBlock

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

        Field Documentation

        Blender Source Code

        Pointer to the panel's block. Useful when changes to panel #uiBlocks need some context from traversal of the panel "tree".

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__block
      • getContext

        public CPointer<java.lang.Object> getContext()
                                              throws java.io.IOException
        Get method for struct member 'context'.

        Field Documentation

        Blender Source Code

        Non-owning pointer. The context is stored in the block.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__context
      • setContext

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

        Field Documentation

        Blender Source Code

        Non-owning pointer. The context is stored in the block.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__context
      • __io__addressof

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