Class NkContext

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • INPUT, STYLE, MEMORY, CLIP, LAST_WIDGET_STATE, BUTTON_BEHAVIOR, STACKS, DELTA_TIME_SECONDS, DRAW_LIST, USERDATA, TEXT_EDIT, OVERLAY, BUILD, USE_POOL, POOL, BEGIN, END, ACTIVE, CURRENT, FREELIST, COUNT, SEQ

        The struct member offsets.
    • Constructor Detail

      • NkContext

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

        public NkInput input()
        Returns a NkInput view of the input field.
      • style

        public NkStyle style()
        Returns a NkStyle view of the style field.
      • style

        public NkContext style​(java.util.function.Consumer<NkStyle> consumer)
        Passes the style field to the specified Consumer.
      • memory

        public NkBuffer memory()
        Returns a NkBuffer view of the memory field.
      • clip

        public NkContext clip​(java.util.function.Consumer<NkClipboard> consumer)
        Passes the clip field to the specified Consumer.
      • last_widget_state

        public int last_widget_state()
        Returns the value of the last_widget_state field.
      • button_behavior

        public int button_behavior()
        Returns the value of the button_behavior field.
      • stacks

        public org.lwjgl.nuklear.NkConfigurationStacks stacks()
        Returns a NkConfigurationStacks view of the stacks field.
      • delta_time_seconds

        public float delta_time_seconds()
        Returns the value of the delta_time_seconds field.
      • malloc

        public static NkContext malloc()
        Returns a new NkContext instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static NkContext calloc()
        Returns a new NkContext instance allocated with memCalloc. The instance must be explicitly freed.
      • create

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

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

        public static NkContext callocStack()
        Returns a new NkContext instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static NkContext mallocStack​(MemoryStack stack)
        Returns a new NkContext instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static NkContext callocStack​(MemoryStack stack)
        Returns a new NkContext instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • ninput

        public static NkInput ninput​(long struct)
        Unsafe version of input().
      • nstyle

        public static NkStyle nstyle​(long struct)
        Unsafe version of style().
      • nmemory

        public static NkBuffer nmemory​(long struct)
        Unsafe version of memory().
      • nlast_widget_state

        public static int nlast_widget_state​(long struct)
        Unsafe version of last_widget_state().
      • nbutton_behavior

        public static int nbutton_behavior​(long struct)
        Unsafe version of button_behavior().
      • nstacks

        public static org.lwjgl.nuklear.NkConfigurationStacks nstacks​(long struct)
        Unsafe version of stacks().
      • ndelta_time_seconds

        public static float ndelta_time_seconds​(long struct)
        Unsafe version of delta_time_seconds().
      • ndraw_list

        public static NkDrawList ndraw_list​(long struct)
      • nuserdata

        public static NkHandle nuserdata​(long struct)
      • ntext_edit

        public static org.lwjgl.nuklear.NkTextEdit ntext_edit​(long struct)
      • nbuild

        public static int nbuild​(long struct)
      • nuse_pool

        public static int nuse_pool​(long struct)
      • npool

        public static org.lwjgl.nuklear.NkPool npool​(long struct)
      • nbegin

        @Nullable
        public static NkWindow nbegin​(long struct)
      • nend

        @Nullable
        public static NkWindow nend​(long struct)
      • nactive

        @Nullable
        public static NkWindow nactive​(long struct)
      • ncurrent

        @Nullable
        public static NkWindow ncurrent​(long struct)
      • nfreelist

        public static long nfreelist​(long struct)
      • ncount

        public static int ncount​(long struct)
      • nseq

        public static int nseq​(long struct)