Class MSDFGenBounds

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<MSDFGenBounds>
org.lwjgl.util.msdfgen.MSDFGenBounds
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class MSDFGenBounds extends org.lwjgl.system.Struct<MSDFGenBounds> implements org.lwjgl.system.NativeResource

Layout


 struct msdf_bounds {
     double l();
     double b();
     double r();
     double t();
 }
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An array of MSDFGenBounds structs.

    Nested classes/interfaces inherited from class org.lwjgl.system.Struct

    org.lwjgl.system.Struct.StructValidation

    Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

    org.lwjgl.system.Pointer.Default
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The struct alignment in bytes.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct member offsets.
    static final int
    The struct size in bytes.
    static final int
    The struct member offsets.

    Fields inherited from interface org.lwjgl.system.Pointer

    BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a MSDFGenBounds instance at the current position of the specified ByteBuffer container.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    b()
    the vertical starting position of this bounding box
    b(double value)
    Sets the specified value to the b() field.
    Returns a new MSDFGenBounds instance allocated with memCalloc.
    calloc(int capacity)
    Returns a new MSDFGenBounds.Buffer instance allocated with memCalloc.
    calloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new MSDFGenBounds.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
    calloc(org.lwjgl.system.MemoryStack stack)
    Returns a new MSDFGenBounds instance allocated on the specified MemoryStack and initializes all its bits to zero.
    Returns a new MSDFGenBounds instance allocated with BufferUtils.
    create(int capacity)
    Returns a new MSDFGenBounds.Buffer instance allocated with BufferUtils.
    create(long address)
    Returns a new MSDFGenBounds instance for the specified memory address.
    create(long address, int capacity)
    Create a MSDFGenBounds.Buffer instance at the specified memory.
    static @Nullable MSDFGenBounds
    createSafe(long address)
    Like create, but returns null if address is NULL.
    static @Nullable MSDFGenBounds.Buffer
    createSafe(long address, int capacity)
    Like create, but returns null if address is NULL.
    double
    l()
    the horizontal starting position of this bounding box
    l(double value)
    Sets the specified value to the l() field.
    Returns a new MSDFGenBounds instance allocated with memAlloc.
    malloc(int capacity)
    Returns a new MSDFGenBounds.Buffer instance allocated with memAlloc.
    malloc(int capacity, org.lwjgl.system.MemoryStack stack)
    Returns a new MSDFGenBounds.Buffer instance allocated on the specified MemoryStack.
    malloc(org.lwjgl.system.MemoryStack stack)
    Returns a new MSDFGenBounds instance allocated on the specified MemoryStack.
    static double
    nb(long struct)
    Unsafe version of b().
    static void
    nb(long struct, double value)
    Unsafe version of b.
    static double
    nl(long struct)
    Unsafe version of l().
    static void
    nl(long struct, double value)
    Unsafe version of l.
    static double
    nr(long struct)
    Unsafe version of r().
    static void
    nr(long struct, double value)
    Unsafe version of r.
    static double
    nt(long struct)
    Unsafe version of t().
    static void
    nt(long struct, double value)
    Unsafe version of t.
    double
    r()
    the horizontal ending position of this bounding box
    r(double value)
    Sets the specified value to the r() field.
    set(double l, double b, double r, double t)
    Initializes this struct with the specified values.
    Copies the specified struct data to this struct.
    int
     
    double
    t()
    the vertical ending position of this bounding box
    t(double value)
    Sets the specified value to the t() field.

    Methods inherited from class org.lwjgl.system.Struct

    clear, free, isNull, validate, validate

    Methods inherited from class org.lwjgl.system.Pointer.Default

    address, equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.lwjgl.system.NativeResource

    close, free
  • Field Details

    • SIZEOF

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

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

      public static final int L
      The struct member offsets.
    • B

      public static final int B
      The struct member offsets.
    • R

      public static final int R
      The struct member offsets.
    • T

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

    • MSDFGenBounds

      public MSDFGenBounds(ByteBuffer container)
      Creates a MSDFGenBounds 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<MSDFGenBounds>
    • l

      public double l()
      the horizontal starting position of this bounding box
    • b

      public double b()
      the vertical starting position of this bounding box
    • r

      public double r()
      the horizontal ending position of this bounding box
    • t

      public double t()
      the vertical ending position of this bounding box
    • l

      public MSDFGenBounds l(double value)
      Sets the specified value to the l() field.
    • b

      public MSDFGenBounds b(double value)
      Sets the specified value to the b() field.
    • r

      public MSDFGenBounds r(double value)
      Sets the specified value to the r() field.
    • t

      public MSDFGenBounds t(double value)
      Sets the specified value to the t() field.
    • set

      public MSDFGenBounds set(double l, double b, double r, double t)
      Initializes this struct with the specified values.
    • set

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

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

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

      public static MSDFGenBounds create()
      Returns a new MSDFGenBounds instance allocated with BufferUtils.
    • create

      public static MSDFGenBounds create(long address)
      Returns a new MSDFGenBounds instance for the specified memory address.
    • createSafe

      public static @Nullable MSDFGenBounds createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

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

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

      public static MSDFGenBounds.Buffer create(int capacity)
      Returns a new MSDFGenBounds.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static MSDFGenBounds.Buffer create(long address, int capacity)
      Create a MSDFGenBounds.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable MSDFGenBounds.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

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

      public static MSDFGenBounds calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new MSDFGenBounds instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

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

      public static MSDFGenBounds.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new MSDFGenBounds.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
    • nl

      public static double nl(long struct)
      Unsafe version of l().
    • nb

      public static double nb(long struct)
      Unsafe version of b().
    • nr

      public static double nr(long struct)
      Unsafe version of r().
    • nt

      public static double nt(long struct)
      Unsafe version of t().
    • nl

      public static void nl(long struct, double value)
      Unsafe version of l.
    • nb

      public static void nb(long struct, double value)
      Unsafe version of b.
    • nr

      public static void nr(long struct, double value)
      Unsafe version of r.
    • nt

      public static void nt(long struct, double value)
      Unsafe version of t.