Class XrActionSuggestedBinding

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrActionSuggestedBinding>
org.lwjgl.openxr.XrActionSuggestedBinding
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrActionSuggestedBinding extends org.lwjgl.system.Struct<XrActionSuggestedBinding> implements org.lwjgl.system.NativeResource
Suggested binding for a single action.
Valid Usage (Implicit)
  • action must be a valid XrAction handle
See Also

XrInteractionProfileSuggestedBinding, SuggestInteractionProfileBindings

Layout


 struct XrActionSuggestedBinding {
     XrAction action();
     XrPath binding();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int ACTION
      The struct member offsets.
    • BINDING

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

    • XrActionSuggestedBinding

      public XrActionSuggestedBinding(ByteBuffer container)
      Creates a XrActionSuggestedBinding 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<XrActionSuggestedBinding>
    • action

      public long action()
      the XrAction handle for an action
    • binding

      public long binding()
      the XrPath of a binding for the action specified in action. This "binding path" is any top level pathname:/user path plus an applicable input subpath, for example pathname:/user/hand/right/input/trigger/click. See input-suggested-bindings for more details.
    • action

      public XrActionSuggestedBinding action(XrAction value)
      Sets the specified value to the action() field.
    • binding

      public XrActionSuggestedBinding binding(long value)
      Sets the specified value to the binding() field.
    • set

      public XrActionSuggestedBinding set(XrAction action, long binding)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long naction(long struct)
      Unsafe version of action().
    • nbinding

      public static long nbinding(long struct)
      Unsafe version of binding().
    • naction

      public static void naction(long struct, XrAction value)
      Unsafe version of action.
    • nbinding

      public static void nbinding(long struct, long value)
      Unsafe version of binding.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate