Class NkStyleSelectable

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class NkStyleSelectable extends Struct<NkStyleSelectable> implements NativeResource

 struct nk_style_selectable {
     struct nk_style_item normal;
     struct nk_style_item hover;
     struct nk_style_item pressed;
     struct nk_style_item normal_active;
     struct nk_style_item hover_active;
     struct nk_style_item pressed_active;
     struct nk_color text_normal;
     struct nk_color text_hover;
     struct nk_color text_pressed;
     struct nk_color text_normal_active;
     struct nk_color text_hover_active;
     struct nk_color text_pressed_active;
     struct nk_color text_background;
     nk_flags text_alignment;
     float rounding;
     struct nk_vec2 padding;
     struct nk_vec2 touch_padding;
     struct nk_vec2 image_padding;
     float color_factor;
     float disabled_factor;
     nk_handle userdata;
     nk_draw_begin draw_begin;
     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.
    • PRESSED

      public static final int PRESSED
      The struct member offsets.
    • NORMAL_ACTIVE

      public static final int NORMAL_ACTIVE
      The struct member offsets.
    • HOVER_ACTIVE

      public static final int HOVER_ACTIVE
      The struct member offsets.
    • PRESSED_ACTIVE

      public static final int PRESSED_ACTIVE
      The struct member offsets.
    • TEXT_NORMAL

      public static final int TEXT_NORMAL
      The struct member offsets.
    • TEXT_HOVER

      public static final int TEXT_HOVER
      The struct member offsets.
    • TEXT_PRESSED

      public static final int TEXT_PRESSED
      The struct member offsets.
    • TEXT_NORMAL_ACTIVE

      public static final int TEXT_NORMAL_ACTIVE
      The struct member offsets.
    • TEXT_HOVER_ACTIVE

      public static final int TEXT_HOVER_ACTIVE
      The struct member offsets.
    • TEXT_PRESSED_ACTIVE

      public static final int TEXT_PRESSED_ACTIVE
      The struct member offsets.
    • TEXT_BACKGROUND

      public static final int TEXT_BACKGROUND
      The struct member offsets.
    • TEXT_ALIGNMENT

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

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

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

      public static final int TOUCH_PADDING
      The struct member offsets.
    • IMAGE_PADDING

      public static final int IMAGE_PADDING
      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.
    • 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

    • NkStyleSelectable

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