Class FileGlobal


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

    Class Documentation

    Java .Blend

    FileGlobal stores a part of the current user-interface settings at the moment of saving, and the file-specific settings.

    Blender Source Code

    FileGlobal stores a part of the current user-interface settings at the moment of saving, and the file-specific settings.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        Needs to be here, for human fileformat recognition (keep first!).

        Pointer Arithmetics

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

         FileGlobal fileglobal = ...;
         CPointer<Object> p = fileglobal.__dna__addressof(FileGlobal.__DNA__FIELD__subvstr);
         CPointer<CArrayFacade<Byte>> p_subvstr = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

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

        Pointer Arithmetics

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

         FileGlobal fileglobal = ...;
         CPointer<Object> p = fileglobal.__dna__addressof(FileGlobal.__DNA__FIELD__subversion);
         CPointer<Short> p_subversion = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'subversion'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__minversion

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

        Pointer Arithmetics

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

         FileGlobal fileglobal = ...;
         CPointer<Object> p = fileglobal.__dna__addressof(FileGlobal.__DNA__FIELD__minversion);
         CPointer<Short> p_minversion = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'minversion'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__minsubversion

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

        Pointer Arithmetics

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

         FileGlobal fileglobal = ...;
         CPointer<Object> p = fileglobal.__dna__addressof(FileGlobal.__DNA__FIELD__minsubversion);
         CPointer<Short> p_minsubversion = p.cast(new Class[]{Short.class});
         

        Metadata

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

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

        Metadata

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

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

        Pointer Arithmetics

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

         FileGlobal fileglobal = ...;
         CPointer<Object> p = fileglobal.__dna__addressof(FileGlobal.__DNA__FIELD__curscreen);
         CPointer<CPointer<bScreen>> p_curscreen = p.cast(new Class[]{CPointer.class, bScreen.class});
         

        Metadata

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

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

        Pointer Arithmetics

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

         FileGlobal fileglobal = ...;
         CPointer<Object> p = fileglobal.__dna__addressof(FileGlobal.__DNA__FIELD__curscene);
         CPointer<CPointer<Scene>> p_curscene = p.cast(new Class[]{CPointer.class, Scene.class});
         

        Metadata

        • Field: 'curscene'
        • Signature: 'Scene*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__cur_view_layer

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

        Pointer Arithmetics

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

         FileGlobal fileglobal = ...;
         CPointer<Object> p = fileglobal.__dna__addressof(FileGlobal.__DNA__FIELD__cur_view_layer);
         CPointer<CPointer<ViewLayer>> p_cur_view_layer = p.cast(new Class[]{CPointer.class, ViewLayer.class});
         

        Metadata

        • Field: 'cur_view_layer'
        • Signature: 'ViewLayer*'
        • Actual Size (32bit/64bit): 4/8
      • __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:

         FileGlobal fileglobal = ...;
         CPointer<Object> p = fileglobal.__dna__addressof(FileGlobal.__DNA__FIELD___pad1);
         CPointer<CPointer<Object>> p__pad1 = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: '_pad1'
        • Signature: 'void*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__fileflags

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

        Field Documentation

        Java .Blend

        Values

        • G_AUTOPACK (1 << 0)
        • G_FILE_COMPRESS (1 << 1)
        • G_FILE_AUTOPLAY (1 << 2)
        • G_FILE_ENABLE_ALL_FRAMES (1 << 3): deprecated
        • G_FILE_SHOW_DEBUG_PROPS (1 << 4): deprecated
        • G_FILE_SHOW_FRAMERATE (1 << 5): deprecated
        • G_FILE_USERPREFS (1 << 9)
        • G_FILE_NO_UI (1 << 10)
        • G_FILE_GAME_MAT (1 << 12): deprecated
        • G_FILE_SHOW_PHYSICS (1 << 14): deprecated
        • G_FILE_GAME_MAT_GLSL (1 << 15): deprecated
        • G_FILE_GLSL_NO_SHADERS (1 << 17): deprecated
        • G_FILE_GLSL_NO_SHADOWS (1 << 18): deprecated
        • G_FILE_GLSL_NO_RAMPS (1 << 19): deprecated
        • G_FILE_GLSL_NO_NODES (1 << 20): deprecated
        • G_FILE_GLSL_NO_EXTRA_TEX (1 << 21): deprecated
        • G_FILE_IGNORE_DEPRECATION_WARNINGS (1 << 22): deprecated
        • G_FILE_RECOVER (1 << 23)
        • G_FILE_RELATIVE_REMAP (1 << 24)
        • G_FILE_HISTORY (1 << 25)
        • G_FILE_MESH_COMPAT (1 << 26)
        • G_FILE_SAVE_COPY (1 << 27)
        • G_FILE_GLSL_NO_ENV_LIGHTING (1 << 28)

        Pointer Arithmetics

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

         FileGlobal fileglobal = ...;
         CPointer<Object> p = fileglobal.__dna__addressof(FileGlobal.__DNA__FIELD__fileflags);
         CPointer<Integer> p_fileflags = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'fileflags'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__globalf

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

        Pointer Arithmetics

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

         FileGlobal fileglobal = ...;
         CPointer<Object> p = fileglobal.__dna__addressof(FileGlobal.__DNA__FIELD__globalf);
         CPointer<Integer> p_globalf = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'globalf'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__build_commit_timestamp

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

        Field Documentation

        Java .Blend

        time when code of the blender binary was commit. Provides more detail to version info.

        Blender Source Code

        Commit timestamp from buildinfo.

        Pointer Arithmetics

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

         FileGlobal fileglobal = ...;
         CPointer<Object> p = fileglobal.__dna__addressof(FileGlobal.__DNA__FIELD__build_commit_timestamp);
         CPointer<int64> p_build_commit_timestamp = p.cast(new Class[]{int64.class});
         

        Metadata

        • Field: 'build_commit_timestamp'
        • Signature: 'uint64_t'
        • Actual Size (32bit/64bit): 8/8
      • __DNA__FIELD__build_hash

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

        Field Documentation

        Java .Blend

        unique identifier from build info

        Blender Source Code

        Hash from buildinfo.

        Pointer Arithmetics

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

         FileGlobal fileglobal = ...;
         CPointer<Object> p = fileglobal.__dna__addressof(FileGlobal.__DNA__FIELD__build_hash);
         CPointer<CArrayFacade<Byte>> p_build_hash = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'build_hash'
        • Signature: 'char[16]'
        • Actual Size (32bit/64bit): 16/16
      • __DNA__FIELD__filename

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

        Field Documentation

        Blender Source Code

        File path where this was saved, for recover (1024 = FILE_MAX).

        Pointer Arithmetics

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

         FileGlobal fileglobal = ...;
         CPointer<Object> p = fileglobal.__dna__addressof(FileGlobal.__DNA__FIELD__filename);
         CPointer<CArrayFacade<Byte>> p_filename = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

      • FileGlobal

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

        protected FileGlobal​(FileGlobal that)
    • Method Detail

      • getSubvstr

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

        Field Documentation

        Blender Source Code

        Needs to be here, for human fileformat recognition (keep first!).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__subvstr
      • setSubvstr

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

        Field Documentation

        Blender Source Code

        Needs to be here, for human fileformat recognition (keep first!).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__subvstr
      • getSubversion

        public short getSubversion()
                            throws java.io.IOException
        Get method for struct member 'subversion'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__subversion
      • setSubversion

        public void setSubversion​(short subversion)
                           throws java.io.IOException
        Set method for struct member 'subversion'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__subversion
      • getMinversion

        public short getMinversion()
                            throws java.io.IOException
        Get method for struct member 'minversion'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__minversion
      • setMinversion

        public void setMinversion​(short minversion)
                           throws java.io.IOException
        Set method for struct member 'minversion'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__minversion
      • getMinsubversion

        public short getMinsubversion()
                               throws java.io.IOException
        Get method for struct member 'minsubversion'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__minsubversion
      • setMinsubversion

        public void setMinsubversion​(short minsubversion)
                              throws java.io.IOException
        Set method for struct member 'minsubversion'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__minsubversion
      • 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
      • setCurscreen

        public void setCurscreen​(CPointer<bScreen> curscreen)
                          throws java.io.IOException
        Set method for struct member 'curscreen'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__curscreen
      • getCurscene

        public CPointer<Scene> getCurscene()
                                    throws java.io.IOException
        Get method for struct member 'curscene'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__curscene
      • setCurscene

        public void setCurscene​(CPointer<Scene> curscene)
                         throws java.io.IOException
        Set method for struct member 'curscene'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__curscene
      • setCur_view_layer

        public void setCur_view_layer​(CPointer<ViewLayer> cur_view_layer)
                               throws java.io.IOException
        Set method for struct member 'cur_view_layer'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cur_view_layer
      • get_pad1

        public CPointer<java.lang.Object> 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​(CPointer<java.lang.Object> _pad1)
                      throws java.io.IOException
        Set method for struct member '_pad1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad1
      • getFileflags

        public int getFileflags()
                         throws java.io.IOException
        Get method for struct member 'fileflags'.

        Field Documentation

        Java .Blend

        Values

        • G_AUTOPACK (1 << 0)
        • G_FILE_COMPRESS (1 << 1)
        • G_FILE_AUTOPLAY (1 << 2)
        • G_FILE_ENABLE_ALL_FRAMES (1 << 3): deprecated
        • G_FILE_SHOW_DEBUG_PROPS (1 << 4): deprecated
        • G_FILE_SHOW_FRAMERATE (1 << 5): deprecated
        • G_FILE_USERPREFS (1 << 9)
        • G_FILE_NO_UI (1 << 10)
        • G_FILE_GAME_MAT (1 << 12): deprecated
        • G_FILE_SHOW_PHYSICS (1 << 14): deprecated
        • G_FILE_GAME_MAT_GLSL (1 << 15): deprecated
        • G_FILE_GLSL_NO_SHADERS (1 << 17): deprecated
        • G_FILE_GLSL_NO_SHADOWS (1 << 18): deprecated
        • G_FILE_GLSL_NO_RAMPS (1 << 19): deprecated
        • G_FILE_GLSL_NO_NODES (1 << 20): deprecated
        • G_FILE_GLSL_NO_EXTRA_TEX (1 << 21): deprecated
        • G_FILE_IGNORE_DEPRECATION_WARNINGS (1 << 22): deprecated
        • G_FILE_RECOVER (1 << 23)
        • G_FILE_RELATIVE_REMAP (1 << 24)
        • G_FILE_HISTORY (1 << 25)
        • G_FILE_MESH_COMPAT (1 << 26)
        • G_FILE_SAVE_COPY (1 << 27)
        • G_FILE_GLSL_NO_ENV_LIGHTING (1 << 28)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__fileflags
      • setFileflags

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

        Field Documentation

        Java .Blend

        Values

        • G_AUTOPACK (1 << 0)
        • G_FILE_COMPRESS (1 << 1)
        • G_FILE_AUTOPLAY (1 << 2)
        • G_FILE_ENABLE_ALL_FRAMES (1 << 3): deprecated
        • G_FILE_SHOW_DEBUG_PROPS (1 << 4): deprecated
        • G_FILE_SHOW_FRAMERATE (1 << 5): deprecated
        • G_FILE_USERPREFS (1 << 9)
        • G_FILE_NO_UI (1 << 10)
        • G_FILE_GAME_MAT (1 << 12): deprecated
        • G_FILE_SHOW_PHYSICS (1 << 14): deprecated
        • G_FILE_GAME_MAT_GLSL (1 << 15): deprecated
        • G_FILE_GLSL_NO_SHADERS (1 << 17): deprecated
        • G_FILE_GLSL_NO_SHADOWS (1 << 18): deprecated
        • G_FILE_GLSL_NO_RAMPS (1 << 19): deprecated
        • G_FILE_GLSL_NO_NODES (1 << 20): deprecated
        • G_FILE_GLSL_NO_EXTRA_TEX (1 << 21): deprecated
        • G_FILE_IGNORE_DEPRECATION_WARNINGS (1 << 22): deprecated
        • G_FILE_RECOVER (1 << 23)
        • G_FILE_RELATIVE_REMAP (1 << 24)
        • G_FILE_HISTORY (1 << 25)
        • G_FILE_MESH_COMPAT (1 << 26)
        • G_FILE_SAVE_COPY (1 << 27)
        • G_FILE_GLSL_NO_ENV_LIGHTING (1 << 28)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__fileflags
      • getGlobalf

        public int getGlobalf()
                       throws java.io.IOException
        Get method for struct member 'globalf'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__globalf
      • setGlobalf

        public void setGlobalf​(int globalf)
                        throws java.io.IOException
        Set method for struct member 'globalf'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__globalf
      • getBuild_commit_timestamp

        public long getBuild_commit_timestamp()
                                       throws java.io.IOException
        Get method for struct member 'build_commit_timestamp'.

        Field Documentation

        Java .Blend

        time when code of the blender binary was commit. Provides more detail to version info.

        Blender Source Code

        Commit timestamp from buildinfo.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__build_commit_timestamp
      • setBuild_commit_timestamp

        public void setBuild_commit_timestamp​(long build_commit_timestamp)
                                       throws java.io.IOException
        Set method for struct member 'build_commit_timestamp'.

        Field Documentation

        Java .Blend

        time when code of the blender binary was commit. Provides more detail to version info.

        Blender Source Code

        Commit timestamp from buildinfo.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__build_commit_timestamp
      • getBuild_hash

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

        Field Documentation

        Java .Blend

        unique identifier from build info

        Blender Source Code

        Hash from buildinfo.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__build_hash
      • setBuild_hash

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

        Field Documentation

        Java .Blend

        unique identifier from build info

        Blender Source Code

        Hash from buildinfo.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__build_hash
      • getFilename

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

        Field Documentation

        Blender Source Code

        File path where this was saved, for recover (1024 = FILE_MAX).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__filename
      • setFilename

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

        Field Documentation

        Blender Source Code

        File path where this was saved, for recover (1024 = FILE_MAX).

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

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