Class WorkSpaceLayout


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

    Class Documentation

    Blender Source Code

    Wrapper for bScreen .

    #bScreens are IDs and thus stored in a main list-base. We also want to store a list-base of them within the workspace (so each workspace can have its own set of screen-layouts) which would mess with the next/prev pointers. So we use this struct to wrap a bScreen pointer with another pair of next/prev pointers.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        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:

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

        Metadata

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

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

        Metadata

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

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

        Pointer Arithmetics

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

         WorkSpaceLayout workspacelayout = ...;
         CPointer<Object> p = workspacelayout.__dna__addressof(WorkSpaceLayout.__DNA__FIELD__screen);
         CPointer<CPointer<bScreen>> p_screen = p.cast(new Class[]{CPointer.class, bScreen.class});
         

        Metadata

        • Field: 'screen'
        • Signature: 'bScreen*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__name

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

        Field Documentation

        Blender Source Code

        The name of this layout, we override the RNA name of the screen with this (but not ID name itself) MAX_NAME.

        Pointer Arithmetics

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

         WorkSpaceLayout workspacelayout = ...;
         CPointer<Object> p = workspacelayout.__dna__addressof(WorkSpaceLayout.__DNA__FIELD__name);
         CPointer<CArrayFacade<Byte>> p_name = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

      • WorkSpaceLayout

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

      • getScreen

        public CPointer<bScreen> getScreen()
                                    throws java.io.IOException
        Get method for struct member 'screen'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__screen
      • setScreen

        public void setScreen​(CPointer<bScreen> screen)
                       throws java.io.IOException
        Set method for struct member 'screen'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__screen
      • getName

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

        Field Documentation

        Blender Source Code

        The name of this layout, we override the RNA name of the screen with this (but not ID name itself) MAX_NAME.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__name
      • setName

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

        Field Documentation

        Blender Source Code

        The name of this layout, we override the RNA name of the screen with this (but not ID name itself) MAX_NAME.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__name