Class NkStyleWindow

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class NkStyleWindow extends Struct<NkStyleWindow> implements NativeResource

Layout


 struct nk_style_window {
     struct nk_style_window_header header;
     struct nk_style_item fixed_background;
     struct nk_color background;
     struct nk_color border_color;
     struct nk_color popup_border_color;
     struct nk_color combo_border_color;
     struct nk_color contextual_border_color;
     struct nk_color menu_border_color;
     struct nk_color group_border_color;
     struct nk_color tooltip_border_color;
     struct nk_style_item scaler;
     float border;
     float combo_border;
     float contextual_border;
     float menu_border;
     float group_border;
     float tooltip_border;
     float popup_border;
     float min_row_height_padding;
     float rounding;
     struct nk_vec2 spacing;
     struct nk_vec2 scrollbar_size;
     struct nk_vec2 min_size;
     struct nk_vec2 padding;
     struct nk_vec2 group_padding;
     struct nk_vec2 popup_padding;
     struct nk_vec2 combo_padding;
     struct nk_vec2 contextual_padding;
     struct nk_vec2 menu_padding;
     struct nk_vec2 tooltip_padding;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • FIXED_BACKGROUND

      public static final int FIXED_BACKGROUND
      The struct member offsets.
    • BACKGROUND

      public static final int BACKGROUND
      The struct member offsets.
    • BORDER_COLOR

      public static final int BORDER_COLOR
      The struct member offsets.
    • COMBO_BORDER_COLOR

      public static final int COMBO_BORDER_COLOR
      The struct member offsets.
    • CONTEXTUAL_BORDER_COLOR

      public static final int CONTEXTUAL_BORDER_COLOR
      The struct member offsets.
    • GROUP_BORDER_COLOR

      public static final int GROUP_BORDER_COLOR
      The struct member offsets.
    • TOOLTIP_BORDER_COLOR

      public static final int TOOLTIP_BORDER_COLOR
      The struct member offsets.
    • SCALER

      public static final int SCALER
      The struct member offsets.
    • BORDER

      public static final int BORDER
      The struct member offsets.
    • COMBO_BORDER

      public static final int COMBO_BORDER
      The struct member offsets.
    • CONTEXTUAL_BORDER

      public static final int CONTEXTUAL_BORDER
      The struct member offsets.
    • GROUP_BORDER

      public static final int GROUP_BORDER
      The struct member offsets.
    • TOOLTIP_BORDER

      public static final int TOOLTIP_BORDER
      The struct member offsets.
    • MIN_ROW_HEIGHT_PADDING

      public static final int MIN_ROW_HEIGHT_PADDING
      The struct member offsets.
    • ROUNDING

      public static final int ROUNDING
      The struct member offsets.
    • SPACING

      public static final int SPACING
      The struct member offsets.
    • SCROLLBAR_SIZE

      public static final int SCROLLBAR_SIZE
      The struct member offsets.
    • MIN_SIZE

      public static final int MIN_SIZE
      The struct member offsets.
    • PADDING

      public static final int PADDING
      The struct member offsets.
    • GROUP_PADDING

      public static final int GROUP_PADDING
      The struct member offsets.
    • COMBO_PADDING

      public static final int COMBO_PADDING
      The struct member offsets.
    • CONTEXTUAL_PADDING

      public static final int CONTEXTUAL_PADDING
      The struct member offsets.
    • TOOLTIP_PADDING

      public static final int TOOLTIP_PADDING
      The struct member offsets.
  • Constructor Details

    • NkStyleWindow

      public NkStyleWindow(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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<NkStyleWindow>
    • header

      public NkStyleWindowHeader header()
      Returns:
      a NkStyleWindowHeader view of the header field.
    • fixed_background

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

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

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

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

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

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

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

      public NkStyleItem scaler()
      Returns:
      a NkStyleItem view of the scaler field.
    • 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.
    • 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.
    • 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.
    • scrollbar_size

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

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

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

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

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

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

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

      public NkStyleWindow header(NkStyleWindowHeader value)
      Copies the specified NkStyleWindowHeader to the header field.
    • header

      public NkStyleWindow header(Consumer<NkStyleWindowHeader> consumer)
      Passes the header field to the specified Consumer.
    • fixed_background

      public NkStyleWindow fixed_background(NkStyleItem value)
      Copies the specified NkStyleItem to the fixed_background field.
    • fixed_background

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

      public NkStyleWindow background(NkColor value)
      Copies the specified NkColor to the background field.
    • background

      public NkStyleWindow background(Consumer<NkColor> consumer)
      Passes the background field to the specified Consumer.
    • border_color

      public NkStyleWindow border_color(NkColor value)
      Copies the specified NkColor to the border_color field.
    • border_color

      public NkStyleWindow border_color(Consumer<NkColor> consumer)
      Passes the border_color field to the specified Consumer.
    • combo_border_color

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

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

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

      public NkStyleWindow contextual_border_color(Consumer<NkColor> consumer)
      Passes the contextual_border_color field to the specified Consumer.
    • group_border_color

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

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

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

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

      public NkStyleWindow scaler(NkStyleItem value)
      Copies the specified NkStyleItem to the scaler field.
    • scaler

      public NkStyleWindow scaler(Consumer<NkStyleItem> consumer)
      Passes the scaler field to the specified Consumer.
    • 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.
    • 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.
    • 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.
    • spacing

      public NkStyleWindow spacing(NkVec2 value)
      Copies the specified NkVec2 to the spacing field.
    • spacing

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

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

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

      public NkStyleWindow min_size(NkVec2 value)
      Copies the specified NkVec2 to the min_size field.
    • min_size

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

      public NkStyleWindow padding(NkVec2 value)
      Copies the specified NkVec2 to the padding field.
    • padding

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

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

      public NkStyleWindow group_padding(Consumer<NkVec2> consumer)
      Passes the group_padding field to the specified Consumer.
    • combo_padding

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

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

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

      public NkStyleWindow contextual_padding(Consumer<NkVec2> consumer)
      Passes the contextual_padding field to the specified Consumer.
    • tooltip_padding

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

      public NkStyleWindow tooltip_padding(Consumer<NkVec2> consumer)
      Passes the tooltip_padding field to the specified Consumer.
    • set

      public NkStyleWindow set(NkStyleWindowHeader header, NkStyleItem fixed_background, NkColor background, NkColor border_color, NkColor popup_border_color, NkColor combo_border_color, NkColor contextual_border_color, NkColor menu_border_color, NkColor group_border_color, NkColor tooltip_border_color, NkStyleItem scaler, float border, float combo_border, float contextual_border, float menu_border, float group_border, float tooltip_border, float popup_border, float min_row_height_padding, float rounding, NkVec2 spacing, NkVec2 scrollbar_size, NkVec2 min_size, NkVec2 padding, NkVec2 group_padding, NkVec2 popup_padding, NkVec2 combo_padding, NkVec2 contextual_padding, NkVec2 menu_padding, NkVec2 tooltip_padding)
      Initializes this struct with the specified values.
    • set

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

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

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

      public static NkStyleWindow create()
      Returns a new NkStyleWindow instance allocated with BufferUtils.
    • 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.
    • malloc

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

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

      public static NkStyleWindow.Buffer create(int capacity)
      Returns a new NkStyleWindow.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • 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.
    • mallocStack

      @Deprecated public static NkStyleWindow mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static NkStyleWindow callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static NkStyleWindow mallocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static NkStyleWindow callocStack(MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static NkStyleWindow.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static NkStyleWindow.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • mallocStack

      @Deprecated public static NkStyleWindow.Buffer mallocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static NkStyleWindow.Buffer callocStack(int capacity, MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(int, MemoryStack) instead.
    • malloc

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

      public static NkStyleWindow calloc(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
    • malloc

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

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

      public static NkStyleWindowHeader nheader(long struct)
      Unsafe version of header().
    • nfixed_background

      public static NkStyleItem nfixed_background(long struct)
      Unsafe version of fixed_background().
    • nbackground

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

      public static NkColor nborder_color(long struct)
      Unsafe version of border_color().
    • npopup_border_color

      public static NkColor npopup_border_color(long struct)
      Unsafe version of popup_border_color().
    • ncombo_border_color

      public static NkColor ncombo_border_color(long struct)
      Unsafe version of combo_border_color().
    • ncontextual_border_color

      public static NkColor ncontextual_border_color(long struct)
      Unsafe version of contextual_border_color().
    • nmenu_border_color

      public static NkColor nmenu_border_color(long struct)
      Unsafe version of menu_border_color().
    • ngroup_border_color

      public static NkColor ngroup_border_color(long struct)
      Unsafe version of group_border_color().
    • ntooltip_border_color

      public static NkColor ntooltip_border_color(long struct)
      Unsafe version of tooltip_border_color().
    • nscaler

      public static NkStyleItem nscaler(long struct)
      Unsafe version of scaler().
    • 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().
    • nscrollbar_size

      public static NkVec2 nscrollbar_size(long struct)
      Unsafe version of scrollbar_size().
    • 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().
    • ncontextual_padding

      public static NkVec2 ncontextual_padding(long struct)
      Unsafe version of contextual_padding().
    • nmenu_padding

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

      public static NkVec2 ntooltip_padding(long struct)
      Unsafe version of tooltip_padding().
    • nheader

      public static void nheader(long struct, NkStyleWindowHeader value)
      Unsafe version of header.
    • nfixed_background

      public static void nfixed_background(long struct, NkStyleItem value)
      Unsafe version of fixed_background.
    • 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.
    • ncontextual_border_color

      public static void ncontextual_border_color(long struct, NkColor value)
      Unsafe version of contextual_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.