Class NkWindow

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • SEQ, NAME, NAME_STRING, FLAGS, BOUNDS, SCROLLBAR, BUFFER, LAYOUT, SCROLLBAR_HIDING_TIMER, PROPERTY, POPUP, EDIT, SCROLLED, TABLES, TABLE_COUNT, NEXT, PREV, PARENT

        The struct member offsets.
    • Constructor Detail

      • NkWindow

        public NkWindow​(java.nio.ByteBuffer container)
        Creates a NkWindow 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
      • seq

        public int seq()
        Returns the value of the seq field.
      • name

        public int name()
        Returns the value of the name field.
      • name_string

        public java.nio.ByteBuffer name_string()
        Returns a ByteBuffer view of the name_string field.
      • name_stringString

        public java.lang.String name_stringString()
        Decodes the null-terminated string stored in the name_string field.
      • flags

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

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

        public NkWindow bounds​(java.util.function.Consumer<NkRect> consumer)
        Passes the bounds field to the specified Consumer.
      • scrollbar

        public NkScroll scrollbar()
        Returns a NkScroll view of the scrollbar field.
      • layout

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

        public float scrollbar_hiding_timer()
        Returns the value of the scrollbar_hiding_timer field.
      • scrolled

        public int scrolled()
        Returns the value of the scrolled field.
      • tables

        public long tables()
        Returns the value of the tables field.
      • table_count

        public int table_count()
        Returns the value of the table_count field.
      • next

        public NkWindow next()
        Returns a NkWindow view of the struct pointed to by the next field.
      • prev

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

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

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

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

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

        @Nullable
        public static NkWindow.Buffer createSafe​(long address,
                                                 int capacity)
        Like create, but returns null if address is NULL.
      • nseq

        public static int nseq​(long struct)
        Unsafe version of seq().
      • nname

        public static int nname​(long struct)
        Unsafe version of name().
      • nname_string

        public static java.nio.ByteBuffer nname_string​(long struct)
        Unsafe version of name_string().
      • nname_stringString

        public static java.lang.String nname_stringString​(long struct)
        Unsafe version of name_stringString().
      • nflags

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

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

        public static NkScroll nscrollbar​(long struct)
        Unsafe version of scrollbar().
      • nlayout

        public static NkPanel nlayout​(long struct)
        Unsafe version of layout().
      • nscrollbar_hiding_timer

        public static float nscrollbar_hiding_timer​(long struct)
        Unsafe version of scrollbar_hiding_timer().
      • nscrolled

        public static int nscrolled​(long struct)
        Unsafe version of scrolled().
      • ntables

        public static long ntables​(long struct)
        Unsafe version of tables().
      • ntable_count

        public static int ntable_count​(long struct)
        Unsafe version of table_count().
      • nnext

        public static NkWindow nnext​(long struct)
        Unsafe version of next().
      • nprev

        public static NkWindow nprev​(long struct)
        Unsafe version of prev().
      • nparent

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