Class NkStyleTab

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • BACKGROUND, BORDER_COLOR, TEXT, TAB_MAXIMIZE_BUTTON, TAB_MINIMIZE_BUTTON, NODE_MAXIMIZE_BUTTON, NODE_MINIMIZE_BUTTON, SYM_MINIMIZE, SYM_MAXIMIZE, BORDER, ROUNDING, INDENT, PADDING, SPACING

        The struct member offsets.
    • Constructor Detail

      • NkStyleTab

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

        public NkStyleTab background​(java.util.function.Consumer<NkStyleItem> consumer)
        Passes the background field to the specified Consumer.
      • border_color

        public NkColor border_color()
        Returns a NkColor view of the border_color field.
      • border_color

        public NkStyleTab border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the border_color field to the specified Consumer.
      • text

        public NkColor text()
        Returns a NkColor view of the text field.
      • text

        public NkStyleTab text​(java.util.function.Consumer<NkColor> consumer)
        Passes the text field to the specified Consumer.
      • tab_maximize_button

        public NkStyleTab tab_maximize_button​(java.util.function.Consumer<NkStyleButton> consumer)
        Passes the tab_maximize_button field to the specified Consumer.
      • tab_minimize_button

        public NkStyleTab tab_minimize_button​(java.util.function.Consumer<NkStyleButton> consumer)
        Passes the tab_minimize_button field to the specified Consumer.
      • node_maximize_button

        public NkStyleButton node_maximize_button()
        Returns a NkStyleButton view of the node_maximize_button field.
      • node_maximize_button

        public NkStyleTab node_maximize_button​(java.util.function.Consumer<NkStyleButton> consumer)
        Passes the node_maximize_button field to the specified Consumer.
      • node_minimize_button

        public NkStyleButton node_minimize_button()
        Returns a NkStyleButton view of the node_minimize_button field.
      • node_minimize_button

        public NkStyleTab node_minimize_button​(java.util.function.Consumer<NkStyleButton> consumer)
        Passes the node_minimize_button field to the specified Consumer.
      • sym_minimize

        public int sym_minimize()
        Returns the value of the sym_minimize field.
      • sym_maximize

        public int sym_maximize()
        Returns the value of the sym_maximize field.
      • border

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

        public float rounding()
        Returns the value of the rounding field.
      • indent

        public float indent()
        Returns the value of the indent field.
      • padding

        public NkVec2 padding()
        Returns a NkVec2 view of the padding field.
      • padding

        public NkStyleTab padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the padding field to the specified Consumer.
      • spacing

        public NkVec2 spacing()
        Returns a NkVec2 view of the spacing field.
      • spacing

        public NkStyleTab spacing​(java.util.function.Consumer<NkVec2> consumer)
        Passes the spacing field to the specified Consumer.
      • border_color

        public NkStyleTab border_color​(NkColor value)
        Copies the specified NkColor to the border_color field.
      • sym_minimize

        public NkStyleTab sym_minimize​(int value)
        Sets the specified value to the sym_minimize field.
      • sym_maximize

        public NkStyleTab sym_maximize​(int value)
        Sets the specified value to the sym_maximize field.
      • border

        public NkStyleTab border​(float value)
        Sets the specified value to the border field.
      • rounding

        public NkStyleTab rounding​(float value)
        Sets the specified value to the rounding field.
      • indent

        public NkStyleTab indent​(float value)
        Sets the specified value to the indent field.
      • set

        public NkStyleTab set​(NkStyleTab src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

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

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

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

        public static NkStyleTab.Buffer malloc​(int capacity)
        Returns a new NkStyleTab.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • calloc

        public static NkStyleTab.Buffer calloc​(int capacity)
        Returns a new NkStyleTab.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
        Parameters:
        capacity - the buffer capacity
      • create

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

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

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

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

        public static NkStyleTab.Buffer callocStack​(int capacity)
        Returns a new NkStyleTab.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • callocStack

        public static NkStyleTab.Buffer callocStack​(int capacity,
                                                    MemoryStack stack)
        Returns a new NkStyleTab.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • ntext

        public static NkColor ntext​(long struct)
        Unsafe version of text().
      • nsym_minimize

        public static int nsym_minimize​(long struct)
        Unsafe version of sym_minimize().
      • nsym_maximize

        public static int nsym_maximize​(long struct)
        Unsafe version of sym_maximize().
      • nborder

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

        public static float nrounding​(long struct)
        Unsafe version of rounding().
      • nindent

        public static float nindent​(long struct)
        Unsafe version of indent().
      • npadding

        public static NkVec2 npadding​(long struct)
        Unsafe version of padding().
      • nspacing

        public static NkVec2 nspacing​(long struct)
        Unsafe version of spacing().
      • nbackground

        public static void nbackground​(long struct,
                                       NkStyleItem value)
        Unsafe version of background.
      • nborder_color

        public static void nborder_color​(long struct,
                                         NkColor value)
        Unsafe version of border_color.
      • ntext

        public static void ntext​(long struct,
                                 NkColor value)
        Unsafe version of text.
      • nsym_minimize

        public static void nsym_minimize​(long struct,
                                         int value)
        Unsafe version of sym_minimize.
      • nsym_maximize

        public static void nsym_maximize​(long struct,
                                         int value)
        Unsafe version of sym_maximize.
      • nborder

        public static void nborder​(long struct,
                                   float value)
        Unsafe version of border.
      • nrounding

        public static void nrounding​(long struct,
                                     float value)
        Unsafe version of rounding.
      • nindent

        public static void nindent​(long struct,
                                   float value)
        Unsafe version of indent.
      • npadding

        public static void npadding​(long struct,
                                    NkVec2 value)
        Unsafe version of padding.
      • nspacing

        public static void nspacing​(long struct,
                                    NkVec2 value)
        Unsafe version of spacing.