Class WorkSpaceInstanceHook


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

    Class Documentation

    Blender Source Code

    Little wrapper to store data that is going to be per window, but coming from the workspace. It allows us to keep workspace and window data completely separate.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         WorkSpaceInstanceHook workspaceinstancehook = ...;
         CPointer<Object> p = workspaceinstancehook.__dna__addressof(WorkSpaceInstanceHook.__DNA__FIELD__active);
         CPointer<CPointer<WorkSpace>> p_active = p.cast(new Class[]{CPointer.class, WorkSpace.class});
         

        Metadata

        • Field: 'active'
        • Signature: 'WorkSpace*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__act_layout

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

        Pointer Arithmetics

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

         WorkSpaceInstanceHook workspaceinstancehook = ...;
         CPointer<Object> p = workspaceinstancehook.__dna__addressof(WorkSpaceInstanceHook.__DNA__FIELD__act_layout);
         CPointer<CPointer<WorkSpaceLayout>> p_act_layout = p.cast(new Class[]{CPointer.class, WorkSpaceLayout.class});
         

        Metadata

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

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

        Field Documentation

        Blender Source Code

        Needed because we can't change work-spaces/layouts in running handler loop, it would break context.

        Pointer Arithmetics

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

         WorkSpaceInstanceHook workspaceinstancehook = ...;
         CPointer<Object> p = workspaceinstancehook.__dna__addressof(WorkSpaceInstanceHook.__DNA__FIELD__temp_workspace_store);
         CPointer<CPointer<WorkSpace>> p_temp_workspace_store = p.cast(new Class[]{CPointer.class, WorkSpace.class});
         

        Metadata

        • Field: 'temp_workspace_store'
        • Signature: 'WorkSpace*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__temp_layout_store

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

        Pointer Arithmetics

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

         WorkSpaceInstanceHook workspaceinstancehook = ...;
         CPointer<Object> p = workspaceinstancehook.__dna__addressof(WorkSpaceInstanceHook.__DNA__FIELD__temp_layout_store);
         CPointer<CPointer<WorkSpaceLayout>> p_temp_layout_store = p.cast(new Class[]{CPointer.class, WorkSpaceLayout.class});
         

        Metadata

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

      • WorkSpaceInstanceHook

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

      • setActive

        public void setActive​(CPointer<WorkSpace> active)
                       throws java.io.IOException
        Set method for struct member 'active'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__active
      • getTemp_workspace_store

        public CPointer<WorkSpace> getTemp_workspace_store()
                                                    throws java.io.IOException
        Get method for struct member 'temp_workspace_store'.

        Field Documentation

        Blender Source Code

        Needed because we can't change work-spaces/layouts in running handler loop, it would break context.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__temp_workspace_store
      • setTemp_workspace_store

        public void setTemp_workspace_store​(CPointer<WorkSpace> temp_workspace_store)
                                     throws java.io.IOException
        Set method for struct member 'temp_workspace_store'.

        Field Documentation

        Blender Source Code

        Needed because we can't change work-spaces/layouts in running handler loop, it would break context.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__temp_workspace_store