Class NkPopupState

All Implemented Interfaces:
Pointer

public class NkPopupState extends Struct<NkPopupState>

 struct nk_popup_state {
     {@link NkWindow struct nk_window} * win;
     enum nk_panel_type type;
     {@link NkPopupBuffer struct nk_popup_buffer} buf;
     nk_hash name;
     nk_bool active;
     unsigned combo_count;
     unsigned con_count;
     unsigned con_old;
     unsigned active_con;
     {@link NkRect struct nk_rect} header;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • WIN

      public static final int WIN
      The struct member offsets.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • BUF

      public static final int BUF
      The struct member offsets.
    • NAME

      public static final int NAME
      The struct member offsets.
    • ACTIVE

      public static final int ACTIVE
      The struct member offsets.
    • COMBO_COUNT

      public static final int COMBO_COUNT
      The struct member offsets.
    • CON_COUNT

      public static final int CON_COUNT
      The struct member offsets.
    • CON_OLD

      public static final int CON_OLD
      The struct member offsets.
    • ACTIVE_CON

      public static final int ACTIVE_CON
      The struct member offsets.
  • Constructor Details

    • NkPopupState

      public NkPopupState(ByteBuffer container)
      Creates a NkPopupState 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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<NkPopupState>
    • win

      public NkWindow win()
      Returns:
      a NkWindow view of the struct pointed to by the win field.
    • type

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

      public NkPopupBuffer buf()
      Returns:
      a NkPopupBuffer view of the buf field.
    • name

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

      public boolean active()
      Returns:
      the value of the active field.
    • combo_count

      public int combo_count()
      Returns:
      the value of the combo_count field.
    • con_count

      public int con_count()
      Returns:
      the value of the con_count field.
    • con_old

      public int con_old()
      Returns:
      the value of the con_old field.
    • active_con

      public int active_con()
      Returns:
      the value of the active_con field.
    • header

      public NkRect header()
      Returns:
      a NkRect view of the header field.
    • create

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

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

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

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

      public static NkWindow nwin(long struct)
      Unsafe version of win().
    • ntype

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

      public static NkPopupBuffer nbuf(long struct)
      Unsafe version of buf().
    • nname

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

      public static boolean nactive(long struct)
      Unsafe version of active().
    • ncombo_count

      public static int ncombo_count(long struct)
      Unsafe version of combo_count().
    • ncon_count

      public static int ncon_count(long struct)
      Unsafe version of con_count().
    • ncon_old

      public static int ncon_old(long struct)
      Unsafe version of con_old().
    • nactive_con

      public static int nactive_con(long struct)
      Unsafe version of active_con().
    • nheader

      public static NkRect nheader(long struct)
      Unsafe version of header().