Class RecentData

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class RecentData extends ProxyInstance
Meta-data to be passed to gtk_recent_manager_add_full() when registering a recently used resource.
  • Constructor Details

    • RecentData

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

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

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

      public RecentData(String displayName, String description, String mimeType, String appName, String appExec, String[] groups, boolean isPrivate, Arena arena)
      Allocate a new RecentData with the fields set to the provided values.
      Parameters:
      displayName - value for the field displayName
      description - value for the field description
      mimeType - value for the field mimeType
      appName - value for the field appName
      appExec - value for the field appExec
      groups - value for the field groups
      isPrivate - value for the field isPrivate
      arena - to control the memory allocation scope
    • RecentData

      public RecentData(String displayName, String description, String mimeType, String appName, String appExec, String[] groups, boolean isPrivate)
      Allocate a new RecentData with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      displayName - value for the field displayName
      description - value for the field description
      mimeType - value for the field mimeType
      appName - value for the field appName
      appExec - value for the field appExec
      groups - value for the field groups
      isPrivate - value for the field isPrivate
  • Method Details

    • getMemoryLayout

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

      public String readDisplayName()
      Read the value of the field display_name.
      Returns:
      The value of the field display_name
    • writeDisplayName

      public void writeDisplayName(String displayName, Arena _arena)
      Write a value in the field display_name.
      Parameters:
      displayName - The new value for the field display_name
      _arena - to control the memory allocation scope
    • readDescription

      public String readDescription()
      Read the value of the field description.
      Returns:
      The value of the field description
    • writeDescription

      public void writeDescription(String description, Arena _arena)
      Write a value in the field description.
      Parameters:
      description - The new value for the field description
      _arena - to control the memory allocation scope
    • readMimeType

      public String readMimeType()
      Read the value of the field mime_type.
      Returns:
      The value of the field mime_type
    • writeMimeType

      public void writeMimeType(String mimeType, Arena _arena)
      Write a value in the field mime_type.
      Parameters:
      mimeType - The new value for the field mime_type
      _arena - to control the memory allocation scope
    • readAppName

      public String readAppName()
      Read the value of the field app_name.
      Returns:
      The value of the field app_name
    • writeAppName

      public void writeAppName(String appName, Arena _arena)
      Write a value in the field app_name.
      Parameters:
      appName - The new value for the field app_name
      _arena - to control the memory allocation scope
    • readAppExec

      public String readAppExec()
      Read the value of the field app_exec.
      Returns:
      The value of the field app_exec
    • writeAppExec

      public void writeAppExec(String appExec, Arena _arena)
      Write a value in the field app_exec.
      Parameters:
      appExec - The new value for the field app_exec
      _arena - to control the memory allocation scope
    • readGroups

      public @Nullable String @Nullable [] readGroups()
      Read the value of the field groups.
      Returns:
      The value of the field groups
    • writeGroups

      public void writeGroups(@Nullable String @Nullable [] groups, Arena _arena)
      Write a value in the field groups.
      Parameters:
      groups - The new value for the field groups
      _arena - to control the memory allocation scope
    • readIsPrivate

      public boolean readIsPrivate()
      Read the value of the field is_private.
      Returns:
      The value of the field is_private
    • writeIsPrivate

      public void writeIsPrivate(boolean isPrivate)
      Write a value in the field is_private.
      Parameters:
      isPrivate - The new value for the field is_private