Class NkStyleSlider

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class NkStyleSlider extends Struct<NkStyleSlider> implements NativeResource

 struct nk_style_slider {
     {@link NkStyleItem struct nk_style_item} normal;
     {@link NkStyleItem struct nk_style_item} hover;
     {@link NkStyleItem struct nk_style_item} active;
     {@link NkColor struct nk_color} border_color;
     {@link NkColor struct nk_color} bar_normal;
     {@link NkColor struct nk_color} bar_hover;
     {@link NkColor struct nk_color} bar_active;
     {@link NkColor struct nk_color} bar_filled;
     {@link NkStyleItem struct nk_style_item} cursor_normal;
     {@link NkStyleItem struct nk_style_item} cursor_hover;
     {@link NkStyleItem struct nk_style_item} cursor_active;
     float border;
     float rounding;
     float bar_height;
     {@link NkVec2 struct nk_vec2} padding;
     {@link NkVec2 struct nk_vec2} spacing;
     {@link NkVec2 struct nk_vec2} cursor_size;
     float color_factor;
     float disabled_factor;
     int show_buttons;
     {@link NkStyleButton struct nk_style_button} inc_button;
     {@link NkStyleButton struct nk_style_button} dec_button;
     enum nk_symbol_type inc_symbol;
     enum nk_symbol_type dec_symbol;
     {@link NkHandle nk_handle} userdata;
     {@link NkDrawBeginCallbackI nk_draw_begin} draw_begin;
     {@link NkDrawEndCallbackI nk_draw_end} draw_end;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int NORMAL
      The struct member offsets.
    • HOVER

      public static final int HOVER
      The struct member offsets.
    • ACTIVE

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

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

      public static final int BAR_NORMAL
      The struct member offsets.
    • BAR_HOVER

      public static final int BAR_HOVER
      The struct member offsets.
    • BAR_ACTIVE

      public static final int BAR_ACTIVE
      The struct member offsets.
    • BAR_FILLED

      public static final int BAR_FILLED
      The struct member offsets.
    • CURSOR_NORMAL

      public static final int CURSOR_NORMAL
      The struct member offsets.
    • CURSOR_HOVER

      public static final int CURSOR_HOVER
      The struct member offsets.
    • CURSOR_ACTIVE

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

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

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

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

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

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

      public static final int CURSOR_SIZE
      The struct member offsets.
    • COLOR_FACTOR

      public static final int COLOR_FACTOR
      The struct member offsets.
    • DISABLED_FACTOR

      public static final int DISABLED_FACTOR
      The struct member offsets.
    • SHOW_BUTTONS

      public static final int SHOW_BUTTONS
      The struct member offsets.
    • INC_BUTTON

      public static final int INC_BUTTON
      The struct member offsets.
    • DEC_BUTTON

      public static final int DEC_BUTTON
      The struct member offsets.
    • INC_SYMBOL

      public static final int INC_SYMBOL
      The struct member offsets.
    • DEC_SYMBOL

      public static final int DEC_SYMBOL
      The struct member offsets.
    • USERDATA

      public static final int USERDATA
      The struct member offsets.
    • DRAW_BEGIN

      public static final int DRAW_BEGIN
      The struct member offsets.
    • DRAW_END

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

    • NkStyleSlider

      public NkStyleSlider(ByteBuffer container)
      Creates a NkStyleSlider 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