Class StaticPadTemplate

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.gst.StaticPadTemplate
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class StaticPadTemplate extends ProxyInstance
Structure describing the GstStaticPadTemplate.
  • Constructor Details

    • StaticPadTemplate

      public StaticPadTemplate(MemorySegment address)
      Create a StaticPadTemplate proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • StaticPadTemplate

      public StaticPadTemplate(Arena arena)
      Allocate a new StaticPadTemplate.
      Parameters:
      arena - to control the memory allocation scope
    • StaticPadTemplate

      public StaticPadTemplate()
      Allocate a new StaticPadTemplate. The memory is allocated with Arena.ofAuto().
    • StaticPadTemplate

      public StaticPadTemplate(String nameTemplate, PadDirection direction, PadPresence presence, StaticCaps staticCaps, Arena arena)
      Allocate a new StaticPadTemplate with the fields set to the provided values.
      Parameters:
      nameTemplate - value for the field nameTemplate
      direction - value for the field direction
      presence - value for the field presence
      staticCaps - value for the field staticCaps
      arena - to control the memory allocation scope
    • StaticPadTemplate

      public StaticPadTemplate(String nameTemplate, PadDirection direction, PadPresence presence, StaticCaps staticCaps)
      Allocate a new StaticPadTemplate with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      nameTemplate - value for the field nameTemplate
      direction - value for the field direction
      presence - value for the field presence
      staticCaps - value for the field staticCaps
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the StaticPadTemplate class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readNameTemplate

      public String readNameTemplate()
      Read the value of the field name_template.
      Returns:
      The value of the field name_template
    • writeNameTemplate

      public void writeNameTemplate(String nameTemplate, Arena _arena)
      Write a value in the field name_template.
      Parameters:
      nameTemplate - The new value for the field name_template
      _arena - to control the memory allocation scope
    • readDirection

      public PadDirection readDirection()
      Read the value of the field direction.
      Returns:
      The value of the field direction
    • writeDirection

      public void writeDirection(PadDirection direction)
      Write a value in the field direction.
      Parameters:
      direction - The new value for the field direction
    • readPresence

      public PadPresence readPresence()
      Read the value of the field presence.
      Returns:
      The value of the field presence
    • writePresence

      public void writePresence(PadPresence presence)
      Write a value in the field presence.
      Parameters:
      presence - The new value for the field presence
    • readStaticCaps

      public @Nullable StaticCaps readStaticCaps()
      Read the value of the field static_caps.
      Returns:
      The value of the field static_caps
    • writeStaticCaps

      public void writeStaticCaps(@Nullable StaticCaps staticCaps)
      Write a value in the field static_caps.
      Parameters:
      staticCaps - The new value for the field static_caps
    • get

      public @Nullable PadTemplate get()
      Converts a GstStaticPadTemplate into a GstPadTemplate.
      Returns:
      a new GstPadTemplate.
    • getCaps

      public Caps getCaps()
      Gets the capabilities of the static pad template.
      Returns:
      the GstCaps of the static pad template. Unref after usage. Since the core holds an additional ref to the returned caps, use gst_caps_make_writable() on the returned caps to modify it.