Class NkStyleItemData

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class NkStyleItemData extends Struct<NkStyleItemData> implements NativeResource

 union nk_style_item_data {
     struct nk_color color;
     struct nk_image image;
     struct nk_nine_slice slice;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int COLOR
      The struct member offsets.
    • IMAGE

      public static final int IMAGE
      The struct member offsets.
    • SLICE

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

    • NkStyleItemData

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