Class RecentData

All Implemented Interfaces:
PointerInterface

public class RecentData extends Record
Meta-data to be passed to gtk_recent_manager_add_full() when
registering a recently used resource.

https://docs.gtk.org/gtk4/struct.RecentData.html

  • Field Details

    • DISPLAY_NAME

      public static final String DISPLAY_NAME
      a UTF-8 encoded string, containing the name of the recently
      used resource to be displayed, or %NULL;
      See Also:
    • DESCRIPTION

      public static final String DESCRIPTION
      a UTF-8 encoded string, containing a short description of
      the resource, or %NULL;
      See Also:
    • MIME_TYPE

      public static final String MIME_TYPE
      the MIME type of the resource;
      See Also:
    • APP_NAME

      public static final String APP_NAME
      the name of the application that is registering this recently
      used resource;
      See Also:
    • APP_EXEC

      public static final String APP_EXEC
      command line used to launch this resource; may contain the
      “\%f” and “\%u” escape characters which will be expanded
      to the resource file path and URI respectively when the command line
      is retrieved;
      See Also:
    • GROUPS

      public static final String GROUPS
      a vector of strings containing
      groups names;
      See Also:
    • IS_PRIVATE

      public static final String IS_PRIVATE
      whether this resource should be displayed only by the
      applications that have registered it or not.
      See Also:
  • Constructor Details

    • RecentData

      public RecentData(PointerContainer pointer)
    • RecentData

      public RecentData()
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • setFieldDisplayName

      public void setFieldDisplayName(Str display_name)
      a UTF-8 encoded string, containing the name of the recently
      used resource to be displayed, or %NULL;
    • getFieldDisplayName

      public Str getFieldDisplayName()
      a UTF-8 encoded string, containing the name of the recently
      used resource to be displayed, or %NULL;
    • setFieldDescription

      public void setFieldDescription(Str description)
      a UTF-8 encoded string, containing a short description of
      the resource, or %NULL;
    • getFieldDescription

      public Str getFieldDescription()
      a UTF-8 encoded string, containing a short description of
      the resource, or %NULL;
    • setFieldMimeType

      public void setFieldMimeType(Str mime_type)
      the MIME type of the resource;
    • getFieldMimeType

      public Str getFieldMimeType()
      the MIME type of the resource;
    • setFieldAppName

      public void setFieldAppName(Str app_name)
      the name of the application that is registering this recently
      used resource;
    • getFieldAppName

      public Str getFieldAppName()
      the name of the application that is registering this recently
      used resource;
    • setFieldAppExec

      public void setFieldAppExec(Str app_exec)
      command line used to launch this resource; may contain the
      “\%f” and “\%u” escape characters which will be expanded
      to the resource file path and URI respectively when the command line
      is retrieved;
    • getFieldAppExec

      public Str getFieldAppExec()
      command line used to launch this resource; may contain the
      “\%f” and “\%u” escape characters which will be expanded
      to the resource file path and URI respectively when the command line
      is retrieved;
    • setFieldGroups

      public void setFieldGroups(Strs groups)
      a vector of strings containing
      groups names;
    • getFieldGroups

      public Strs getFieldGroups()
      a vector of strings containing
      groups names;
    • setFieldIsPrivate

      public void setFieldIsPrivate(boolean is_private)
      whether this resource should be displayed only by the
      applications that have registered it or not.
    • getFieldIsPrivate

      public boolean getFieldIsPrivate()
      whether this resource should be displayed only by the
      applications that have registered it or not.