Class ApplicationInfo

java.lang.Object
org.javagi.base.ProxyInstance
org.webkitgtk.ApplicationInfo
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ApplicationInfo extends ProxyInstance
Information about an application running in automation mode.
  • Constructor Details

    • ApplicationInfo

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

      public ApplicationInfo()
      Creates a new WebKitApplicationInfo
      Since:
      2.18
  • Method Details

    • getType

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

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

      public String getName()

      Get the name of the application.

      If webkit_application_info_set_name() hasn't been called with a valid name, this returns g_get_prgname().

      Returns:
      the application name
      Since:
      2.18
    • getVersion

      public void getVersion(Out<Long> major, @Nullable Out<Long> minor, @Nullable Out<Long> micro)
      Get the application version previously set with webkit_application_info_set_version().
      Parameters:
      major - return location for the major version number
      minor - return location for the minor version number
      micro - return location for the micro version number
      Since:
      2.18
    • ref

      public ApplicationInfo ref()

      Atomically increments the reference count of this ApplicationInfo by one.

      This function is MT-safe and may be called from any thread.

      Returns:
      The passed in WebKitApplicationInfo
      Since:
      2.18
    • setName

      public void setName(String name)

      Set the name of the application.

      If not provided, or null is passed, g_get_prgname() will be used.

      Parameters:
      name - the application name
      Since:
      2.18
    • setVersion

      public void setVersion(long major, long minor, long micro)

      Set the application version.

      If the application doesn't use the format major.minor.micro you can pass 0 as the micro to use major.minor, or pass 0 as both micro and minor to use only major number. Any other format must be converted to major.minor.micro so that it can be used in version comparisons.

      Parameters:
      major - the major version number
      minor - the minor version number
      micro - the micro version number
      Since:
      2.18
    • unref

      public void unref()

      Atomically decrements the reference count of this ApplicationInfo by one.

      If the reference count drops to 0, all memory allocated by the WebKitApplicationInfo is released. This function is MT-safe and may be called from any thread.

      Since:
      2.18