Class TextBox


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         TextBox textbox = ...;
         CPointer<Object> p = textbox.__dna__addressof(TextBox.__DNA__FIELD__x);
         CPointer<Float> p_x = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'x'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__y

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

        Pointer Arithmetics

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

         TextBox textbox = ...;
         CPointer<Object> p = textbox.__dna__addressof(TextBox.__DNA__FIELD__y);
         CPointer<Float> p_y = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'y'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__w

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

        Pointer Arithmetics

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

         TextBox textbox = ...;
         CPointer<Object> p = textbox.__dna__addressof(TextBox.__DNA__FIELD__w);
         CPointer<Float> p_w = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'w'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__h

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

        Pointer Arithmetics

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

         TextBox textbox = ...;
         CPointer<Object> p = textbox.__dna__addressof(TextBox.__DNA__FIELD__h);
         CPointer<Float> p_h = p.cast(new Class[]{Float.class});
         

        Metadata

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

      • TextBox

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

        protected TextBox​(TextBox that)
    • Method Detail

      • getX

        public float getX()
                   throws java.io.IOException
        Get method for struct member 'x'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__x
      • setX

        public void setX​(float x)
                  throws java.io.IOException
        Set method for struct member 'x'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__x
      • getY

        public float getY()
                   throws java.io.IOException
        Get method for struct member 'y'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__y
      • setY

        public void setY​(float y)
                  throws java.io.IOException
        Set method for struct member 'y'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__y
      • getW

        public float getW()
                   throws java.io.IOException
        Get method for struct member 'w'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__w
      • setW

        public void setW​(float w)
                  throws java.io.IOException
        Set method for struct member 'w'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__w
      • getH

        public float getH()
                   throws java.io.IOException
        Get method for struct member 'h'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__h
      • setH

        public void setH​(float h)
                  throws java.io.IOException
        Set method for struct member 'h'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__h
      • __io__addressof

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