Interface GlibConstants


public interface GlibConstants
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
    A good size for a buffer to be passed into g_ascii_dtostr().
    static final int
    Specifies one of the possible types of byte order.
    static final String
    The set of lowercase ASCII alphabet characters.
    static final String
    The set of uppercase ASCII alphabet characters.
    static final String
    The set of ASCII digits.
    static final int
    A bitmask that restricts the possible flags passed to
    g_datalist_set_flags().
    static final int
    Represents an invalid #GDateDay.
    static final int
    Represents an invalid Julian day number.
    static final int
    Represents an invalid year.
    static final int
    The directory separator character.
    static final String
    The directory separator as a string.
    static final double
    The base of natural logarithms.
    static final String
    This is the platform dependent conversion specifier for scanning and
    printing values of type #gint16.
    static final String
    The platform dependent length modifier for conversion specifiers
    for scanning and printing values of type #gint16 or #guint16.
    static final String
    This is the platform dependent conversion specifier for scanning
    and printing values of type #gint32.
    static final String
    The platform dependent length modifier for conversion specifiers
    for scanning and printing values of type #gint32 or #guint32.
    static final String
    This is the platform dependent conversion specifier for scanning
    and printing values of type #gint64.
    static final String
    The platform dependent length modifier for conversion specifiers
    for scanning and printing values of type #gint64 or #guint64.
    static final String
    This is the platform dependent conversion specifier for scanning
    and printing values of type #gintptr.
    static final String
    The platform dependent length modifier for conversion specifiers
    for scanning and printing values of type #gintptr or #guintptr.
    static final String
    Expands to "" on all modern compilers, and to __FUNCTION__ on gcc
    version 2.x.
    static final String
    Expands to "" on all modern compilers, and to __PRETTY_FUNCTION__
    on gcc version 2.x.
    static final String
    This is the platform dependent conversion specifier for scanning
    and printing values of type #gsize.
    static final String
    The platform dependent length modifier for conversion specifiers
    for scanning and printing values of type #gsize.
    static final String
    This is the platform dependent conversion specifier for scanning
    and printing values of type #gssize.
    static final String
    The platform dependent length modifier for conversion specifiers
    for scanning and printing values of type #gssize.
    static final String
    This is the platform dependent conversion specifier for scanning
    and printing values of type #guint16.
    static final String
    This is the platform dependent conversion specifier for scanning
    and printing values of type #guint32.
    static final String
    This is the platform dependent conversion specifier for scanning
    and printing values of type #guint64.
    static final String
    This is the platform dependent conversion specifier
    for scanning and printing values of type #guintptr.
    static final int
     
    static final int
     
    static final int
    Defined to 1 if gcc-style visibility handling is supported.
    static final int
     
    static final int
     
    static final int
    The position of the first bit which is not reserved for internal
    use be the #GHook implementation, i.e.
    static final int
    The bias by which exponents in double-precision floats are offset.
    static final int
    The bias by which exponents in single-precision floats are offset.
    static final String
    The name of the main group of a desktop entry file, as defined in the
    [Desktop Entry Specification](http://freedesktop.org/Standards/desktop-entry-spec).
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string list
    giving the available application actions.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list
    of strings giving the categories in which the desktop entry
    should be shown in a menu.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
    string giving the tooltip for the desktop entry.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
    set to true if the application is D-Bus activatable.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
    giving the command line to execute.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
    string giving the generic name of the desktop entry.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
    stating whether the desktop entry has been deleted by the user.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
    string giving the name of the icon to be displayed for the desktop
    entry.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list
    of strings giving the MIME types supported by this desktop entry.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
    string giving the specific name of the desktop entry.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
    stating whether the desktop entry should be shown in menus.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of
    strings identifying the environments that should not display the
    desktop entry.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of
    strings identifying the environments that should display the
    desktop entry.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
    containing the working directory to run the program in.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
    stating whether the application supports the
    [Startup Notification Protocol Specification](http://www.freedesktop.org/Standards/startup-notification-spec).
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is string
    identifying the WM class or name hint of a window that the application
    will create, which can be used to emulate Startup Notification with
    older applications.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
    stating whether the program should be run in a terminal window.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
    giving the file name of a binary on disk used to determine if the
    program is actually installed.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
    giving the type of the desktop entry.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
    giving the URL to access.
    static final String
    A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
    giving the version of the Desktop Entry Specification used for
    the desktop entry file.
    static final String
    The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
    entries representing applications.
    static final String
    The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
    entries representing directories.
    static final String
    The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
    entries representing links to documents.
    static final int
    Specifies one of the possible types of byte order.
    static final double
    The natural logarithm of 10.
    static final double
    The natural logarithm of 2.
    static final double
    Multiplying the base 2 exponent by this number yields the base 10 exponent.
    static final byte
    Defines the log domain.
    static final int
    GLib log levels that are considered fatal by default.
    static final int
    Log levels below 1<<G_LOG_LEVEL_USER_SHIFT are used by GLib.
    static final int
     
    static final int
    The major version number of the GLib library.
    static final int
    The maximum value which can be held in a #gint16.
    static final int
    The maximum value which can be held in a #gint32.
    static final int
    The maximum value which can be held in a #gint8.
    static final int
    The maximum value which can be held in a #guint16.
    static final int
    The maximum value which can be held in a #guint8.
    static final int
    The micro version number of the GLib library.
    static final int
    The minimum value which can be held in a #gint16.
    static final int
    The minimum value which can be held in a #gint32.
    static final int
    The minimum value which can be held in a #gint8.
    static final int
    The minor version number of the GLib library.
    static final String
     
    static final String
    If a long option in the main group has this name, it is not treated as a
    regular option.
    static final int
    Specifies one of the possible types of byte order
    (currently unused).
    static final double
    The value of pi (ratio of circle's circumference to its diameter).
    static final double
    Pi divided by 2.
    static final double
    Pi divided by 4.
    static final String
    A format specifier that can be used in printf()-style format strings
    when printing a #GPid.
    static final String
    A format specifier that can be used in printf()-style format strings
    when printing the @fd member of a #GPollFD.
    static final int
    Use this for default priority event sources.
    static final int
    Use this for default priority idle functions.
    static final int
    Use this for high priority event sources.
    static final int
    Use this for high priority idle functions.
    static final int
    Use this for very low priority background tasks.
    static final int
    The search path separator character.
    static final String
    The search path separator as a string.
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final boolean
    Use this macro as the return value of a #GSourceFunc to leave
    the #GSource in the main loop.
    static final boolean
    Use this macro as the return value of a #GSourceFunc to remove
    the #GSource from the main loop.
    static final double
    The square root of two.
    static final String
    The standard delimiters, used in g_strdelimit().
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final String
    Creates a unique temporary directory for each unit test and uses
    g_set_user_dirs() to set XDG directories to point into subdirectories of it
    for the duration of the unit test.
    static final long
    Evaluates to a time span of one millisecond.
    static final long
    Evaluates to a time span of one minute.
    static final long
    Evaluates to a time span of one second.
    static final int
    The maximum length (in codepoints) of a compatibility or canonical
    decomposition of a single Unicode character.
    static final String
    Generic delimiters characters as defined in
    [RFC 3986](https://tools.ietf.org/html/rfc3986).
    static final String
    Subcomponent delimiter characters as defined in
    [RFC 3986](https://tools.ietf.org/html/rfc3986).
    static final int
    Number of microseconds in one second (1 million).
    static final int
     
    static final int
    A macro that should be defined by the user prior to including
    the glib.h header.
    static final int
     
  • Field Details

    • ANALYZER_ANALYZING

      static final int ANALYZER_ANALYZING
      See Also:
    • ASCII_DTOSTR_BUF_SIZE

      static final int ASCII_DTOSTR_BUF_SIZE
      A good size for a buffer to be passed into g_ascii_dtostr().
      It is guaranteed to be enough for all output of that function
      on systems with 64bit IEEE-compatible doubles.

      The typical usage would be something like:
      <!-- language="C" -->
         char buf[G_ASCII_DTOSTR_BUF_SIZE];
       
         fprintf (out, "value=%s\n", g_ascii_dtostr (buf, sizeof (buf), value));
       
      See Also:
    • BIG_ENDIAN

      static final int BIG_ENDIAN
      Specifies one of the possible types of byte order.
      See %G_BYTE_ORDER.
      See Also:
    • CSET_A_2_Z

      static final String CSET_A_2_Z
      The set of uppercase ASCII alphabet characters.
      Used for specifying valid identifier characters
      in #GScannerConfig.
      See Also:
    • CSET_DIGITS

      static final String CSET_DIGITS
      The set of ASCII digits.
      Used for specifying valid identifier characters
      in #GScannerConfig.
      See Also:
    • CSET_a_2_z

      static final String CSET_a_2_z
      The set of lowercase ASCII alphabet characters.
      Used for specifying valid identifier characters
      in #GScannerConfig.
      See Also:
    • DATALIST_FLAGS_MASK

      static final int DATALIST_FLAGS_MASK
      A bitmask that restricts the possible flags passed to
      g_datalist_set_flags(). Passing a flags value where
      flags & ~G_DATALIST_FLAGS_MASK != 0 is an error.
      See Also:
    • DATE_BAD_DAY

      static final int DATE_BAD_DAY
      Represents an invalid #GDateDay.
      See Also:
    • DATE_BAD_JULIAN

      static final int DATE_BAD_JULIAN
      Represents an invalid Julian day number.
      See Also:
    • DATE_BAD_YEAR

      static final int DATE_BAD_YEAR
      Represents an invalid year.
      See Also:
    • DIR_SEPARATOR

      static final int DIR_SEPARATOR
      The directory separator character.
      This is '/' on UNIX machines and '\' under Windows.
      See Also:
    • DIR_SEPARATOR_S

      static final String DIR_SEPARATOR_S
      The directory separator as a string.
      This is "/" on UNIX machines and "\" under Windows.
      See Also:
    • E

      static final double E
      The base of natural logarithms.
      See Also:
    • GINT16_FORMAT

      static final String GINT16_FORMAT
      This is the platform dependent conversion specifier for scanning and
      printing values of type #gint16. It is a string literal, but doesn't
      include the percent-sign, such that you can add precision and length
      modifiers between percent-sign and conversion specifier.
      <!-- language="C" -->
       gint16 in;
       gint32 out;
       sscanf ("42", "%" G_GINT16_FORMAT, &in)
       out = in * 1000;
       g_print ("%" G_GINT32_FORMAT, out);
       
      See Also:
    • GINT16_MODIFIER

      static final String GINT16_MODIFIER
      The platform dependent length modifier for conversion specifiers
      for scanning and printing values of type #gint16 or #guint16. It
      is a string literal, but doesn't include the percent-sign, such
      that you can add precision and length modifiers between percent-sign
      and conversion specifier and append a conversion specifier.

      The following example prints "0x7b";
      <!-- language="C" -->
       gint16 value = 123;
       g_print ("%#" G_GINT16_MODIFIER "x", value);
       
      See Also:
    • GINT32_FORMAT

      static final String GINT32_FORMAT
      This is the platform dependent conversion specifier for scanning
      and printing values of type #gint32. See also %G_GINT16_FORMAT.
      See Also:
    • GINT32_MODIFIER

      static final String GINT32_MODIFIER
      The platform dependent length modifier for conversion specifiers
      for scanning and printing values of type #gint32 or #guint32. It
      is a string literal. See also %G_GINT16_MODIFIER.
      See Also:
    • GINT64_FORMAT

      static final String GINT64_FORMAT
      This is the platform dependent conversion specifier for scanning
      and printing values of type #gint64. See also %G_GINT16_FORMAT.

      Some platforms do not support scanning and printing 64-bit integers,
      even though the types are supported. On such platforms %G_GINT64_FORMAT
      is not defined. Note that scanf() may not support 64-bit integers, even
      if %G_GINT64_FORMAT is defined. Due to its weak error handling, scanf()
      is not recommended for parsing anyway; consider using g_ascii_strtoull()
      instead.
      See Also:
    • GINT64_MODIFIER

      static final String GINT64_MODIFIER
      The platform dependent length modifier for conversion specifiers
      for scanning and printing values of type #gint64 or #guint64.
      It is a string literal.

      Some platforms do not support printing 64-bit integers, even
      though the types are supported. On such platforms %G_GINT64_MODIFIER
      is not defined.
      See Also:
    • GINTPTR_FORMAT

      static final String GINTPTR_FORMAT
      This is the platform dependent conversion specifier for scanning
      and printing values of type #gintptr.
      See Also:
    • GINTPTR_MODIFIER

      static final String GINTPTR_MODIFIER
      The platform dependent length modifier for conversion specifiers
      for scanning and printing values of type #gintptr or #guintptr.
      It is a string literal.
      See Also:
    • GNUC_FUNCTION

      static final String GNUC_FUNCTION
      Expands to "" on all modern compilers, and to __FUNCTION__ on gcc
      version 2.x. Don't use it.
      See Also:
    • GNUC_PRETTY_FUNCTION

      static final String GNUC_PRETTY_FUNCTION
      Expands to "" on all modern compilers, and to __PRETTY_FUNCTION__
      on gcc version 2.x. Don't use it.
      See Also:
    • GSIZE_FORMAT

      static final String GSIZE_FORMAT
      This is the platform dependent conversion specifier for scanning
      and printing values of type #gsize. See also %G_GINT16_FORMAT.
      See Also:
    • GSIZE_MODIFIER

      static final String GSIZE_MODIFIER
      The platform dependent length modifier for conversion specifiers
      for scanning and printing values of type #gsize. It
      is a string literal.
      See Also:
    • GSSIZE_FORMAT

      static final String GSSIZE_FORMAT
      This is the platform dependent conversion specifier for scanning
      and printing values of type #gssize. See also %G_GINT16_FORMAT.
      See Also:
    • GSSIZE_MODIFIER

      static final String GSSIZE_MODIFIER
      The platform dependent length modifier for conversion specifiers
      for scanning and printing values of type #gssize. It
      is a string literal.
      See Also:
    • GUINT16_FORMAT

      static final String GUINT16_FORMAT
      This is the platform dependent conversion specifier for scanning
      and printing values of type #guint16. See also %G_GINT16_FORMAT
      See Also:
    • GUINT32_FORMAT

      static final String GUINT32_FORMAT
      This is the platform dependent conversion specifier for scanning
      and printing values of type #guint32. See also %G_GINT16_FORMAT.
      See Also:
    • GUINT64_FORMAT

      static final String GUINT64_FORMAT
      This is the platform dependent conversion specifier for scanning
      and printing values of type #guint64. See also %G_GINT16_FORMAT.

      Some platforms do not support scanning and printing 64-bit integers,
      even though the types are supported. On such platforms %G_GUINT64_FORMAT
      is not defined. Note that scanf() may not support 64-bit integers, even
      if %G_GINT64_FORMAT is defined. Due to its weak error handling, scanf()
      is not recommended for parsing anyway; consider using g_ascii_strtoull()
      instead.
      See Also:
    • GUINTPTR_FORMAT

      static final String GUINTPTR_FORMAT
      This is the platform dependent conversion specifier
      for scanning and printing values of type #guintptr.
      See Also:
    • HAVE_GINT64

      static final int HAVE_GINT64
      See Also:
    • HAVE_GNUC_VARARGS

      static final int HAVE_GNUC_VARARGS
      See Also:
    • HAVE_GNUC_VISIBILITY

      static final int HAVE_GNUC_VISIBILITY
      Defined to 1 if gcc-style visibility handling is supported.
      See Also:
    • HAVE_GROWING_STACK

      static final int HAVE_GROWING_STACK
      See Also:
    • HAVE_ISO_VARARGS

      static final int HAVE_ISO_VARARGS
      See Also:
    • HOOK_FLAG_USER_SHIFT

      static final int HOOK_FLAG_USER_SHIFT
      The position of the first bit which is not reserved for internal
      use be the #GHook implementation, i.e.
      `1 << G_HOOK_FLAG_USER_SHIFT` is the first
      bit which can be used for application-defined flags.
      See Also:
    • IEEE754_DOUBLE_BIAS

      static final int IEEE754_DOUBLE_BIAS
      The bias by which exponents in double-precision floats are offset.
      See Also:
    • IEEE754_FLOAT_BIAS

      static final int IEEE754_FLOAT_BIAS
      The bias by which exponents in single-precision floats are offset.
      See Also:
    • KEY_FILE_DESKTOP_GROUP

      static final String KEY_FILE_DESKTOP_GROUP
      The name of the main group of a desktop entry file, as defined in the
      [Desktop Entry Specification](http://freedesktop.org/Standards/desktop-entry-spec).
      Consult the specification for more
      details about the meanings of the keys below.
      See Also:
    • KEY_FILE_DESKTOP_KEY_ACTIONS

      static final String KEY_FILE_DESKTOP_KEY_ACTIONS
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string list
      giving the available application actions.
      See Also:
    • KEY_FILE_DESKTOP_KEY_CATEGORIES

      static final String KEY_FILE_DESKTOP_KEY_CATEGORIES
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list
      of strings giving the categories in which the desktop entry
      should be shown in a menu.
      See Also:
    • KEY_FILE_DESKTOP_KEY_COMMENT

      static final String KEY_FILE_DESKTOP_KEY_COMMENT
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
      string giving the tooltip for the desktop entry.
      See Also:
    • KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE

      static final String KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
      set to true if the application is D-Bus activatable.
      See Also:
    • KEY_FILE_DESKTOP_KEY_EXEC

      static final String KEY_FILE_DESKTOP_KEY_EXEC
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
      giving the command line to execute. It is only valid for desktop
      entries with the `Application` type.
      See Also:
    • KEY_FILE_DESKTOP_KEY_GENERIC_NAME

      static final String KEY_FILE_DESKTOP_KEY_GENERIC_NAME
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
      string giving the generic name of the desktop entry.
      See Also:
    • KEY_FILE_DESKTOP_KEY_HIDDEN

      static final String KEY_FILE_DESKTOP_KEY_HIDDEN
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
      stating whether the desktop entry has been deleted by the user.
      See Also:
    • KEY_FILE_DESKTOP_KEY_ICON

      static final String KEY_FILE_DESKTOP_KEY_ICON
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
      string giving the name of the icon to be displayed for the desktop
      entry.
      See Also:
    • KEY_FILE_DESKTOP_KEY_MIME_TYPE

      static final String KEY_FILE_DESKTOP_KEY_MIME_TYPE
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list
      of strings giving the MIME types supported by this desktop entry.
      See Also:
    • KEY_FILE_DESKTOP_KEY_NAME

      static final String KEY_FILE_DESKTOP_KEY_NAME
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized
      string giving the specific name of the desktop entry.
      See Also:
    • KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN

      static final String KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of
      strings identifying the environments that should not display the
      desktop entry.
      See Also:
    • KEY_FILE_DESKTOP_KEY_NO_DISPLAY

      static final String KEY_FILE_DESKTOP_KEY_NO_DISPLAY
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
      stating whether the desktop entry should be shown in menus.
      See Also:
    • KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN

      static final String KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of
      strings identifying the environments that should display the
      desktop entry.
      See Also:
    • KEY_FILE_DESKTOP_KEY_PATH

      static final String KEY_FILE_DESKTOP_KEY_PATH
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
      containing the working directory to run the program in. It is only
      valid for desktop entries with the `Application` type.
      See Also:
    • KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY

      static final String KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
      stating whether the application supports the
      [Startup Notification Protocol Specification](http://www.freedesktop.org/Standards/startup-notification-spec).
      See Also:
    • KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS

      static final String KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is string
      identifying the WM class or name hint of a window that the application
      will create, which can be used to emulate Startup Notification with
      older applications.
      See Also:
    • KEY_FILE_DESKTOP_KEY_TERMINAL

      static final String KEY_FILE_DESKTOP_KEY_TERMINAL
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean
      stating whether the program should be run in a terminal window.

      It is only valid for desktop entries with the `Application` type.
      See Also:
    • KEY_FILE_DESKTOP_KEY_TRY_EXEC

      static final String KEY_FILE_DESKTOP_KEY_TRY_EXEC
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
      giving the file name of a binary on disk used to determine if the
      program is actually installed. It is only valid for desktop entries
      with the `Application` type.
      See Also:
    • KEY_FILE_DESKTOP_KEY_TYPE

      static final String KEY_FILE_DESKTOP_KEY_TYPE
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
      giving the type of the desktop entry.

      Usually %G_KEY_FILE_DESKTOP_TYPE_APPLICATION,
      %G_KEY_FILE_DESKTOP_TYPE_LINK, or
      %G_KEY_FILE_DESKTOP_TYPE_DIRECTORY.
      See Also:
    • KEY_FILE_DESKTOP_KEY_URL

      static final String KEY_FILE_DESKTOP_KEY_URL
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
      giving the URL to access. It is only valid for desktop entries
      with the `Link` type.
      See Also:
    • KEY_FILE_DESKTOP_KEY_VERSION

      static final String KEY_FILE_DESKTOP_KEY_VERSION
      A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string
      giving the version of the Desktop Entry Specification used for
      the desktop entry file.
      See Also:
    • KEY_FILE_DESKTOP_TYPE_APPLICATION

      static final String KEY_FILE_DESKTOP_TYPE_APPLICATION
      The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
      entries representing applications.
      See Also:
    • KEY_FILE_DESKTOP_TYPE_DIRECTORY

      static final String KEY_FILE_DESKTOP_TYPE_DIRECTORY
      The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop
      entries representing directories.
      See Also:
    • LITTLE_ENDIAN

      static final int LITTLE_ENDIAN
      Specifies one of the possible types of byte order.
      See %G_BYTE_ORDER.
      See Also:
    • LN10

      static final double LN10
      The natural logarithm of 10.
      See Also:
    • LN2

      static final double LN2
      The natural logarithm of 2.
      See Also:
    • LOG_2_BASE_10

      static final double LOG_2_BASE_10
      Multiplying the base 2 exponent by this number yields the base 10 exponent.
      See Also:
    • LOG_DOMAIN

      static final byte LOG_DOMAIN
      Defines the log domain. See [Log Domains](#log-domains).

      Libraries should define this so that any messages
      which they log can be differentiated from messages from other
      libraries and application code. But be careful not to define
      it in any public header files.

      Log domains must be unique, and it is recommended that they are the
      application or library name, optionally followed by a hyphen and a sub-domain
      name. For example, `bloatpad` or `bloatpad-io`.

      If undefined, it defaults to the default %NULL (or `""`) log domain; this is
      not advisable, as it cannot be filtered against using the `G_MESSAGES_DEBUG`
      environment variable.

      For example, GTK+ uses this in its `Makefile.am`:
       AM_CPPFLAGS = -DG_LOG_DOMAIN=\"Gtk\"
       


      Applications can choose to leave it as the default %NULL (or `""`)
      domain. However, defining the domain offers the same advantages as
      above.
      See Also:
    • LOG_FATAL_MASK

      static final int LOG_FATAL_MASK
      GLib log levels that are considered fatal by default.

      This is not used if structured logging is enabled; see
      [Using Structured Logging][using-structured-logging].
      See Also:
    • LOG_LEVEL_USER_SHIFT

      static final int LOG_LEVEL_USER_SHIFT
      Log levels below 1<<G_LOG_LEVEL_USER_SHIFT are used by GLib.
      Higher bits can be used for user-defined log levels.
      See Also:
    • MAJOR_VERSION

      static final int MAJOR_VERSION
      The major version number of the GLib library.

      Like #glib_major_version, but from the headers used at
      application compile time, rather than from the library
      linked against at application run time.
      See Also:
    • MAXINT16

      static final int MAXINT16
      The maximum value which can be held in a #gint16.
      See Also:
    • MAXINT32

      static final int MAXINT32
      The maximum value which can be held in a #gint32.
      See Also:
    • MAXINT8

      static final int MAXINT8
      The maximum value which can be held in a #gint8.
      See Also:
    • MAXUINT16

      static final int MAXUINT16
      The maximum value which can be held in a #guint16.
      See Also:
    • MAXUINT8

      static final int MAXUINT8
      The maximum value which can be held in a #guint8.
      See Also:
    • MICRO_VERSION

      static final int MICRO_VERSION
      The micro version number of the GLib library.

      Like #gtk_micro_version, but from the headers used at
      application compile time, rather than from the library
      linked against at application run time.
      See Also:
    • MININT16

      static final int MININT16
      The minimum value which can be held in a #gint16.
      See Also:
    • MININT32

      static final int MININT32
      The minimum value which can be held in a #gint32.
      See Also:
    • MININT8

      static final int MININT8
      The minimum value which can be held in a #gint8.
      See Also:
    • MINOR_VERSION

      static final int MINOR_VERSION
      The minor version number of the GLib library.

      Like #gtk_minor_version, but from the headers used at
      application compile time, rather than from the library
      linked against at application run time.
      See Also:
    • MODULE_SUFFIX

      static final String MODULE_SUFFIX
      See Also:
    • OPTION_REMAINING

      static final String OPTION_REMAINING
      If a long option in the main group has this name, it is not treated as a
      regular option. Instead it collects all non-option arguments which would
      otherwise be left in `argv`. The option must be of type
      %G_OPTION_ARG_CALLBACK, %G_OPTION_ARG_STRING_ARRAY
      or %G_OPTION_ARG_FILENAME_ARRAY.


      Using %G_OPTION_REMAINING instead of simply scanning `argv`
      for leftover arguments has the advantage that GOption takes care of
      necessary encoding conversions for strings or filenames.
      See Also:
    • PDP_ENDIAN

      static final int PDP_ENDIAN
      Specifies one of the possible types of byte order
      (currently unused). See %G_BYTE_ORDER.
      See Also:
    • PI

      static final double PI
      The value of pi (ratio of circle's circumference to its diameter).
      See Also:
    • PID_FORMAT

      static final String PID_FORMAT
      A format specifier that can be used in printf()-style format strings
      when printing a #GPid.
      See Also:
    • PI_2

      static final double PI_2
      Pi divided by 2.
      See Also:
    • PI_4

      static final double PI_4
      Pi divided by 4.
      See Also:
    • POLLFD_FORMAT

      static final String POLLFD_FORMAT
      A format specifier that can be used in printf()-style format strings
      when printing the @fd member of a #GPollFD.
      See Also:
    • PRIORITY_DEFAULT

      static final int PRIORITY_DEFAULT
      Use this for default priority event sources.

      In GLib this priority is used when adding timeout functions
      with g_timeout_add(). In GDK this priority is used for events
      from the X server.
      See Also:
    • PRIORITY_DEFAULT_IDLE

      static final int PRIORITY_DEFAULT_IDLE
      Use this for default priority idle functions.

      In GLib this priority is used when adding idle functions with
      g_idle_add().
      See Also:
    • PRIORITY_HIGH

      static final int PRIORITY_HIGH
      Use this for high priority event sources.

      It is not used within GLib or GTK+.
      See Also:
    • PRIORITY_HIGH_IDLE

      static final int PRIORITY_HIGH_IDLE
      Use this for high priority idle functions.

      GTK+ uses %G_PRIORITY_HIGH_IDLE + 10 for resizing operations,
      and %G_PRIORITY_HIGH_IDLE + 20 for redrawing operations. (This is
      done to ensure that any pending resizes are processed before any
      pending redraws, so that widgets are not redrawn twice unnecessarily.)
      See Also:
    • PRIORITY_LOW

      static final int PRIORITY_LOW
      Use this for very low priority background tasks.

      It is not used within GLib or GTK+.
      See Also:
    • SEARCHPATH_SEPARATOR

      static final int SEARCHPATH_SEPARATOR
      The search path separator character.
      This is ':' on UNIX machines and ';' under Windows.
      See Also:
    • SEARCHPATH_SEPARATOR_S

      static final String SEARCHPATH_SEPARATOR_S
      The search path separator as a string.
      This is ":" on UNIX machines and ";" under Windows.
      See Also:
    • SIZEOF_LONG

      static final int SIZEOF_LONG
      See Also:
    • SIZEOF_SIZE_T

      static final int SIZEOF_SIZE_T
      See Also:
    • SIZEOF_SSIZE_T

      static final int SIZEOF_SSIZE_T
      See Also:
    • SIZEOF_VOID_P

      static final int SIZEOF_VOID_P
      See Also:
    • SOURCE_CONTINUE

      static final boolean SOURCE_CONTINUE
      Use this macro as the return value of a #GSourceFunc to leave
      the #GSource in the main loop.
      See Also:
    • SOURCE_REMOVE

      static final boolean SOURCE_REMOVE
      Use this macro as the return value of a #GSourceFunc to remove
      the #GSource from the main loop.
      See Also:
    • SQRT2

      static final double SQRT2
      The square root of two.
      See Also:
    • STR_DELIMITERS

      static final String STR_DELIMITERS
      The standard delimiters, used in g_strdelimit().
      See Also:
    • SYSDEF_AF_INET

      static final int SYSDEF_AF_INET
      See Also:
    • SYSDEF_AF_INET6

      static final int SYSDEF_AF_INET6
      See Also:
    • SYSDEF_AF_UNIX

      static final int SYSDEF_AF_UNIX
      See Also:
    • SYSDEF_MSG_DONTROUTE

      static final int SYSDEF_MSG_DONTROUTE
      See Also:
    • SYSDEF_MSG_OOB

      static final int SYSDEF_MSG_OOB
      See Also:
    • SYSDEF_MSG_PEEK

      static final int SYSDEF_MSG_PEEK
      See Also:
    • TEST_OPTION_ISOLATE_DIRS

      static final String TEST_OPTION_ISOLATE_DIRS
      Creates a unique temporary directory for each unit test and uses
      g_set_user_dirs() to set XDG directories to point into subdirectories of it
      for the duration of the unit test. The directory tree is cleaned up after the
      test finishes successfully. Note that this doesn’t take effect until
      g_test_run() is called, so calls to (for example) g_get_user_home_dir() will
      return the system-wide value when made in a test program’s main() function.

      The following functions will return subdirectories of the temporary directory
      when this option is used. The specific subdirectory paths in use are not
      guaranteed to be stable API — always use a getter function to retrieve them.

      - g_get_home_dir()
      - g_get_user_cache_dir()
      - g_get_system_config_dirs()
      - g_get_user_config_dir()
      - g_get_system_data_dirs()
      - g_get_user_data_dir()
      - g_get_user_state_dir()
      - g_get_user_runtime_dir()

      The subdirectories may not be created by the test harness; as with normal
      calls to functions like g_get_user_cache_dir(), the caller must be prepared
      to create the directory if it doesn’t exist.
      See Also:
    • TIME_SPAN_MILLISECOND

      static final long TIME_SPAN_MILLISECOND
      Evaluates to a time span of one millisecond.
      See Also:
    • TIME_SPAN_MINUTE

      static final long TIME_SPAN_MINUTE
      Evaluates to a time span of one minute.
      See Also:
    • TIME_SPAN_SECOND

      static final long TIME_SPAN_SECOND
      Evaluates to a time span of one second.
      See Also:
    • UNICHAR_MAX_DECOMPOSITION_LENGTH

      static final int UNICHAR_MAX_DECOMPOSITION_LENGTH
      The maximum length (in codepoints) of a compatibility or canonical
      decomposition of a single Unicode character.

      This is as defined by Unicode 6.1.
      See Also:
    • URI_RESERVED_CHARS_GENERIC_DELIMITERS

      static final String URI_RESERVED_CHARS_GENERIC_DELIMITERS
      Generic delimiters characters as defined in
      [RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `:/?#[]@`.
      See Also:
    • URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS

      static final String URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS
      Subcomponent delimiter characters as defined in
      [RFC 3986](https://tools.ietf.org/html/rfc3986). Includes `!$&'()*+,;=`.
      See Also:
    • USEC_PER_SEC

      static final int USEC_PER_SEC
      Number of microseconds in one second (1 million).
      This macro is provided for code readability.
      See Also:
    • VA_COPY_AS_ARRAY

      static final int VA_COPY_AS_ARRAY
      See Also:
    • VERSION_MIN_REQUIRED

      static final int VERSION_MIN_REQUIRED
      A macro that should be defined by the user prior to including
      the glib.h header.
      The definition should be one of the predefined GLib version
      macros: %GLIB_VERSION_2_26, %GLIB_VERSION_2_28,...

      This macro defines the earliest version of GLib that the package is
      required to be able to compile against.

      If the compiler is configured to warn about the use of deprecated
      functions, then using functions that were deprecated in version
      %GLIB_VERSION_MIN_REQUIRED or earlier will cause warnings (but
      using functions deprecated in later releases will not).
      See Also:
    • WIN32_MSG_HANDLE

      static final int WIN32_MSG_HANDLE
      See Also:
    • macro__has_attribute___noreturn__

      static final int macro__has_attribute___noreturn__
      See Also: