Class NkPanel

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • NkPanel

        public NkPanel​(java.nio.ByteBuffer container)
        Creates a NkPanel instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • type

        public int type()
        Returns the value of the type field.
      • flags

        public int flags()
        Returns the value of the flags field.
      • bounds

        public NkRect bounds()
        Returns a NkRect view of the bounds field.
      • offset_x

        public java.nio.IntBuffer offset_x​(int capacity)
        Returns a IntBuffer view of the data pointed to by the offset_x field.
        capacity - the number of elements in the returned buffer
      • offset_y

        public java.nio.IntBuffer offset_y​(int capacity)
        Returns a IntBuffer view of the data pointed to by the offset_y field.
        capacity - the number of elements in the returned buffer
      • at_x

        public float at_x()
        Returns the value of the at_x field.
      • at_y

        public float at_y()
        Returns the value of the at_y field.
      • max_x

        public float max_x()
        Returns the value of the max_x field.
      • footer_height

        public float footer_height()
        Returns the value of the footer_height field.
      • header_height

        public float header_height()
        Returns the value of the header_height field.
      • border

        public float border()
        Returns the value of the border field.
      • has_scrolling

        public int has_scrolling()
        Returns the value of the has_scrolling field.
      • clip

        public NkRect clip()
        Returns a NkRect view of the clip field.
      • chart

        public NkChart chart()
        Returns a NkChart view of the chart field.
      • parent

        public NkPanel parent()
        Returns a NkPanel view of the struct pointed to by the parent field.
      • create

        public static NkPanel create​(long address)
        Returns a new NkPanel instance for the specified memory address.
      • createSafe

        public static NkPanel createSafe​(long address)
        Like create, but returns null if address is NULL.
      • create

        public static NkPanel.Buffer create​(long address,
                                            int capacity)
        Create a NkPanel.Buffer instance at the specified memory.
        address - the memory address
        capacity - the buffer capacity
      • createSafe

        public static NkPanel.Buffer createSafe​(long address,
                                                int capacity)
        Like create, but returns null if address is NULL.
      • ntype

        public static int ntype​(long struct)
        Unsafe version of type().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().
      • nbounds

        public static NkRect nbounds​(long struct)
        Unsafe version of bounds().
      • noffset_x

        public static java.nio.IntBuffer noffset_x​(long struct,
                                                   int capacity)
        Unsafe version of offset_x.
      • noffset_y

        public static java.nio.IntBuffer noffset_y​(long struct,
                                                   int capacity)
        Unsafe version of offset_y.
      • nat_x

        public static float nat_x​(long struct)
        Unsafe version of at_x().
      • nat_y

        public static float nat_y​(long struct)
        Unsafe version of at_y().
      • nmax_x

        public static float nmax_x​(long struct)
        Unsafe version of max_x().
      • nfooter_height

        public static float nfooter_height​(long struct)
        Unsafe version of footer_height().
      • nheader_height

        public static float nheader_height​(long struct)
        Unsafe version of header_height().
      • nborder

        public static float nborder​(long struct)
        Unsafe version of border().
      • nhas_scrolling

        public static int nhas_scrolling​(long struct)
        Unsafe version of has_scrolling().
      • nclip

        public static NkRect nclip​(long struct)
        Unsafe version of clip().
      • nrow

        public static NkRowLayout nrow​(long struct)
        Unsafe version of row().
      • nchart

        public static NkChart nchart​(long struct)
        Unsafe version of chart().
      • nparent

        public static NkPanel nparent​(long struct)
        Unsafe version of parent().