Class BNDwidgetTheme

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • OUTLINECOLOR, ITEMCOLOR, INNERCOLOR, INNERSELECTEDCOLOR, TEXTCOLOR, TEXTSELECTEDCOLOR, SHADETOP, SHADEDOWN

        The struct member offsets.
    • Constructor Detail

      • BNDwidgetTheme

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

        public NVGColor outlineColor()
        color of widget box outline
      • itemColor

        public NVGColor itemColor()
        color of widget item (meaning changes depending on class)
      • innerColor

        public NVGColor innerColor()
        fill color of widget box
      • innerSelectedColor

        public NVGColor innerSelectedColor()
        fill color of widget box when active
      • textColor

        public NVGColor textColor()
        color of text label
      • textSelectedColor

        public NVGColor textSelectedColor()
        color of text label when active
      • shadeTop

        public int shadeTop()
        delta modifier for upper part of gradient (-100 to 100)
      • shadeDown

        public int shadeDown()
        delta modifier for lower part of gradient (-100 to 100)
      • set

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

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

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

        public static BNDwidgetTheme create()
        Returns a new BNDwidgetTheme instance allocated with BufferUtils.
      • create

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

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

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

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

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

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

        @Deprecated
        public static BNDwidgetTheme mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static BNDwidgetTheme callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

        public static BNDwidgetTheme malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new BNDwidgetTheme instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static BNDwidgetTheme calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new BNDwidgetTheme instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • malloc

        public static BNDwidgetTheme.Buffer malloc​(int capacity,
                                                   org.lwjgl.system.MemoryStack stack)
        Returns a new BNDwidgetTheme.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static BNDwidgetTheme.Buffer calloc​(int capacity,
                                                   org.lwjgl.system.MemoryStack stack)
        Returns a new BNDwidgetTheme.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
      • nitemColor

        public static NVGColor nitemColor​(long struct)
        Unsafe version of itemColor().
      • ntextColor

        public static NVGColor ntextColor​(long struct)
        Unsafe version of textColor().
      • nshadeTop

        public static int nshadeTop​(long struct)
        Unsafe version of shadeTop().
      • nshadeDown

        public static int nshadeDown​(long struct)
        Unsafe version of shadeDown().
      • noutlineColor

        public static void noutlineColor​(long struct,
                                         NVGColor value)
        Unsafe version of outlineColor.
      • nitemColor

        public static void nitemColor​(long struct,
                                      NVGColor value)
        Unsafe version of itemColor.
      • ninnerColor

        public static void ninnerColor​(long struct,
                                       NVGColor value)
        Unsafe version of innerColor.
      • ninnerSelectedColor

        public static void ninnerSelectedColor​(long struct,
                                               NVGColor value)
        Unsafe version of innerSelectedColor.
      • ntextColor

        public static void ntextColor​(long struct,
                                      NVGColor value)
        Unsafe version of textColor.
      • ntextSelectedColor

        public static void ntextSelectedColor​(long struct,
                                              NVGColor value)
        Unsafe version of textSelectedColor.
      • nshadeTop

        public static void nshadeTop​(long struct,
                                     int value)
        Unsafe version of shadeTop.
      • nshadeDown

        public static void nshadeDown​(long struct,
                                      int value)
        Unsafe version of shadeDown.