Class BNDtheme

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class BNDtheme
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Describes the theme used to draw widgets.

    Member documentation

    • backgroundColor – the background color of panels and windows
    • regularTheme – theme for labels
    • toolTheme – theme for tool buttons
    • radioTheme – theme for radio buttons
    • textFieldTheme – theme for text fields
    • optionTheme – theme for option buttons (checkboxes)
    • choiceTheme – theme for choice buttons (comboboxes) Blender calls them "menu buttons"
    • numberFieldTheme – theme for number fields
    • sliderTheme – theme for slider controls
    • scrollBarTheme – theme for scrollbars
    • tooltipTheme – theme for tooltips
    • menuTheme – theme for menu backgrounds
    • menuItemTheme – theme for menu items
    • nodeTheme – theme for nodes

    Layout

    
     struct BNDtheme {
         NVGcolor backgroundColor;
         BNDwidgetTheme regularTheme;
         BNDwidgetTheme toolTheme;
         BNDwidgetTheme radioTheme;
         BNDwidgetTheme textFieldTheme;
         BNDwidgetTheme optionTheme;
         BNDwidgetTheme choiceTheme;
         BNDwidgetTheme numberFieldTheme;
         BNDwidgetTheme sliderTheme;
         BNDwidgetTheme scrollBarTheme;
         BNDwidgetTheme tooltipTheme;
         BNDwidgetTheme menuTheme;
         BNDwidgetTheme menuItemTheme;
         BNDnodeTheme nodeTheme;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • BACKGROUNDCOLOR, REGULARTHEME, TOOLTHEME, RADIOTHEME, TEXTFIELDTHEME, OPTIONTHEME, CHOICETHEME, NUMBERFIELDTHEME, SLIDERTHEME, SCROLLBARTHEME, TOOLTIPTHEME, MENUTHEME, MENUITEMTHEME, NODETHEME

        The struct member offsets.
    • Constructor Detail

      • BNDtheme

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

        public NVGColor backgroundColor()
        Returns a NVGColor view of the backgroundColor field.
      • backgroundColor

        public BNDtheme backgroundColor​(NVGColor value)
        Copies the specified NVGColor to the backgroundColor field.
      • backgroundColor

        public BNDtheme backgroundColor​(java.util.function.Consumer<NVGColor> consumer)
        Passes the backgroundColor field to the specified Consumer.
      • regularTheme

        public BNDtheme regularTheme​(java.util.function.Consumer<BNDwidgetTheme> consumer)
        Passes the regularTheme field to the specified Consumer.
      • toolTheme

        public BNDtheme toolTheme​(java.util.function.Consumer<BNDwidgetTheme> consumer)
        Passes the toolTheme field to the specified Consumer.
      • radioTheme

        public BNDtheme radioTheme​(java.util.function.Consumer<BNDwidgetTheme> consumer)
        Passes the radioTheme field to the specified Consumer.
      • textFieldTheme

        public BNDtheme textFieldTheme​(java.util.function.Consumer<BNDwidgetTheme> consumer)
        Passes the textFieldTheme field to the specified Consumer.
      • optionTheme

        public BNDtheme optionTheme​(java.util.function.Consumer<BNDwidgetTheme> consumer)
        Passes the optionTheme field to the specified Consumer.
      • choiceTheme

        public BNDtheme choiceTheme​(java.util.function.Consumer<BNDwidgetTheme> consumer)
        Passes the choiceTheme field to the specified Consumer.
      • numberFieldTheme

        public BNDtheme numberFieldTheme​(java.util.function.Consumer<BNDwidgetTheme> consumer)
        Passes the numberFieldTheme field to the specified Consumer.
      • sliderTheme

        public BNDtheme sliderTheme​(java.util.function.Consumer<BNDwidgetTheme> consumer)
        Passes the sliderTheme field to the specified Consumer.
      • scrollBarTheme

        public BNDtheme scrollBarTheme​(java.util.function.Consumer<BNDwidgetTheme> consumer)
        Passes the scrollBarTheme field to the specified Consumer.
      • tooltipTheme

        public BNDtheme tooltipTheme​(java.util.function.Consumer<BNDwidgetTheme> consumer)
        Passes the tooltipTheme field to the specified Consumer.
      • menuTheme

        public BNDtheme menuTheme​(java.util.function.Consumer<BNDwidgetTheme> consumer)
        Passes the menuTheme field to the specified Consumer.
      • menuItemTheme

        public BNDtheme menuItemTheme​(java.util.function.Consumer<BNDwidgetTheme> consumer)
        Passes the menuItemTheme field to the specified Consumer.
      • nodeTheme

        public BNDtheme nodeTheme​(java.util.function.Consumer<BNDnodeTheme> consumer)
        Passes the nodeTheme field to the specified Consumer.
      • set

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

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

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

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

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

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

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

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

        public static BNDtheme.Buffer create​(int capacity)
        Returns a new BNDtheme.Buffer instance allocated with BufferUtils.
        Parameters:
        capacity - the buffer capacity
      • create

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

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

        public static BNDtheme mallocStack()
        Returns a new BNDtheme instance allocated on the thread-local MemoryStack.
      • callocStack

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

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

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

        public static BNDtheme.Buffer mallocStack​(int capacity)
        Returns a new BNDtheme.Buffer instance allocated on the thread-local MemoryStack.
        Parameters:
        capacity - the buffer capacity
      • callocStack

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

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

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

        public static void nbackgroundColor​(long struct,
                                            NVGColor value)
        Unsafe version of backgroundColor.
      • nnodeTheme

        public static void nnodeTheme​(long struct,
                                      BNDnodeTheme value)
        Unsafe version of nodeTheme.