Class NkStyleText

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class NkStyleText extends Struct<NkStyleText> implements NativeResource

 struct nk_style_text {
     {@link NkColor struct nk_color} color;
     {@link NkVec2 struct nk_vec2} padding;
     float color_factor;
     float disabled_factor;
 }
  • 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.
    • PADDING

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

    • NkStyleText

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