Class XrSceneMarkerMSFT

All Implemented Interfaces:
Pointer

public class XrSceneMarkerMSFT extends Struct<XrSceneMarkerMSFT>

 struct XrSceneMarkerMSFT {
     XrSceneMarkerTypeMSFT markerType;
     XrTime lastSeenTime;
     {@link XrOffset2Df XrOffset2Df} center;
     {@link XrExtent2Df XrExtent2Df} size;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int MARKERTYPE
      The struct member offsets.
    • LASTSEENTIME

      public static final int LASTSEENTIME
      The struct member offsets.
    • CENTER

      public static final int CENTER
      The struct member offsets.
    • SIZE

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

    • XrSceneMarkerMSFT

      public XrSceneMarkerMSFT(ByteBuffer container)
      Creates a XrSceneMarkerMSFT 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()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<XrSceneMarkerMSFT>
    • markerType

      public int markerType()
      Returns:
      the value of the markerType field.
    • lastSeenTime

      public long lastSeenTime()
      Returns:
      the value of the lastSeenTime field.
    • center

      public XrOffset2Df center()
      Returns:
      a XrOffset2Df view of the center field.
    • size

      public XrExtent2Df size()
      Returns:
      a XrExtent2Df view of the size field.
    • create

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

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

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

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

      public static int nmarkerType(long struct)
      Unsafe version of markerType().
    • nlastSeenTime

      public static long nlastSeenTime(long struct)
      Unsafe version of lastSeenTime().
    • ncenter

      public static XrOffset2Df ncenter(long struct)
      Unsafe version of center().
    • nsize

      public static XrExtent2Df nsize(long struct)
      Unsafe version of size().