Class ConsoleLine


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

    Class Documentation

    Blender Source Code

    Console content.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        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:

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

        Metadata

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

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

        Metadata

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

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

        Field Documentation

        Blender Source Code

        Keep these 3 vars so as to share free, realloc functions. Allocated length.

        Pointer Arithmetics

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

         ConsoleLine consoleline = ...;
         CPointer<Object> p = consoleline.__dna__addressof(ConsoleLine.__DNA__FIELD__len_alloc);
         CPointer<Integer> p_len_alloc = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'len_alloc'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__len

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

        Field Documentation

        Blender Source Code

        Real len - strlen().

        Pointer Arithmetics

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

         ConsoleLine consoleline = ...;
         CPointer<Object> p = consoleline.__dna__addressof(ConsoleLine.__DNA__FIELD__len);
         CPointer<Integer> p_len = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'len'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__line

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

        Pointer Arithmetics

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

         ConsoleLine consoleline = ...;
         CPointer<Object> p = consoleline.__dna__addressof(ConsoleLine.__DNA__FIELD__line);
         CPointer<CPointer<Byte>> p_line = p.cast(new Class[]{CPointer.class, Byte.class});
         

        Metadata

        • Field: 'line'
        • Signature: 'char*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__cursor

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

        Pointer Arithmetics

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

         ConsoleLine consoleline = ...;
         CPointer<Object> p = consoleline.__dna__addressof(ConsoleLine.__DNA__FIELD__cursor);
         CPointer<Integer> p_cursor = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'cursor'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__type

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

        Field Documentation

        Blender Python API

        Console line type when used in scrollback

        Blender Source Code

        Only for use when in the 'scrollback' listbase.

        Pointer Arithmetics

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

         ConsoleLine consoleline = ...;
         CPointer<Object> p = consoleline.__dna__addressof(ConsoleLine.__DNA__FIELD__type);
         CPointer<Integer> p_type = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'type'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
    • Constructor Detail

      • ConsoleLine

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

        protected ConsoleLine​(ConsoleLine that)
    • Method Detail

      • getLen_alloc

        public int getLen_alloc()
                         throws java.io.IOException
        Get method for struct member 'len_alloc'.

        Field Documentation

        Blender Source Code

        Keep these 3 vars so as to share free, realloc functions. Allocated length.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__len_alloc
      • setLen_alloc

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

        Field Documentation

        Blender Source Code

        Keep these 3 vars so as to share free, realloc functions. Allocated length.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__len_alloc
      • getLen

        public int getLen()
                   throws java.io.IOException
        Get method for struct member 'len'.

        Field Documentation

        Blender Source Code

        Real len - strlen().

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__len
      • setLen

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

        Field Documentation

        Blender Source Code

        Real len - strlen().

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__len
      • getLine

        public CPointer<java.lang.Byte> getLine()
                                         throws java.io.IOException
        Get method for struct member 'line'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__line
      • setLine

        public void setLine​(CPointer<java.lang.Byte> line)
                     throws java.io.IOException
        Set method for struct member 'line'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__line
      • getCursor

        public int getCursor()
                      throws java.io.IOException
        Get method for struct member 'cursor'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cursor
      • setCursor

        public void setCursor​(int cursor)
                       throws java.io.IOException
        Set method for struct member 'cursor'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cursor
      • getType

        public int getType()
                    throws java.io.IOException
        Get method for struct member 'type'.

        Field Documentation

        Blender Python API

        Console line type when used in scrollback

        Blender Source Code

        Only for use when in the 'scrollback' listbase.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • setType

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

        Field Documentation

        Blender Python API

        Console line type when used in scrollback

        Blender Source Code

        Only for use when in the 'scrollback' listbase.

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

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