Class uiFont


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

    Class Documentation

    Blender Source Code

    default fonts to load/initialize first font is the default (index 0), others optional

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        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:

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

        Metadata

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

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

        Metadata

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

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

        Field Documentation

        Blender Source Code

        1024 = FILE_MAX.

        Pointer Arithmetics

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

         uiFont uifont = ...;
         CPointer<Object> p = uifont.__dna__addressof(uiFont.__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
      • __DNA__FIELD__blf_id

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

        Field Documentation

        Blender Source Code

        From blfont lib.

        Pointer Arithmetics

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

         uiFont uifont = ...;
         CPointer<Object> p = uifont.__dna__addressof(uiFont.__DNA__FIELD__blf_id);
         CPointer<Short> p_blf_id = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'blf_id'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__uifont_id

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

        Field Documentation

        Blender Source Code

        Own id (eUIFont_ID).

        Pointer Arithmetics

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

         uiFont uifont = ...;
         CPointer<Object> p = uifont.__dna__addressof(uiFont.__DNA__FIELD__uifont_id);
         CPointer<Short> p_uifont_id = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'uifont_id'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__r_to_l

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

        Field Documentation

        Blender Source Code

        Fonts that read from left to right.

        Pointer Arithmetics

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

         uiFont uifont = ...;
         CPointer<Object> p = uifont.__dna__addressof(uiFont.__DNA__FIELD__r_to_l);
         CPointer<Short> p_r_to_l = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'r_to_l'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __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:

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

        Metadata

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

      • uiFont

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

        protected uiFont​(uiFont that)
    • Method Detail

      • getNext

        public CPointer<uiFont> getNext()
                                 throws java.io.IOException
        Get method for struct member 'next'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__next
      • setNext

        public void setNext​(CPointer<uiFont> next)
                     throws java.io.IOException
        Set method for struct member 'next'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__next
      • getPrev

        public CPointer<uiFont> getPrev()
                                 throws java.io.IOException
        Get method for struct member 'prev'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prev
      • setPrev

        public void setPrev​(CPointer<uiFont> prev)
                     throws java.io.IOException
        Set method for struct member 'prev'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prev
      • getFilename

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

        Field Documentation

        Blender Source Code

        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

        1024 = FILE_MAX.

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

        public short getBlf_id()
                        throws java.io.IOException
        Get method for struct member 'blf_id'.

        Field Documentation

        Blender Source Code

        From blfont lib.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__blf_id
      • setBlf_id

        public void setBlf_id​(short blf_id)
                       throws java.io.IOException
        Set method for struct member 'blf_id'.

        Field Documentation

        Blender Source Code

        From blfont lib.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__blf_id
      • getUifont_id

        public short getUifont_id()
                           throws java.io.IOException
        Get method for struct member 'uifont_id'.

        Field Documentation

        Blender Source Code

        Own id (eUIFont_ID).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__uifont_id
      • setUifont_id

        public void setUifont_id​(short uifont_id)
                          throws java.io.IOException
        Set method for struct member 'uifont_id'.

        Field Documentation

        Blender Source Code

        Own id (eUIFont_ID).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__uifont_id
      • getR_to_l

        public short getR_to_l()
                        throws java.io.IOException
        Get method for struct member 'r_to_l'.

        Field Documentation

        Blender Source Code

        Fonts that read from left to right.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__r_to_l
      • setR_to_l

        public void setR_to_l​(short r_to_l)
                       throws java.io.IOException
        Set method for struct member 'r_to_l'.

        Field Documentation

        Blender Source Code

        Fonts that read from left to right.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__r_to_l
      • 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
      • __io__addressof

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