Class NkPropertyState

  • All Implemented Interfaces:
    org.lwjgl.system.Pointer

    public class NkPropertyState
    extends org.lwjgl.system.Struct

    Layout

    
     struct nk_property_state {
         int active;
         int prev;
         char buffer[NK_MAX_NUMBER_BUFFER];
         int length;
         int cursor;
         int select_start;
         int select_end;
         nk_hash name;
         unsigned int seq;
         unsigned int old;
         int state;
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  NkPropertyState.Buffer
      An array of NkPropertyState structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ACTIVE
      The struct member offsets.
      static int ALIGNOF
      The struct alignment in bytes.
      static int BUFFER
      CURSOR
      LENGTH
      NAME
      OLD
      PREV
      SELECT_END
      SELECT_START
      SEQ
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      static int STATE
      The struct member offsets.
      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      NkPropertyState​(java.nio.ByteBuffer container)
      Creates a NkPropertyState instance at the current position of the specified ByteBuffer container.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int active()
      Returns the value of the active field.
      java.nio.ByteBuffer buffer()
      Returns a ByteBuffer view of the buffer field.
      byte buffer​(int index)
      Returns the value at the specified index of the buffer field.
      static NkPropertyState create​(long address)
      Returns a new NkPropertyState instance for the specified memory address.
      static NkPropertyState.Buffer create​(long address, int capacity)
      Create a NkPropertyState.Buffer instance at the specified memory.
      static NkPropertyState createSafe​(long address)
      Like create, but returns null if address is NULL.
      static NkPropertyState.Buffer createSafe​(long address, int capacity)
      Like create, but returns null if address is NULL.
      int cursor()
      Returns the value of the cursor field.
      int length()
      Returns the value of the length field.
      static int nactive​(long struct)
      Unsafe version of active().
      int name()
      Returns the value of the name field.
      static java.nio.ByteBuffer nbuffer​(long struct)
      Unsafe version of buffer().
      static byte nbuffer​(long struct, int index)
      Unsafe version of buffer.
      static int ncursor​(long struct)
      Unsafe version of cursor().
      static int nlength​(long struct)
      Unsafe version of length().
      static int nname​(long struct)
      Unsafe version of name().
      static int nold​(long struct)
      Unsafe version of old().
      static int nprev​(long struct)
      Unsafe version of prev().
      static int nselect_end​(long struct)
      Unsafe version of select_end().
      static int nselect_start​(long struct)
      Unsafe version of select_start().
      static int nseq​(long struct)
      Unsafe version of seq().
      static int nstate​(long struct)
      Unsafe version of state().
      int old()
      Returns the value of the old field.
      int prev()
      Returns the value of the prev field.
      int select_end()
      Returns the value of the select_end field.
      int select_start()
      Returns the value of the select_start field.
      int seq()
      Returns the value of the seq field.
      int sizeof()  
      int state()
      Returns the value of the state field.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from class org.lwjgl.system.Pointer.Default

        address, equals, hashCode, toString
      • Methods inherited from class org.lwjgl.system.Struct

        clear, free, isNull
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ACTIVE, PREV, BUFFER, LENGTH, CURSOR, SELECT_START, SELECT_END, NAME, SEQ, OLD, STATE

        The struct member offsets.
    • Constructor Detail

      • NkPropertyState

        public NkPropertyState​(java.nio.ByteBuffer container)
        Creates a NkPropertyState 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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • active

        public int active()
        Returns the value of the active field.
      • prev

        public int prev()
        Returns the value of the prev field.
      • buffer

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

        public byte buffer​(int index)
        Returns the value at the specified index of the buffer field.
      • length

        public int length()
        Returns the value of the length field.
      • cursor

        public int cursor()
        Returns the value of the cursor field.
      • select_start

        public int select_start()
        Returns the value of the select_start field.
      • select_end

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

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

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

        public int old()
        Returns the value of the old field.
      • state

        public int state()
        Returns the value of the state field.
      • create

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

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

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

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

        public static int nactive​(long struct)
        Unsafe version of active().
      • nprev

        public static int nprev​(long struct)
        Unsafe version of prev().
      • nbuffer

        public static java.nio.ByteBuffer nbuffer​(long struct)
        Unsafe version of buffer().
      • nbuffer

        public static byte nbuffer​(long struct,
                                   int index)
        Unsafe version of buffer.
      • nlength

        public static int nlength​(long struct)
        Unsafe version of length().
      • ncursor

        public static int ncursor​(long struct)
        Unsafe version of cursor().
      • nselect_start

        public static int nselect_start​(long struct)
        Unsafe version of select_start().
      • nselect_end

        public static int nselect_end​(long struct)
        Unsafe version of select_end().
      • nname

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

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

        public static int nold​(long struct)
        Unsafe version of old().
      • nstate

        public static int nstate​(long struct)
        Unsafe version of state().