Class uiFontStyle


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

    Class Documentation

    Blender Source Code

    This state defines appearance of text.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __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

        Saved in file, 0 is default.

        Pointer Arithmetics

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

         uiFontStyle uifontstyle = ...;
         CPointer<Object> p = uifontstyle.__dna__addressof(uiFontStyle.__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__points

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

        Field Documentation

        Blender Source Code

        Actual size depends on 'global' dpi.

        Pointer Arithmetics

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

         uiFontStyle uifontstyle = ...;
         CPointer<Object> p = uifontstyle.__dna__addressof(uiFontStyle.__DNA__FIELD__points);
         CPointer<Short> p_points = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'points'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__kerning

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

        Field Documentation

        Blender Source Code

        Unfitted or default kerning value.

        Pointer Arithmetics

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

         uiFontStyle uifontstyle = ...;
         CPointer<Object> p = uifontstyle.__dna__addressof(uiFontStyle.__DNA__FIELD__kerning);
         CPointer<Short> p_kerning = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'kerning'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__italic

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

        Field Documentation

        Blender Source Code

        Style hint.

        Pointer Arithmetics

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

         uiFontStyle uifontstyle = ...;
         CPointer<Object> p = uifontstyle.__dna__addressof(uiFontStyle.__DNA__FIELD__italic);
         CPointer<Short> p_italic = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'italic'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__bold

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

        Pointer Arithmetics

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

         uiFontStyle uifontstyle = ...;
         CPointer<Object> p = uifontstyle.__dna__addressof(uiFontStyle.__DNA__FIELD__bold);
         CPointer<Short> p_bold = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'bold'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__shadow

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

        Field Documentation

        Blender Source Code

        Value is amount of pixels blur.

        Pointer Arithmetics

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

         uiFontStyle uifontstyle = ...;
         CPointer<Object> p = uifontstyle.__dna__addressof(uiFontStyle.__DNA__FIELD__shadow);
         CPointer<Short> p_shadow = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'shadow'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__shadx

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

        Field Documentation

        Blender Source Code

        Shadow offset in pixels.

        Pointer Arithmetics

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

         uiFontStyle uifontstyle = ...;
         CPointer<Object> p = uifontstyle.__dna__addressof(uiFontStyle.__DNA__FIELD__shadx);
         CPointer<Short> p_shadx = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'shadx'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__shady

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

        Pointer Arithmetics

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

         uiFontStyle uifontstyle = ...;
         CPointer<Object> p = uifontstyle.__dna__addressof(uiFontStyle.__DNA__FIELD__shady);
         CPointer<Short> p_shady = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'shady'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__shadowalpha

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

        Field Documentation

        Blender Source Code

        Total alpha.

        Pointer Arithmetics

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

         uiFontStyle uifontstyle = ...;
         CPointer<Object> p = uifontstyle.__dna__addressof(uiFontStyle.__DNA__FIELD__shadowalpha);
         CPointer<Float> p_shadowalpha = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'shadowalpha'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__shadowcolor

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

        Field Documentation

        Blender Source Code

        1 value, typically white or black anyway.

        Pointer Arithmetics

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

         uiFontStyle uifontstyle = ...;
         CPointer<Object> p = uifontstyle.__dna__addressof(uiFontStyle.__DNA__FIELD__shadowcolor);
         CPointer<Float> p_shadowcolor = p.cast(new Class[]{Float.class});
         

        Metadata

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

      • uiFontStyle

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

        protected uiFontStyle​(uiFontStyle that)
    • Method Detail

      • getUifont_id

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

        Field Documentation

        Blender Source Code

        Saved in file, 0 is default.

        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

        Saved in file, 0 is default.

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

        public short getPoints()
                        throws java.io.IOException
        Get method for struct member 'points'.

        Field Documentation

        Blender Source Code

        Actual size depends on 'global' dpi.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__points
      • setPoints

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

        Field Documentation

        Blender Source Code

        Actual size depends on 'global' dpi.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__points
      • getKerning

        public short getKerning()
                         throws java.io.IOException
        Get method for struct member 'kerning'.

        Field Documentation

        Blender Source Code

        Unfitted or default kerning value.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__kerning
      • setKerning

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

        Field Documentation

        Blender Source Code

        Unfitted or default kerning value.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__kerning
      • getItalic

        public short getItalic()
                        throws java.io.IOException
        Get method for struct member 'italic'.

        Field Documentation

        Blender Source Code

        Style hint.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__italic
      • setItalic

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

        Field Documentation

        Blender Source Code

        Style hint.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__italic
      • getBold

        public short getBold()
                      throws java.io.IOException
        Get method for struct member 'bold'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__bold
      • setBold

        public void setBold​(short bold)
                     throws java.io.IOException
        Set method for struct member 'bold'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__bold
      • getShadow

        public short getShadow()
                        throws java.io.IOException
        Get method for struct member 'shadow'.

        Field Documentation

        Blender Source Code

        Value is amount of pixels blur.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shadow
      • setShadow

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

        Field Documentation

        Blender Source Code

        Value is amount of pixels blur.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shadow
      • getShadx

        public short getShadx()
                       throws java.io.IOException
        Get method for struct member 'shadx'.

        Field Documentation

        Blender Source Code

        Shadow offset in pixels.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shadx
      • setShadx

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

        Field Documentation

        Blender Source Code

        Shadow offset in pixels.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shadx
      • getShady

        public short getShady()
                       throws java.io.IOException
        Get method for struct member 'shady'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shady
      • setShady

        public void setShady​(short shady)
                      throws java.io.IOException
        Set method for struct member 'shady'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shady
      • getShadowalpha

        public float getShadowalpha()
                             throws java.io.IOException
        Get method for struct member 'shadowalpha'.

        Field Documentation

        Blender Source Code

        Total alpha.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shadowalpha
      • setShadowalpha

        public void setShadowalpha​(float shadowalpha)
                            throws java.io.IOException
        Set method for struct member 'shadowalpha'.

        Field Documentation

        Blender Source Code

        Total alpha.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shadowalpha
      • getShadowcolor

        public float getShadowcolor()
                             throws java.io.IOException
        Get method for struct member 'shadowcolor'.

        Field Documentation

        Blender Source Code

        1 value, typically white or black anyway.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__shadowcolor
      • setShadowcolor

        public void setShadowcolor​(float shadowcolor)
                            throws java.io.IOException
        Set method for struct member 'shadowcolor'.

        Field Documentation

        Blender Source Code

        1 value, typically white or black anyway.

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

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