Class IntersectionMaskRectangle

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class IntersectionMaskRectangle
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     struct IntersectionMaskRectangle_t {
         float m_flTopLeftX;
         float m_flTopLeftY;
         float m_flWidth;
         float m_flHeight;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • M_FLTOPLEFTX, M_FLTOPLEFTY, M_FLWIDTH, M_FLHEIGHT

        The struct member offsets.
    • Constructor Detail

      • IntersectionMaskRectangle

        public IntersectionMaskRectangle​(java.nio.ByteBuffer container)
        Creates a IntersectionMaskRectangle 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • m_flTopLeftX

        public float m_flTopLeftX()
        Returns the value of the m_flTopLeftX field.
      • m_flTopLeftY

        public float m_flTopLeftY()
        Returns the value of the m_flTopLeftY field.
      • m_flWidth

        public float m_flWidth()
        Returns the value of the m_flWidth field.
      • m_flHeight

        public float m_flHeight()
        Returns the value of the m_flHeight field.
      • m_flTopLeftX

        public IntersectionMaskRectangle m_flTopLeftX​(float value)
        Sets the specified value to the m_flTopLeftX field.
      • m_flTopLeftY

        public IntersectionMaskRectangle m_flTopLeftY​(float value)
        Sets the specified value to the m_flTopLeftY field.
      • m_flHeight

        public IntersectionMaskRectangle m_flHeight​(float value)
        Sets the specified value to the m_flHeight field.
      • set

        public IntersectionMaskRectangle set​(float m_flTopLeftX,
                                             float m_flTopLeftY,
                                             float m_flWidth,
                                             float m_flHeight)
        Initializes this struct with the specified values.
      • malloc

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

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

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

        public static IntersectionMaskRectangle create​(long address)
        Returns a new IntersectionMaskRectangle instance for the specified memory address.
      • mallocStack

        public static IntersectionMaskRectangle mallocStack()
        Returns a new IntersectionMaskRectangle instance allocated on the thread-local MemoryStack.
      • callocStack

        public static IntersectionMaskRectangle callocStack()
        Returns a new IntersectionMaskRectangle instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static IntersectionMaskRectangle mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new IntersectionMaskRectangle instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

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

        public static IntersectionMaskRectangle.Buffer callocStack​(int capacity,
                                                                   org.lwjgl.system.MemoryStack stack)
        Returns a new IntersectionMaskRectangle.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nm_flTopLeftX

        public static float nm_flTopLeftX​(long struct)
        Unsafe version of m_flTopLeftX().
      • nm_flTopLeftY

        public static float nm_flTopLeftY​(long struct)
        Unsafe version of m_flTopLeftY().
      • nm_flWidth

        public static float nm_flWidth​(long struct)
        Unsafe version of m_flWidth().
      • nm_flHeight

        public static float nm_flHeight​(long struct)
        Unsafe version of m_flHeight().
      • nm_flTopLeftX

        public static void nm_flTopLeftX​(long struct,
                                         float value)
        Unsafe version of m_flTopLeftX.
      • nm_flTopLeftY

        public static void nm_flTopLeftY​(long struct,
                                         float value)
        Unsafe version of m_flTopLeftY.
      • nm_flWidth

        public static void nm_flWidth​(long struct,
                                      float value)
        Unsafe version of m_flWidth.
      • nm_flHeight

        public static void nm_flHeight​(long struct,
                                       float value)
        Unsafe version of m_flHeight.