Class NkStyleWindow

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • HEADER, FIXED_BACKGROUND, BACKGROUND, BORDER_COLOR, POPUP_BORDER_COLOR, COMBO_BORDER_COLOR, CONTEXTUAL_BORDER_COLOR, MENU_BORDER_COLOR, GROUP_BORDER_COLOR, TOOLTIP_BORDER_COLOR, SCALER, BORDER, COMBO_BORDER, CONTEXTUAL_BORDER, MENU_BORDER, GROUP_BORDER, TOOLTIP_BORDER, POPUP_BORDER, MIN_ROW_HEIGHT_PADDING, ROUNDING, SPACING, SCROLLBAR_SIZE, MIN_SIZE, PADDING, GROUP_PADDING, POPUP_PADDING, COMBO_PADDING, CONTEXTUAL_PADDING, MENU_PADDING, TOOLTIP_PADDING

        The struct member offsets.
    • Constructor Detail

      • NkStyleWindow

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

        public NkStyleItem fixed_background()
        Returns a NkStyleItem view of the fixed_background field.
      • fixed_background

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

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

        public NkStyleWindow background​(java.util.function.Consumer<NkColor> 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 NkStyleWindow border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the border_color field to the specified Consumer.
      • popup_border_color

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

        public NkStyleWindow popup_border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the popup_border_color field to the specified Consumer.
      • combo_border_color

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

        public NkStyleWindow combo_border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the combo_border_color field to the specified Consumer.
      • contextual_border_color

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

        public NkStyleWindow contextual_border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the contextual_border_color field to the specified Consumer.
      • menu_border_color

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

        public NkStyleWindow menu_border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the menu_border_color field to the specified Consumer.
      • group_border_color

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

        public NkStyleWindow group_border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the group_border_color field to the specified Consumer.
      • tooltip_border_color

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

        public NkStyleWindow tooltip_border_color​(java.util.function.Consumer<NkColor> consumer)
        Passes the tooltip_border_color field to the specified Consumer.
      • scaler

        public NkStyleWindow scaler​(java.util.function.Consumer<NkStyleItem> consumer)
        Passes the scaler field to the specified Consumer.
      • border

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

        public float combo_border()
        Returns the value of the combo_border field.
      • contextual_border

        public float contextual_border()
        Returns the value of the contextual_border field.
      • menu_border

        public float menu_border()
        Returns the value of the menu_border field.
      • group_border

        public float group_border()
        Returns the value of the group_border field.
      • tooltip_border

        public float tooltip_border()
        Returns the value of the tooltip_border field.
      • popup_border

        public float popup_border()
        Returns the value of the popup_border field.
      • min_row_height_padding

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

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

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

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

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

        public NkStyleWindow scrollbar_size​(java.util.function.Consumer<NkVec2> consumer)
        Passes the scrollbar_size field to the specified Consumer.
      • min_size

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

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

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

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

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

        public NkStyleWindow group_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the group_padding field to the specified Consumer.
      • popup_padding

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

        public NkStyleWindow popup_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the popup_padding field to the specified Consumer.
      • combo_padding

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

        public NkStyleWindow combo_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the combo_padding field to the specified Consumer.
      • contextual_padding

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

        public NkStyleWindow contextual_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the contextual_padding field to the specified Consumer.
      • menu_padding

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

        public NkStyleWindow menu_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the menu_padding field to the specified Consumer.
      • tooltip_padding

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

        public NkStyleWindow tooltip_padding​(java.util.function.Consumer<NkVec2> consumer)
        Passes the tooltip_padding field to the specified Consumer.
      • popup_border_color

        public NkStyleWindow popup_border_color​(NkColor value)
        Copies the specified NkColor to the popup_border_color field.
      • combo_border_color

        public NkStyleWindow combo_border_color​(NkColor value)
        Copies the specified NkColor to the combo_border_color field.
      • contextual_border_color

        public NkStyleWindow contextual_border_color​(NkColor value)
        Copies the specified NkColor to the contextual_border_color field.
      • menu_border_color

        public NkStyleWindow menu_border_color​(NkColor value)
        Copies the specified NkColor to the menu_border_color field.
      • group_border_color

        public NkStyleWindow group_border_color​(NkColor value)
        Copies the specified NkColor to the group_border_color field.
      • tooltip_border_color

        public NkStyleWindow tooltip_border_color​(NkColor value)
        Copies the specified NkColor to the tooltip_border_color field.
      • border

        public NkStyleWindow border​(float value)
        Sets the specified value to the border field.
      • combo_border

        public NkStyleWindow combo_border​(float value)
        Sets the specified value to the combo_border field.
      • contextual_border

        public NkStyleWindow contextual_border​(float value)
        Sets the specified value to the contextual_border field.
      • menu_border

        public NkStyleWindow menu_border​(float value)
        Sets the specified value to the menu_border field.
      • group_border

        public NkStyleWindow group_border​(float value)
        Sets the specified value to the group_border field.
      • tooltip_border

        public NkStyleWindow tooltip_border​(float value)
        Sets the specified value to the tooltip_border field.
      • popup_border

        public NkStyleWindow popup_border​(float value)
        Sets the specified value to the popup_border field.
      • min_row_height_padding

        public NkStyleWindow min_row_height_padding​(float value)
        Sets the specified value to the min_row_height_padding field.
      • rounding

        public NkStyleWindow rounding​(float value)
        Sets the specified value to the rounding field.
      • scrollbar_size

        public NkStyleWindow scrollbar_size​(NkVec2 value)
        Copies the specified NkVec2 to the scrollbar_size field.
      • group_padding

        public NkStyleWindow group_padding​(NkVec2 value)
        Copies the specified NkVec2 to the group_padding field.
      • popup_padding

        public NkStyleWindow popup_padding​(NkVec2 value)
        Copies the specified NkVec2 to the popup_padding field.
      • combo_padding

        public NkStyleWindow combo_padding​(NkVec2 value)
        Copies the specified NkVec2 to the combo_padding field.
      • contextual_padding

        public NkStyleWindow contextual_padding​(NkVec2 value)
        Copies the specified NkVec2 to the contextual_padding field.
      • tooltip_padding

        public NkStyleWindow tooltip_padding​(NkVec2 value)
        Copies the specified NkVec2 to the tooltip_padding field.
      • set

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

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

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

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

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

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

        public static NkColor nbackground​(long struct)
        Unsafe version of background().
      • nborder

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

        public static float ncombo_border​(long struct)
        Unsafe version of combo_border().
      • ncontextual_border

        public static float ncontextual_border​(long struct)
        Unsafe version of contextual_border().
      • nmenu_border

        public static float nmenu_border​(long struct)
        Unsafe version of menu_border().
      • ngroup_border

        public static float ngroup_border​(long struct)
        Unsafe version of group_border().
      • ntooltip_border

        public static float ntooltip_border​(long struct)
        Unsafe version of tooltip_border().
      • npopup_border

        public static float npopup_border​(long struct)
        Unsafe version of popup_border().
      • nmin_row_height_padding

        public static float nmin_row_height_padding​(long struct)
        Unsafe version of min_row_height_padding().
      • nrounding

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

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

        public static NkVec2 nmin_size​(long struct)
        Unsafe version of min_size().
      • npadding

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

        public static NkVec2 ngroup_padding​(long struct)
        Unsafe version of group_padding().
      • npopup_padding

        public static NkVec2 npopup_padding​(long struct)
        Unsafe version of popup_padding().
      • ncombo_padding

        public static NkVec2 ncombo_padding​(long struct)
        Unsafe version of combo_padding().
      • nmenu_padding

        public static NkVec2 nmenu_padding​(long struct)
        Unsafe version of menu_padding().
      • nbackground

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

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

        public static void npopup_border_color​(long struct,
                                               NkColor value)
        Unsafe version of popup_border_color.
      • ncombo_border_color

        public static void ncombo_border_color​(long struct,
                                               NkColor value)
        Unsafe version of combo_border_color.
      • nmenu_border_color

        public static void nmenu_border_color​(long struct,
                                              NkColor value)
        Unsafe version of menu_border_color.
      • ngroup_border_color

        public static void ngroup_border_color​(long struct,
                                               NkColor value)
        Unsafe version of group_border_color.
      • ntooltip_border_color

        public static void ntooltip_border_color​(long struct,
                                                 NkColor value)
        Unsafe version of tooltip_border_color.
      • nscaler

        public static void nscaler​(long struct,
                                   NkStyleItem value)
        Unsafe version of scaler.
      • nborder

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

        public static void ncombo_border​(long struct,
                                         float value)
        Unsafe version of combo_border.
      • ncontextual_border

        public static void ncontextual_border​(long struct,
                                              float value)
        Unsafe version of contextual_border.
      • nmenu_border

        public static void nmenu_border​(long struct,
                                        float value)
        Unsafe version of menu_border.
      • ngroup_border

        public static void ngroup_border​(long struct,
                                         float value)
        Unsafe version of group_border.
      • ntooltip_border

        public static void ntooltip_border​(long struct,
                                           float value)
        Unsafe version of tooltip_border.
      • npopup_border

        public static void npopup_border​(long struct,
                                         float value)
        Unsafe version of popup_border.
      • nmin_row_height_padding

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

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

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

        public static void nscrollbar_size​(long struct,
                                           NkVec2 value)
        Unsafe version of scrollbar_size.
      • nmin_size

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

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

        public static void ngroup_padding​(long struct,
                                          NkVec2 value)
        Unsafe version of group_padding.
      • npopup_padding

        public static void npopup_padding​(long struct,
                                          NkVec2 value)
        Unsafe version of popup_padding.
      • ncombo_padding

        public static void ncombo_padding​(long struct,
                                          NkVec2 value)
        Unsafe version of combo_padding.
      • ncontextual_padding

        public static void ncontextual_padding​(long struct,
                                               NkVec2 value)
        Unsafe version of contextual_padding.
      • nmenu_padding

        public static void nmenu_padding​(long struct,
                                         NkVec2 value)
        Unsafe version of menu_padding.
      • ntooltip_padding

        public static void ntooltip_padding​(long struct,
                                            NkVec2 value)
        Unsafe version of tooltip_padding.