Constants¶
GLib.ANALYZER_ANALYZING
GLib.ASCII_DTOSTR_BUF_SIZE
GLib.BIG_ENDIAN
GLib.CSET_A_2_Z
GLib.CSET_DIGITS
GLib.CSET_a_2_z
GLib.DATALIST_FLAGS_MASK
GLib.DATE_BAD_DAY
GLib.DATE_BAD_JULIAN
GLib.DATE_BAD_YEAR
GLib.DIR_SEPARATOR
GLib.DIR_SEPARATOR_S
GLib.E
GLib.GINT16_FORMAT
GLib.GINT16_MODIFIER
GLib.GINT32_FORMAT
GLib.GINT32_MODIFIER
GLib.GINT64_FORMAT
GLib.GINT64_MODIFIER
GLib.GINTPTR_FORMAT
GLib.GINTPTR_MODIFIER
GLib.GNUC_FUNCTION
GLib.GNUC_PRETTY_FUNCTION
GLib.GSIZE_FORMAT
GLib.GSIZE_MODIFIER
GLib.GSSIZE_FORMAT
GLib.GSSIZE_MODIFIER
GLib.GUINT16_FORMAT
GLib.GUINT32_FORMAT
GLib.GUINT64_FORMAT
GLib.GUINTPTR_FORMAT
GLib.HAVE_GINT64
GLib.HAVE_GNUC_VARARGS
GLib.HAVE_GNUC_VISIBILITY
GLib.HAVE_GROWING_STACK
GLib.HAVE_ISO_VARARGS
GLib.HOOK_FLAG_USER_SHIFT
GLib.IEEE754_DOUBLE_BIAS
GLib.IEEE754_FLOAT_BIAS
GLib.IO_ERR
GLib.IO_FLAG_APPEND
GLib.IO_FLAG_GET_MASK
GLib.IO_FLAG_IS_READABLE
GLib.IO_FLAG_IS_SEEKABLE
GLib.IO_FLAG_IS_WRITEABLE
GLib.IO_FLAG_MASK
GLib.IO_FLAG_NONBLOCK
GLib.IO_FLAG_SET_MASK
GLib.IO_HUP
GLib.IO_IN
GLib.IO_NVAL
GLib.IO_OUT
GLib.IO_PRI
GLib.IO_STATUS_AGAIN
GLib.IO_STATUS_EOF
GLib.IO_STATUS_ERROR
GLib.IO_STATUS_NORMAL
GLib.KEY_FILE_DESKTOP_GROUP
GLib.KEY_FILE_DESKTOP_KEY_ACTIONS
GLib.KEY_FILE_DESKTOP_KEY_CATEGORIES
GLib.KEY_FILE_DESKTOP_KEY_COMMENT
GLib.KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE
GLib.KEY_FILE_DESKTOP_KEY_EXEC
GLib.KEY_FILE_DESKTOP_KEY_GENERIC_NAME
GLib.KEY_FILE_DESKTOP_KEY_HIDDEN
GLib.KEY_FILE_DESKTOP_KEY_ICON
GLib.KEY_FILE_DESKTOP_KEY_MIME_TYPE
GLib.KEY_FILE_DESKTOP_KEY_NAME
GLib.KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN
GLib.KEY_FILE_DESKTOP_KEY_NO_DISPLAY
GLib.KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN
GLib.KEY_FILE_DESKTOP_KEY_PATH
GLib.KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY
GLib.KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS
GLib.KEY_FILE_DESKTOP_KEY_TERMINAL
GLib.KEY_FILE_DESKTOP_KEY_TRY_EXEC
GLib.KEY_FILE_DESKTOP_KEY_TYPE
GLib.KEY_FILE_DESKTOP_KEY_URL
GLib.KEY_FILE_DESKTOP_KEY_VERSION
GLib.KEY_FILE_DESKTOP_TYPE_APPLICATION
GLib.KEY_FILE_DESKTOP_TYPE_DIRECTORY
GLib.KEY_FILE_DESKTOP_TYPE_LINK
GLib.LITTLE_ENDIAN
GLib.LN10
GLib.LN2
GLib.LOG_2_BASE_10
GLib.LOG_DOMAIN
GLib.LOG_FATAL_MASK
GLib.LOG_LEVEL_USER_SHIFT
GLib.MAJOR_VERSION
GLib.MAXDOUBLE
GLib.MAXFLOAT
GLib.MAXINT
GLib.MAXINT16
GLib.MAXINT32
GLib.MAXINT64
GLib.MAXINT8
GLib.MAXLONG
GLib.MAXOFFSET
GLib.MAXSHORT
GLib.MAXSIZE
GLib.MAXSSIZE
GLib.MAXUINT
GLib.MAXUINT16
GLib.MAXUINT32
GLib.MAXUINT64
GLib.MAXUINT8
GLib.MAXULONG
GLib.MAXUSHORT
GLib.MICRO_VERSION
GLib.MINDOUBLE
GLib.MINFLOAT
GLib.MININT
GLib.MININT16
GLib.MININT32
GLib.MININT64
GLib.MININT8
GLib.MINLONG
GLib.MINOFFSET
GLib.MINOR_VERSION
GLib.MINSHORT
GLib.MINSSIZE
GLib.MODULE_SUFFIX
GLib.OPTION_ERROR_BAD_VALUE
GLib.OPTION_ERROR_FAILED
GLib.OPTION_ERROR_UNKNOWN_OPTION
GLib.OPTION_FLAG_FILENAME
GLib.OPTION_FLAG_HIDDEN
GLib.OPTION_FLAG_IN_MAIN
GLib.OPTION_FLAG_NOALIAS
GLib.OPTION_FLAG_NO_ARG
GLib.OPTION_FLAG_OPTIONAL_ARG
GLib.OPTION_FLAG_REVERSE
GLib.OPTION_REMAINING
GLib.PDP_ENDIAN
GLib.PI
GLib.PID_FORMAT
GLib.PI_2
GLib.PI_4
GLib.POLLFD_FORMAT
GLib.PRIORITY_DEFAULT
GLib.PRIORITY_DEFAULT_IDLE
GLib.PRIORITY_HIGH
GLib.PRIORITY_HIGH_IDLE
GLib.PRIORITY_LOW
GLib.SEARCHPATH_SEPARATOR
GLib.SEARCHPATH_SEPARATOR_S
GLib.SIZEOF_LONG
GLib.SIZEOF_SIZE_T
GLib.SIZEOF_SSIZE_T
GLib.SIZEOF_VOID_P
GLib.SOURCE_CONTINUE
GLib.SOURCE_REMOVE
GLib.SPAWN_CHILD_INHERITS_STDIN
GLib.SPAWN_DO_NOT_REAP_CHILD
GLib.SPAWN_FILE_AND_ARGV_ZERO
GLib.SPAWN_LEAVE_DESCRIPTORS_OPEN
GLib.SPAWN_SEARCH_PATH
GLib.SPAWN_STDERR_TO_DEV_NULL
GLib.SPAWN_STDOUT_TO_DEV_NULL
GLib.SQRT2
GLib.STR_DELIMITERS
GLib.SYSDEF_AF_INET
GLib.SYSDEF_AF_INET6
GLib.SYSDEF_AF_UNIX
GLib.SYSDEF_MSG_DONTROUTE
GLib.SYSDEF_MSG_OOB
GLib.SYSDEF_MSG_PEEK
GLib.TEST_OPTION_ISOLATE_DIRS
GLib.TIME_SPAN_DAY
GLib.TIME_SPAN_HOUR
GLib.TIME_SPAN_MILLISECOND
GLib.TIME_SPAN_MINUTE
GLib.TIME_SPAN_SECOND
GLib.UNICHAR_MAX_DECOMPOSITION_LENGTH
GLib.URI_RESERVED_CHARS_GENERIC_DELIMITERS
GLib.URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS
GLib.USEC_PER_SEC
GLib.USER_DIRECTORY_DESKTOP
GLib.USER_DIRECTORY_DOCUMENTS
GLib.USER_DIRECTORY_DOWNLOAD
GLib.USER_DIRECTORY_MUSIC
GLib.USER_DIRECTORY_PICTURES
GLib.USER_DIRECTORY_PUBLIC_SHARE
GLib.USER_DIRECTORY_TEMPLATES
GLib.USER_DIRECTORY_VIDEOS
GLib.VA_COPY_AS_ARRAY
GLib.VERSION_MIN_REQUIRED
GLib.WIN32_MSG_HANDLE
GLib.glib_version
GLib.pyglib_version
Details¶
-
GLib.
ANALYZER_ANALYZING
= 1¶
-
GLib.
ASCII_DTOSTR_BUF_SIZE
= 39¶ A good size for a buffer to be passed into
GLib.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:
char buf[G_ASCII_DTOSTR_BUF_SIZE]; fprintf (out, "value=%s\n", g_ascii_dtostr (buf, sizeof (buf), value));
-
GLib.
BIG_ENDIAN
= 4321¶ Specifies one of the possible types of byte order. See #G_BYTE_ORDER.
-
GLib.
CSET_A_2_Z
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'¶ The set of uppercase ASCII alphabet characters. Used for specifying valid identifier characters in
GLib.ScannerConfig
.
-
GLib.
CSET_DIGITS
= '0123456789'¶ The set of ASCII digits. Used for specifying valid identifier characters in
GLib.ScannerConfig
.
-
GLib.
CSET_a_2_z
= 'abcdefghijklmnopqrstuvwxyz'¶ The set of lowercase ASCII alphabet characters. Used for specifying valid identifier characters in
GLib.ScannerConfig
.
-
GLib.
DATALIST_FLAGS_MASK
= 3¶ A bitmask that restricts the possible flags passed to
GLib.datalist_set_flags
(). Passing a flags value where flags & ~:obj:GLib.DATALIST_FLAGS_MASK != 0 is an error.
-
GLib.
DATE_BAD_DAY
= 0¶ Represents an invalid #GDateDay.
-
GLib.
DATE_BAD_JULIAN
= 0¶ Represents an invalid Julian day number.
-
GLib.
DATE_BAD_YEAR
= 0¶ Represents an invalid year.
-
GLib.
DIR_SEPARATOR
= 47¶ The directory separator character. This is ‘/’ on UNIX machines and ‘' under Windows.
-
GLib.
DIR_SEPARATOR_S
= '/'¶ The directory separator as a string. This is “/” on UNIX machines and “" under Windows.
-
GLib.
E
= 2.718282¶ The base of natural logarithms.
-
GLib.
GINT16_FORMAT
= 'hi'¶ 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.
gint16 in; gint32 out; sscanf ("42", "%" G_GINT16_FORMAT, &in) out = in * 1000; g_print ("%" G_GINT32_FORMAT, out);
-
GLib.
GINT16_MODIFIER
= 'h'¶ 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”;
gint16 value = 123; g_print ("%#" G_GINT16_MODIFIER "x", value);
New in version 2.4.
-
GLib.
GINT32_FORMAT
= 'i'¶ This is the platform dependent conversion specifier for scanning and printing values of type #gint32. See also
GLib.GINT16_FORMAT
.
-
GLib.
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
GLib.GINT16_MODIFIER
.New in version 2.4.
-
GLib.
GINT64_FORMAT
= 'li'¶ This is the platform dependent conversion specifier for scanning and printing values of type #gint64. See also
GLib.GINT16_FORMAT
.Some platforms do not support scanning and printing 64-bit integers, even though the types are supported. On such platforms
GLib.GINT64_FORMAT
is not defined. Note that scanf() may not support 64-bit integers, even ifGLib.GINT64_FORMAT
is defined. Due to its weak error handling, scanf() is not recommended for parsing anyway; consider usingGLib.ascii_strtoull
() instead.
-
GLib.
GINT64_MODIFIER
= 'l'¶ 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
GLib.GINT64_MODIFIER
is not defined.New in version 2.4.
-
GLib.
GINTPTR_FORMAT
= 'li'¶ This is the platform dependent conversion specifier for scanning and printing values of type #gintptr.
New in version 2.22.
-
GLib.
GINTPTR_MODIFIER
= 'l'¶ The platform dependent length modifier for conversion specifiers for scanning and printing values of type #gintptr or #guintptr. It is a string literal.
New in version 2.22.
-
GLib.
GNUC_FUNCTION
= ''¶ Expands to “” on all modern compilers, and to __FUNCTION__ on gcc version 2.x. Don’t use it.
Deprecated since version 2.16: Use G_STRFUNC() instead
-
GLib.
GNUC_PRETTY_FUNCTION
= ''¶ Expands to “” on all modern compilers, and to __PRETTY_FUNCTION__ on gcc version 2.x. Don’t use it.
Deprecated since version 2.16: Use G_STRFUNC() instead
-
GLib.
GSIZE_FORMAT
= 'lu'¶ This is the platform dependent conversion specifier for scanning and printing values of type #gsize. See also
GLib.GINT16_FORMAT
.New in version 2.6.
-
GLib.
GSIZE_MODIFIER
= 'l'¶ The platform dependent length modifier for conversion specifiers for scanning and printing values of type #gsize. It is a string literal.
New in version 2.6.
-
GLib.
GSSIZE_FORMAT
= 'li'¶ This is the platform dependent conversion specifier for scanning and printing values of type #gssize. See also
GLib.GINT16_FORMAT
.New in version 2.6.
-
GLib.
GSSIZE_MODIFIER
= 'l'¶ The platform dependent length modifier for conversion specifiers for scanning and printing values of type #gssize. It is a string literal.
New in version 2.6.
-
GLib.
GUINT16_FORMAT
= 'hu'¶ This is the platform dependent conversion specifier for scanning and printing values of type #guint16. See also
GLib.GINT16_FORMAT
-
GLib.
GUINT32_FORMAT
= 'u'¶ This is the platform dependent conversion specifier for scanning and printing values of type #guint32. See also
GLib.GINT16_FORMAT
.
-
GLib.
GUINT64_FORMAT
= 'lu'¶ This is the platform dependent conversion specifier for scanning and printing values of type #guint64. See also
GLib.GINT16_FORMAT
.Some platforms do not support scanning and printing 64-bit integers, even though the types are supported. On such platforms
GLib.GUINT64_FORMAT
is not defined. Note that scanf() may not support 64-bit integers, even ifGLib.GINT64_FORMAT
is defined. Due to its weak error handling, scanf() is not recommended for parsing anyway; consider usingGLib.ascii_strtoull
() instead.
-
GLib.
GUINTPTR_FORMAT
= 'lu'¶ This is the platform dependent conversion specifier for scanning and printing values of type #guintptr.
New in version 2.22.
-
GLib.
HAVE_GINT64
= 1¶
-
GLib.
HAVE_GNUC_VARARGS
= 1¶
-
GLib.
HAVE_GNUC_VISIBILITY
= 1¶ Defined to 1 if gcc-style visibility handling is supported.
-
GLib.
HAVE_GROWING_STACK
= 0¶
-
GLib.
HAVE_ISO_VARARGS
= 1¶
-
GLib.
HOOK_FLAG_USER_SHIFT
= 4¶ The position of the first bit which is not reserved for internal use be the
GLib.Hook
implementation, i.e.1 << G_HOOK_FLAG_USER_SHIFT
is the first bit which can be used for application-defined flags.
-
GLib.
IEEE754_DOUBLE_BIAS
= 1023¶ The bias by which exponents in double-precision floats are offset.
-
GLib.
IEEE754_FLOAT_BIAS
= 127¶ The bias by which exponents in single-precision floats are offset.
-
GLib.
IO_ERR
= <flags ERR of type IOCondition>¶
-
GLib.
IO_FLAG_APPEND
= <flags APPEND | MASK | GET_MASK | SET_MASK of type IOFlags>¶
-
GLib.
IO_FLAG_GET_MASK
= <flags APPEND | NONBLOCK | IS_READABLE | IS_WRITABLE | IS_WRITEABLE | IS_SEEKABLE | MASK | GET_MASK | SET_MASK of type IOFlags>¶
-
GLib.
IO_FLAG_IS_READABLE
= <flags IS_READABLE | MASK | GET_MASK of type IOFlags>¶
-
GLib.
IO_FLAG_IS_SEEKABLE
= <flags IS_SEEKABLE | MASK | GET_MASK of type IOFlags>¶
-
GLib.
IO_FLAG_IS_WRITEABLE
= <flags IS_WRITABLE | IS_WRITEABLE | MASK | GET_MASK of type IOFlags>¶
-
GLib.
IO_FLAG_MASK
= <flags APPEND | NONBLOCK | IS_READABLE | IS_WRITABLE | IS_WRITEABLE | IS_SEEKABLE | MASK | GET_MASK | SET_MASK of type IOFlags>¶
-
GLib.
IO_FLAG_NONBLOCK
= <flags NONBLOCK | MASK | GET_MASK | SET_MASK of type IOFlags>¶
-
GLib.
IO_FLAG_SET_MASK
= <flags APPEND | NONBLOCK | MASK | GET_MASK | SET_MASK of type IOFlags>¶
-
GLib.
IO_HUP
= <flags HUP of type IOCondition>¶
-
GLib.
IO_IN
= <flags IN of type IOCondition>¶
-
GLib.
IO_NVAL
= <flags NVAL of type IOCondition>¶
-
GLib.
IO_OUT
= <flags OUT of type IOCondition>¶
-
GLib.
IO_PRI
= <flags PRI of type IOCondition>¶
-
GLib.
IO_STATUS_AGAIN
= <enum AGAIN of type IOStatus>¶
-
GLib.
IO_STATUS_EOF
= <enum EOF of type IOStatus>¶
-
GLib.
IO_STATUS_ERROR
= <enum ERROR of type IOStatus>¶
-
GLib.
IO_STATUS_NORMAL
= <enum NORMAL of type IOStatus>¶
-
GLib.
KEY_FILE_DESKTOP_GROUP
= 'Desktop Entry'¶ The name of the main group of a desktop entry file, as defined in the Desktop Entry Specification. Consult the specification for more details about the meanings of the keys below.
New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_ACTIONS
= 'Actions'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a string list giving the available application actions.New in version 2.38.
-
GLib.
KEY_FILE_DESKTOP_KEY_CATEGORIES
= 'Categories'¶ A key under
GLib.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.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_COMMENT
= 'Comment'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a localized string giving the tooltip for the desktop entry.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE
= 'DBusActivatable'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a boolean set to true if the application is D-Bus activatable.New in version 2.38.
-
GLib.
KEY_FILE_DESKTOP_KEY_EXEC
= 'Exec'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a string giving the command line to execute. It is only valid for desktop entries with theApplication
type.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_GENERIC_NAME
= 'GenericName'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a localized string giving the generic name of the desktop entry.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_HIDDEN
= 'Hidden'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a boolean stating whether the desktop entry has been deleted by the user.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_ICON
= 'Icon'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a localized string giving the name of the icon to be displayed for the desktop entry.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_MIME_TYPE
= 'MimeType'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a list of strings giving the MIME types supported by this desktop entry.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_NAME
= 'Name'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a localized string giving the specific name of the desktop entry.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN
= 'NotShowIn'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a list of strings identifying the environments that should not display the desktop entry.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_NO_DISPLAY
= 'NoDisplay'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a boolean stating whether the desktop entry should be shown in menus.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN
= 'OnlyShowIn'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a list of strings identifying the environments that should display the desktop entry.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_PATH
= 'Path'¶ A key under
GLib.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 theApplication
type.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY
= 'StartupNotify'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a boolean stating whether the application supports the Startup Notification Protocol Specification.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS
= 'StartupWMClass'¶ A key under
GLib.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.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_TERMINAL
= 'Terminal'¶ A key under
GLib.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 theApplication
type.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_TRY_EXEC
= 'TryExec'¶ A key under
GLib.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 theApplication
type.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_TYPE
= 'Type'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a string giving the type of the desktop entry. UsuallyGLib.KEY_FILE_DESKTOP_TYPE_APPLICATION
,GLib.KEY_FILE_DESKTOP_TYPE_LINK
, orGLib.KEY_FILE_DESKTOP_TYPE_DIRECTORY
.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_URL
= 'URL'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a string giving the URL to access. It is only valid for desktop entries with theLink
type.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_KEY_VERSION
= 'Version'¶ A key under
GLib.KEY_FILE_DESKTOP_GROUP
, whose value is a string giving the version of the Desktop Entry Specification used for the desktop entry file.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_TYPE_APPLICATION
= 'Application'¶ The value of the
GLib.KEY_FILE_DESKTOP_KEY_TYPE
, key for desktop entries representing applications.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_TYPE_DIRECTORY
= 'Directory'¶ The value of the
GLib.KEY_FILE_DESKTOP_KEY_TYPE
, key for desktop entries representing directories.New in version 2.14.
-
GLib.
KEY_FILE_DESKTOP_TYPE_LINK
= 'Link'¶ The value of the
GLib.KEY_FILE_DESKTOP_KEY_TYPE
, key for desktop entries representing links to documents.New in version 2.14.
-
GLib.
LITTLE_ENDIAN
= 1234¶ Specifies one of the possible types of byte order. See #G_BYTE_ORDER.
-
GLib.
LN10
= 2.302585¶ The natural logarithm of 10.
-
GLib.
LN2
= 0.693147¶ The natural logarithm of 2.
-
GLib.
LOG_2_BASE_10
= 0.30103¶ Multiplying the base 2 exponent by this number yields the base 10 exponent.
-
GLib.
LOG_DOMAIN
= 0¶ Defines the log domain. See 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
orbloatpad-io
.If undefined, it defaults to the default
None
(or""
) log domain; this is not advisable, as it cannot be filtered against using theG_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
None
(or""
) domain. However, defining the domain offers the same advantages as above.
-
GLib.
LOG_FATAL_MASK
= 5¶ GLib log levels that are considered fatal by default.
This is not used if structured logging is enabled; see Using Structured Logging.
-
GLib.
LOG_LEVEL_USER_SHIFT
= 8¶ Log levels below 1<<
GLib.LOG_LEVEL_USER_SHIFT
are used by GLib. Higher bits can be used for user-defined log levels.
-
GLib.
MAJOR_VERSION
= 2¶ 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.
-
GLib.
MAXDOUBLE
= 1.7976931348623157e+308¶
-
GLib.
MAXFLOAT
= 3.4028234663852886e+38¶
-
GLib.
MAXINT
= 2147483647¶
-
GLib.
MAXINT16
= 32767¶ The maximum value which can be held in a #gint16.
New in version 2.4.
-
GLib.
MAXINT32
= 2147483647¶ The maximum value which can be held in a #gint32.
New in version 2.4.
-
GLib.
MAXINT64
= 9223372036854775807¶ The maximum value which can be held in a #gint64.
-
GLib.
MAXINT8
= 127¶ The maximum value which can be held in a #gint8.
New in version 2.4.
-
GLib.
MAXLONG
= 9223372036854775807¶
-
GLib.
MAXOFFSET
= 9223372036854775807¶
-
GLib.
MAXSHORT
= 32767¶
-
GLib.
MAXSIZE
= 18446744073709551615¶
-
GLib.
MAXSSIZE
= 9223372036854775807¶
-
GLib.
MAXUINT
= 4294967295¶
-
GLib.
MAXUINT16
= 65535¶ The maximum value which can be held in a #guint16.
New in version 2.4.
-
GLib.
MAXUINT32
= 4294967295¶ The maximum value which can be held in a #guint32.
New in version 2.4.
-
GLib.
MAXUINT64
= 18446744073709551615¶ The maximum value which can be held in a #guint64.
-
GLib.
MAXUINT8
= 255¶ The maximum value which can be held in a #guint8.
New in version 2.4.
-
GLib.
MAXULONG
= 18446744073709551615¶
-
GLib.
MAXUSHORT
= 65535¶
-
GLib.
MICRO_VERSION
= 2¶ 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.
-
GLib.
MINDOUBLE
= 2.2250738585072014e-308¶
-
GLib.
MINFLOAT
= 1.1754943508222875e-38¶
-
GLib.
MININT
= -2147483648¶
-
GLib.
MININT16
= -32768¶ The minimum value which can be held in a #gint16.
New in version 2.4.
-
GLib.
MININT32
= -2147483648¶ The minimum value which can be held in a #gint32.
New in version 2.4.
-
GLib.
MININT64
= -9223372036854775808¶ The minimum value which can be held in a #gint64.
-
GLib.
MININT8
= -128¶ The minimum value which can be held in a #gint8.
New in version 2.4.
-
GLib.
MINLONG
= -9223372036854775808¶
-
GLib.
MINOFFSET
= -9223372036854775808¶
-
GLib.
MINOR_VERSION
= 66¶ 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.
-
GLib.
MINSHORT
= -32768¶
-
GLib.
MINSSIZE
= -9223372036854775808¶
-
GLib.
MODULE_SUFFIX
= 'so'¶
-
GLib.
OPTION_ERROR_BAD_VALUE
= <enum BAD_VALUE of type OptionError>¶
-
GLib.
OPTION_ERROR_FAILED
= <enum FAILED of type OptionError>¶
-
GLib.
OPTION_ERROR_UNKNOWN_OPTION
= <enum UNKNOWN_OPTION of type OptionError>¶
-
GLib.
OPTION_FLAG_FILENAME
= <flags FILENAME of type OptionFlags>¶
-
GLib.
OPTION_FLAG_HIDDEN
= <flags HIDDEN of type OptionFlags>¶
-
GLib.
OPTION_FLAG_IN_MAIN
= <flags IN_MAIN of type OptionFlags>¶
-
GLib.
OPTION_FLAG_NOALIAS
= <flags NOALIAS of type OptionFlags>¶
-
GLib.
OPTION_FLAG_NO_ARG
= <flags NO_ARG of type OptionFlags>¶
-
GLib.
OPTION_FLAG_OPTIONAL_ARG
= <flags OPTIONAL_ARG of type OptionFlags>¶
-
GLib.
OPTION_FLAG_REVERSE
= <flags REVERSE of type OptionFlags>¶
-
GLib.
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 typeGLib.OptionArg.CALLBACK
,GLib.OptionArg.STRING_ARRAY
orGLib.OptionArg.FILENAME_ARRAY
.Using
GLib.OPTION_REMAINING
instead of simply scanningargv
for leftover arguments has the advantage that GOption takes care of necessary encoding conversions for strings or filenames.New in version 2.6.
-
GLib.
PDP_ENDIAN
= 3412¶ Specifies one of the possible types of byte order (currently unused). See #G_BYTE_ORDER.
-
GLib.
PI
= 3.141593¶ The value of pi (ratio of circle’s circumference to its diameter).
-
GLib.
PID_FORMAT
= 'i'¶ A format specifier that can be used in printf()-style format strings when printing a #GPid.
New in version 2.50.
-
GLib.
PI_2
= 1.570796¶ Pi divided by 2.
-
GLib.
PI_4
= 0.785398¶ Pi divided by 4.
-
GLib.
POLLFD_FORMAT
= '%d'¶ A format specifier that can be used in printf()-style format strings when printing the fd member of a
GLib.PollFD
.
-
GLib.
PRIORITY_DEFAULT
= 0¶ Use this for default priority event sources.
In GLib this priority is used when adding timeout functions with
GLib.timeout_add
(). In GDK this priority is used for events from the X server.
-
GLib.
PRIORITY_DEFAULT_IDLE
= 200¶ Use this for default priority idle functions.
In GLib this priority is used when adding idle functions with
GLib.idle_add
().
-
GLib.
PRIORITY_HIGH
= -100¶ Use this for high priority event sources.
It is not used within GLib or GTK+.
-
GLib.
PRIORITY_HIGH_IDLE
= 100¶ Use this for high priority idle functions.
GTK+ uses
GLib.PRIORITY_HIGH_IDLE
+ 10 for resizing operations, andGLib.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.)
-
GLib.
PRIORITY_LOW
= 300¶ Use this for very low priority background tasks.
It is not used within GLib or GTK+.
-
GLib.
SEARCHPATH_SEPARATOR
= 58¶ The search path separator character. This is ‘:’ on UNIX machines and ‘;’ under Windows.
-
GLib.
SEARCHPATH_SEPARATOR_S
= ':'¶ The search path separator as a string. This is “:” on UNIX machines and “;” under Windows.
-
GLib.
SIZEOF_LONG
= 8¶
-
GLib.
SIZEOF_SIZE_T
= 8¶
-
GLib.
SIZEOF_SSIZE_T
= 8¶
-
GLib.
SIZEOF_VOID_P
= 8¶
-
GLib.
SOURCE_CONTINUE
= 1¶ Use this macro as the return value of a
GLib.SourceFunc
to leave theGLib.Source
in the main loop.New in version 2.32.
-
GLib.
SOURCE_REMOVE
= 0¶ Use this macro as the return value of a
GLib.SourceFunc
to remove theGLib.Source
from the main loop.New in version 2.32.
-
GLib.
SPAWN_CHILD_INHERITS_STDIN
= <flags CHILD_INHERITS_STDIN of type SpawnFlags>¶
-
GLib.
SPAWN_DO_NOT_REAP_CHILD
= <flags DO_NOT_REAP_CHILD of type SpawnFlags>¶
-
GLib.
SPAWN_FILE_AND_ARGV_ZERO
= <flags FILE_AND_ARGV_ZERO of type SpawnFlags>¶
-
GLib.
SPAWN_LEAVE_DESCRIPTORS_OPEN
= <flags LEAVE_DESCRIPTORS_OPEN of type SpawnFlags>¶
-
GLib.
SPAWN_SEARCH_PATH
= <flags SEARCH_PATH of type SpawnFlags>¶
-
GLib.
SPAWN_STDERR_TO_DEV_NULL
= <flags STDERR_TO_DEV_NULL of type SpawnFlags>¶
-
GLib.
SPAWN_STDOUT_TO_DEV_NULL
= <flags STDOUT_TO_DEV_NULL of type SpawnFlags>¶
-
GLib.
SQRT2
= 1.414214¶ The square root of two.
-
GLib.
STR_DELIMITERS
= '_-|> <.'¶ The standard delimiters, used in
GLib.strdelimit
().
-
GLib.
SYSDEF_AF_INET
= 2¶
-
GLib.
SYSDEF_AF_INET6
= 10¶
-
GLib.
SYSDEF_AF_UNIX
= 1¶
-
GLib.
SYSDEF_MSG_DONTROUTE
= 4¶
-
GLib.
SYSDEF_MSG_OOB
= 1¶
-
GLib.
SYSDEF_MSG_PEEK
= 2¶
-
GLib.
TEST_OPTION_ISOLATE_DIRS
= '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
GLib.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.
GLib.get_home_dir
()GLib.get_user_cache_dir
()GLib.get_system_config_dirs
()GLib.get_user_config_dir
()GLib.get_system_data_dirs
()GLib.get_user_data_dir
()GLib.get_user_runtime_dir
()
The subdirectories may not be created by the test harness; as with normal calls to functions like
GLib.get_user_cache_dir
(), the caller must be prepared to create the directory if it doesn’t exist.New in version 2.60.
-
GLib.
TIME_SPAN_DAY
= 86400000000¶ Evaluates to a time span of one day.
New in version 2.26.
-
GLib.
TIME_SPAN_HOUR
= 3600000000¶ Evaluates to a time span of one hour.
New in version 2.26.
-
GLib.
TIME_SPAN_MILLISECOND
= 1000¶ Evaluates to a time span of one millisecond.
New in version 2.26.
-
GLib.
TIME_SPAN_MINUTE
= 60000000¶ Evaluates to a time span of one minute.
New in version 2.26.
-
GLib.
TIME_SPAN_SECOND
= 1000000¶ Evaluates to a time span of one second.
New in version 2.26.
-
GLib.
UNICHAR_MAX_DECOMPOSITION_LENGTH
= 18¶ The maximum length (in codepoints) of a compatibility or canonical decomposition of a single Unicode character.
This is as defined by Unicode 6.1.
New in version 2.32.
-
GLib.
URI_RESERVED_CHARS_GENERIC_DELIMITERS
= ':/?#[]@'¶ Generic delimiters characters as defined in RFC 3986. Includes
:/?#[]@
.New in version 2.16.
-
GLib.
URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS
= "!$&'()*+,;="¶ Subcomponent delimiter characters as defined in RFC 3986. Includes
!$&'()*+,;=
.New in version 2.16.
-
GLib.
USEC_PER_SEC
= 1000000¶ Number of microseconds in one second (1 million). This macro is provided for code readability.
-
GLib.
USER_DIRECTORY_DESKTOP
= <enum DIRECTORY_DESKTOP of type UserDirectory>¶
-
GLib.
USER_DIRECTORY_DOCUMENTS
= <enum DIRECTORY_DOCUMENTS of type UserDirectory>¶
-
GLib.
USER_DIRECTORY_DOWNLOAD
= <enum DIRECTORY_DOWNLOAD of type UserDirectory>¶
-
GLib.
USER_DIRECTORY_MUSIC
= <enum DIRECTORY_MUSIC of type UserDirectory>¶
-
GLib.
USER_DIRECTORY_PICTURES
= <enum DIRECTORY_PICTURES of type UserDirectory>¶
-
GLib.
USER_DIRECTORY_PUBLIC_SHARE
= <enum DIRECTORY_PUBLIC_SHARE of type UserDirectory>¶
-
GLib.
USER_DIRECTORY_TEMPLATES
= <enum DIRECTORY_TEMPLATES of type UserDirectory>¶
-
GLib.
USER_DIRECTORY_VIDEOS
= <enum DIRECTORY_VIDEOS of type UserDirectory>¶
-
GLib.
VA_COPY_AS_ARRAY
= 1¶
-
GLib.
VERSION_MIN_REQUIRED
= 2¶ 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).New in version 2.32.
-
GLib.
WIN32_MSG_HANDLE
= 19981206¶
-
GLib.
glib_version
= (2, 66, 2)¶
-
GLib.
pyglib_version
= (0, 0, 11, 2, -1)¶