Class Text


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         Text text = ...;
         CPointer<Object> p = text.__dna__addressof(Text.__DNA__FIELD__id);
         CPointer<ID> p_id = p.cast(new Class[]{ID.class});
         

        Metadata

        • Field: 'id'
        • Signature: 'ID'
        • Actual Size (32bit/64bit): 152/192
      • __DNA__FIELD__name

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

        Pointer Arithmetics

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

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

        Metadata

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

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

        Field Documentation

        Blender Source Code

        Python code object for this text (cached result of #Py_CompileStringObject).

        Pointer Arithmetics

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

         Text text = ...;
         CPointer<Object> p = text.__dna__addressof(Text.__DNA__FIELD__compiled);
         CPointer<CPointer<Object>> p_compiled = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

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

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

        Pointer Arithmetics

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

         Text text = ...;
         CPointer<Object> p = text.__dna__addressof(Text.__DNA__FIELD__flags);
         CPointer<Integer> p_flags = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'flags'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD___pad0

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

        Pointer Arithmetics

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

         Text text = ...;
         CPointer<Object> p = text.__dna__addressof(Text.__DNA__FIELD___pad0);
         CPointer<CArrayFacade<Byte>> p__pad0 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

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

        Field Documentation

        Blender Python API

        (read-only) Lines of text

        Pointer Arithmetics

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

         Text text = ...;
         CPointer<Object> p = text.__dna__addressof(Text.__DNA__FIELD__lines);
         CPointer<ListBase> p_lines = p.cast(new Class[]{ListBase.class});
         

        Metadata

        • Field: 'lines'
        • Signature: 'ListBase'
        • Actual Size (32bit/64bit): 8/16
      • __DNA__FIELD__curl

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

        Pointer Arithmetics

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

         Text text = ...;
         CPointer<Object> p = text.__dna__addressof(Text.__DNA__FIELD__curl);
         CPointer<CPointer<TextLine>> p_curl = p.cast(new Class[]{CPointer.class, TextLine.class});
         

        Metadata

        • Field: 'curl'
        • Signature: 'TextLine*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__sell

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

        Pointer Arithmetics

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

         Text text = ...;
         CPointer<Object> p = text.__dna__addressof(Text.__DNA__FIELD__sell);
         CPointer<CPointer<TextLine>> p_sell = p.cast(new Class[]{CPointer.class, TextLine.class});
         

        Metadata

        • Field: 'sell'
        • Signature: 'TextLine*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__curc

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

        Pointer Arithmetics

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

         Text text = ...;
         CPointer<Object> p = text.__dna__addressof(Text.__DNA__FIELD__curc);
         CPointer<Integer> p_curc = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'curc'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__selc

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

        Pointer Arithmetics

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

         Text text = ...;
         CPointer<Object> p = text.__dna__addressof(Text.__DNA__FIELD__selc);
         CPointer<Integer> p_selc = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'selc'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__mtime

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

        Pointer Arithmetics

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

         Text text = ...;
         CPointer<Object> p = text.__dna__addressof(Text.__DNA__FIELD__mtime);
         CPointer<Double> p_mtime = p.cast(new Class[]{Double.class});
         

        Metadata

        • Field: 'mtime'
        • Signature: 'double'
        • Actual Size (32bit/64bit): 8/8
    • Constructor Detail

      • Text

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

        protected Text​(Text that)
    • Method Detail

      • getId

        public ID getId()
                 throws java.io.IOException
        Get method for struct member 'id'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • setId

        public void setId​(ID id)
                   throws java.io.IOException
        Set method for struct member 'id'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • getName

        public CPointer<java.lang.Byte> getName()
                                         throws java.io.IOException
        Get method for struct member 'name'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__name
      • setName

        public void setName​(CPointer<java.lang.Byte> name)
                     throws java.io.IOException
        Set method for struct member 'name'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__name
      • getCompiled

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

        Field Documentation

        Blender Source Code

        Python code object for this text (cached result of #Py_CompileStringObject).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__compiled
      • setCompiled

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

        Field Documentation

        Blender Source Code

        Python code object for this text (cached result of #Py_CompileStringObject).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__compiled
      • getFlags

        public int getFlags()
                     throws java.io.IOException
        Get method for struct member 'flags'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flags
      • setFlags

        public void setFlags​(int flags)
                      throws java.io.IOException
        Set method for struct member 'flags'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flags
      • get_pad0

        public CArrayFacade<java.lang.Byte> get_pad0()
                                              throws java.io.IOException
        Get method for struct member '_pad0'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad0
      • set_pad0

        public void set_pad0​(CArrayFacade<java.lang.Byte> _pad0)
                      throws java.io.IOException
        Set method for struct member '_pad0'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad0
      • getLines

        public ListBase getLines()
                          throws java.io.IOException
        Get method for struct member 'lines'.

        Field Documentation

        Blender Python API

        (read-only) Lines of text
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__lines
      • setLines

        public void setLines​(ListBase lines)
                      throws java.io.IOException
        Set method for struct member 'lines'.

        Field Documentation

        Blender Python API

        (read-only) Lines of text
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__lines
      • setCurl

        public void setCurl​(CPointer<TextLine> curl)
                     throws java.io.IOException
        Set method for struct member 'curl'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__curl
      • setSell

        public void setSell​(CPointer<TextLine> sell)
                     throws java.io.IOException
        Set method for struct member 'sell'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__sell
      • getCurc

        public int getCurc()
                    throws java.io.IOException
        Get method for struct member 'curc'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__curc
      • setCurc

        public void setCurc​(int curc)
                     throws java.io.IOException
        Set method for struct member 'curc'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__curc
      • getSelc

        public int getSelc()
                    throws java.io.IOException
        Get method for struct member 'selc'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__selc
      • setSelc

        public void setSelc​(int selc)
                     throws java.io.IOException
        Set method for struct member 'selc'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__selc
      • getMtime

        public double getMtime()
                        throws java.io.IOException
        Get method for struct member 'mtime'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mtime
      • setMtime

        public void setMtime​(double mtime)
                      throws java.io.IOException
        Set method for struct member 'mtime'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mtime
      • __io__addressof

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