Constants#
- ALLOCATOR_LIST = 1#
- ALLOCATOR_NODE = 3#
- ALLOCATOR_SLIST = 2#
- ALLOC_AND_FREE = 2#
- ALLOC_ONLY = 1#
- ANALYZER_ANALYZING = 1#
- ASCII_DTOSTR_BUF_SIZE = 39#
A good size for a buffer to be passed into
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));
- ATOMIC_REF_COUNT_INIT = 1#
Evaluates to the initial reference count for
gatomicrefcount
.This macro is useful for initializing
gatomicrefcount
fields inside structures, for instance:typedef struct { gatomicrefcount ref_count; char *name; char *address; } Person; static const Person default_person = { .ref_count = G_ATOMIC_REF_COUNT_INIT, .name = "Default name", .address = "Default address", };
- BIG_ENDIAN = 4321#
Specifies one of the possible types of byte order. See
%G_BYTE_ORDER
.
- CSET_A_2_Z = ABCDEFGHIJKLMNOPQRSTUVWXYZ#
The set of uppercase ASCII alphabet characters. Used for specifying valid identifier characters in
ScannerConfig
.
- CSET_DIGITS = 0123456789#
The set of ASCII digits. Used for specifying valid identifier characters in
ScannerConfig
.
- CSET_a_2_z = abcdefghijklmnopqrstuvwxyz#
The set of lowercase ASCII alphabet characters. Used for specifying valid identifier characters in
ScannerConfig
.
- C_STD_VERSION = 199000#
The C standard version the code is compiling against, it’s normally defined with the same value of
`__STDC_VERSION__`
for C standard compatible compilers, while it uses the lowest standard version in pure MSVC, given that in such compiler the definition depends on a compilation flag.This is granted to be undefined when compiling with a C++ compiler.
See also:
%G_C_STD_CHECK_VERSION
and%G_CXX_STD_VERSION
- DATALIST_FLAGS_MASK = 3#
A bitmask that restricts the possible flags passed to
datalist_set_flags()
. Passing a flags value where flags & ~G_DATALIST_FLAGS_MASK != 0 is an error.
- DATE_BAD_DAY = 0#
Represents an invalid
DateDay
.
- DATE_BAD_JULIAN = 0#
Represents an invalid Julian day number.
- DATE_BAD_YEAR = 0#
Represents an invalid year.
- DIR_SEPARATOR = 47#
The directory separator character. This is ‘/’ on UNIX machines and ‘' under Windows.
- DIR_SEPARATOR_S = /#
The directory separator as a string. This is “/” on UNIX machines and “" under Windows.
- E = 2.718282#
The base of natural logarithms.
- GINT16_FORMAT = hi#
- GINT16_MODIFIER = h#
- GINT32_FORMAT = i#
- GINT32_MODIFIER#
- GINT64_FORMAT = li#
- GINT64_MODIFIER = l#
- GINTPTR_FORMAT = li#
- GINTPTR_MODIFIER = l#
- 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
- 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
- GSIZE_FORMAT = lu#
- GSIZE_MODIFIER = l#
- GSSIZE_FORMAT = li#
- GSSIZE_MODIFIER = l#
- GUINT16_FORMAT = hu#
- GUINT32_FORMAT = u#
- GUINT64_FORMAT = lu#
- GUINTPTR_FORMAT = lu#
- HAVE_GINT64 = 1#
- HAVE_GNUC_VARARGS = 1#
- HAVE_GNUC_VISIBILITY = 1#
Defined to 1 if gcc-style visibility handling is supported.
- HAVE_GROWING_STACK = 0#
- HAVE_ISO_VARARGS = 1#
- HOOK_FLAG_USER_SHIFT = 4#
The position of the first bit which is not reserved for internal use be the
Hook
implementation, i.e.1 << G_HOOK_FLAG_USER_SHIFT
is the first bit which can be used for application-defined flags.
- IEEE754_DOUBLE_BIAS = 1023#
The bias by which exponents in double-precision floats are offset.
- IEEE754_FLOAT_BIAS = 127#
The bias by which exponents in single-precision floats are offset.
- IO_ERR = <flags G_IO_ERR of type GLib.IOCondition>#
- IO_FLAG_APPEND = <flags G_IO_FLAG_APPEND of type GLib.IOFlags>#
Deprecated since version PyGObject-3.16.0: GLib.IO_FLAG_APPEND is deprecated; use GLib.IOFlags.APPEND instead
- IO_FLAG_GET_MASK = <flags G_IO_FLAG_APPEND | G_IO_FLAG_NONBLOCK | G_IO_FLAG_IS_READABLE | G_IO_FLAG_IS_WRITABLE | G_IO_FLAG_IS_WRITEABLE | G_IO_FLAG_IS_SEEKABLE | G_IO_FLAG_MASK | G_IO_FLAG_GET_MASK | G_IO_FLAG_SET_MASK of type GLib.IOFlags>#
Deprecated since version PyGObject-3.16.0: GLib.IO_FLAG_GET_MASK is deprecated; use GLib.IOFlags.GET_MASK instead
- IO_FLAG_IS_READABLE = <flags G_IO_FLAG_IS_READABLE of type GLib.IOFlags>#
Deprecated since version PyGObject-3.16.0: GLib.IO_FLAG_IS_READABLE is deprecated; use GLib.IOFlags.IS_READABLE instead
- IO_FLAG_IS_SEEKABLE = <flags G_IO_FLAG_IS_SEEKABLE of type GLib.IOFlags>#
Deprecated since version PyGObject-3.16.0: GLib.IO_FLAG_IS_SEEKABLE is deprecated; use GLib.IOFlags.IS_SEEKABLE instead
- IO_FLAG_IS_WRITEABLE = <flags G_IO_FLAG_IS_WRITABLE | G_IO_FLAG_IS_WRITEABLE of type GLib.IOFlags>#
Deprecated since version PyGObject-3.16.0: GLib.IO_FLAG_IS_WRITEABLE is deprecated; use GLib.IOFlags.IS_WRITABLE instead
- IO_FLAG_MASK = <flags G_IO_FLAG_APPEND | G_IO_FLAG_NONBLOCK | G_IO_FLAG_IS_READABLE | G_IO_FLAG_IS_WRITABLE | G_IO_FLAG_IS_WRITEABLE | G_IO_FLAG_IS_SEEKABLE | G_IO_FLAG_MASK | G_IO_FLAG_GET_MASK | G_IO_FLAG_SET_MASK of type GLib.IOFlags>#
Deprecated since version PyGObject-3.16.0: GLib.IO_FLAG_MASK is deprecated; use GLib.IOFlags.MASK instead
- IO_FLAG_NONBLOCK = <flags G_IO_FLAG_NONBLOCK of type GLib.IOFlags>#
Deprecated since version PyGObject-3.16.0: GLib.IO_FLAG_NONBLOCK is deprecated; use GLib.IOFlags.NONBLOCK instead
- IO_FLAG_SET_MASK = <flags G_IO_FLAG_APPEND | G_IO_FLAG_NONBLOCK | G_IO_FLAG_SET_MASK of type GLib.IOFlags>#
Deprecated since version PyGObject-3.16.0: GLib.IO_FLAG_SET_MASK is deprecated; use GLib.IOFlags.SET_MASK instead
- IO_HUP = <flags G_IO_HUP of type GLib.IOCondition>#
- IO_IN = <flags G_IO_IN of type GLib.IOCondition>#
- IO_NVAL = <flags G_IO_NVAL of type GLib.IOCondition>#
- IO_OUT = <flags G_IO_OUT of type GLib.IOCondition>#
- IO_PRI = <flags G_IO_PRI of type GLib.IOCondition>#
- IO_STATUS_AGAIN = <enum G_IO_STATUS_AGAIN of type GLib.IOStatus>#
Deprecated since version PyGObject-3.16.0: GLib.IO_STATUS_AGAIN is deprecated; use GLib.IOStatus.AGAIN instead
- IO_STATUS_EOF = <enum G_IO_STATUS_EOF of type GLib.IOStatus>#
Deprecated since version PyGObject-3.16.0: GLib.IO_STATUS_EOF is deprecated; use GLib.IOStatus.EOF instead
- IO_STATUS_ERROR = <enum G_IO_STATUS_ERROR of type GLib.IOStatus>#
Deprecated since version PyGObject-3.16.0: GLib.IO_STATUS_ERROR is deprecated; use GLib.IOStatus.ERROR instead
- IO_STATUS_NORMAL = <enum G_IO_STATUS_NORMAL of type GLib.IOStatus>#
Deprecated since version PyGObject-3.16.0: GLib.IO_STATUS_NORMAL is deprecated; use GLib.IOStatus.NORMAL instead
- 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.
- KEY_FILE_DESKTOP_KEY_ACTIONS = Actions#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a string list giving the available application actions.
- KEY_FILE_DESKTOP_KEY_CATEGORIES = Categories#
A key under
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.
- KEY_FILE_DESKTOP_KEY_COMMENT = Comment#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a localized string giving the tooltip for the desktop entry.
- KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE = DBusActivatable#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a boolean set to true if the application is D-Bus activatable.
- KEY_FILE_DESKTOP_KEY_EXEC = Exec#
A key under
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.
- KEY_FILE_DESKTOP_KEY_GENERIC_NAME = GenericName#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a localized string giving the generic name of the desktop entry.
- KEY_FILE_DESKTOP_KEY_HIDDEN = Hidden#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a boolean stating whether the desktop entry has been deleted by the user.
- KEY_FILE_DESKTOP_KEY_ICON = Icon#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a localized string giving the name of the icon to be displayed for the desktop entry.
- KEY_FILE_DESKTOP_KEY_MIME_TYPE = MimeType#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a list of strings giving the MIME types supported by this desktop entry.
- KEY_FILE_DESKTOP_KEY_NAME = Name#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a localized string giving the specific name of the desktop entry.
- KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN = NotShowIn#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a list of strings identifying the environments that should not display the desktop entry.
- KEY_FILE_DESKTOP_KEY_NO_DISPLAY = NoDisplay#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a boolean stating whether the desktop entry should be shown in menus.
- KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN = OnlyShowIn#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a list of strings identifying the environments that should display the desktop entry.
- KEY_FILE_DESKTOP_KEY_PATH = Path#
A key under
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.
- KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY = StartupNotify#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a boolean stating whether the application supports the Startup Notification Protocol Specification.
- KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS = StartupWMClass#
A key under
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.
- KEY_FILE_DESKTOP_KEY_TERMINAL = Terminal#
A key under
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.
- KEY_FILE_DESKTOP_KEY_TRY_EXEC = TryExec#
A key under
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.
- KEY_FILE_DESKTOP_KEY_TYPE = Type#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a string giving the type of the desktop entry.Usually
KEY_FILE_DESKTOP_TYPE_APPLICATION
,KEY_FILE_DESKTOP_TYPE_LINK
, orKEY_FILE_DESKTOP_TYPE_DIRECTORY
.
- KEY_FILE_DESKTOP_KEY_URL = URL#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a string giving the URL to access. It is only valid for desktop entries with theLink
type.
- KEY_FILE_DESKTOP_KEY_VERSION = Version#
A key under
KEY_FILE_DESKTOP_GROUP
, whose value is a string giving the version of the Desktop Entry Specification used for the desktop entry file.
- KEY_FILE_DESKTOP_TYPE_APPLICATION = Application#
The value of the
KEY_FILE_DESKTOP_KEY_TYPE
, key for desktop entries representing applications.
- KEY_FILE_DESKTOP_TYPE_DIRECTORY = Directory#
The value of the
KEY_FILE_DESKTOP_KEY_TYPE
, key for desktop entries representing directories.
- KEY_FILE_DESKTOP_TYPE_LINK = Link#
The value of the
KEY_FILE_DESKTOP_KEY_TYPE
, key for desktop entries representing links to documents.
- LITTLE_ENDIAN = 1234#
Specifies one of the possible types of byte order. See
%G_BYTE_ORDER
.
- LN10 = 2.302585#
The natural logarithm of 10.
- LN2 = 0.693147#
The natural logarithm of 2.
- LOG_2_BASE_10 = 0.30103#
Multiplying the base 2 exponent by this number yields the base 10 exponent.
- LOG_DOMAIN = 0#
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
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.
- 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.
- LOG_LEVEL_USER_SHIFT = 8#
Log levels below
1<<G_LOG_LEVEL_USER_SHIFT
are used by GLib. Higher bits can be used for user-defined log levels.
- 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.
- MAXDOUBLE = 1.7976931348623157e+308#
- MAXFLOAT = 3.4028234663852886e+38#
- MAXINT = 2147483647#
- MAXINT16 = 32767#
- MAXINT32 = 2147483647#
- MAXINT64 = 9223372036854775807#
- MAXINT8 = 127#
- MAXLONG = 9223372036854775807#
- MAXOFFSET = 9223372036854775807#
- MAXSHORT = 32767#
- MAXSIZE = 18446744073709551615#
- MAXSSIZE = 9223372036854775807#
- MAXUINT = 4294967295#
- MAXUINT16 = 65535#
- MAXUINT32 = 4294967295#
- MAXUINT64 = 18446744073709551615#
- MAXUINT8 = 255#
- MAXULONG = 18446744073709551615#
- MAXUSHORT = 65535#
- MICRO_VERSION = 1#
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.
- MINDOUBLE = 2.2250738585072014e-308#
- MINFLOAT = 1.1754943508222875e-38#
- MININT = -2147483648#
- MINLONG = -9223372036854775808#
- MINOFFSET = -9223372036854775808#
- MINOR_VERSION = 82#
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.
- MINSHORT = -32768#
- MINSSIZE = -9223372036854775808#
- MODULE_SUFFIX = so#
- OPTION_ERROR_BAD_VALUE = <enum G_OPTION_ERROR_BAD_VALUE of type GLib.OptionError>#
Deprecated since version PyGObject-3.16.0: GLib.OPTION_ERROR_BAD_VALUE is deprecated; use GLib.OptionError.BAD_VALUE instead
- OPTION_ERROR_FAILED = <enum G_OPTION_ERROR_FAILED of type GLib.OptionError>#
Deprecated since version PyGObject-3.16.0: GLib.OPTION_ERROR_FAILED is deprecated; use GLib.OptionError.FAILED instead
- OPTION_ERROR_UNKNOWN_OPTION = <enum G_OPTION_ERROR_UNKNOWN_OPTION of type GLib.OptionError>#
Deprecated since version PyGObject-3.16.0: GLib.OPTION_ERROR_UNKNOWN_OPTION is deprecated; use GLib.OptionError.UNKNOWN_OPTION instead
- OPTION_FLAG_FILENAME = <flags G_OPTION_FLAG_FILENAME of type GLib.OptionFlags>#
Deprecated since version PyGObject-3.16.0: GLib.OPTION_FLAG_FILENAME is deprecated; use GLib.OptionFlags.FILENAME instead
- OPTION_FLAG_HIDDEN = <flags G_OPTION_FLAG_HIDDEN of type GLib.OptionFlags>#
Deprecated since version PyGObject-3.16.0: GLib.OPTION_FLAG_HIDDEN is deprecated; use GLib.OptionFlags.HIDDEN instead
- OPTION_FLAG_IN_MAIN = <flags G_OPTION_FLAG_IN_MAIN of type GLib.OptionFlags>#
Deprecated since version PyGObject-3.16.0: GLib.OPTION_FLAG_IN_MAIN is deprecated; use GLib.OptionFlags.IN_MAIN instead
- OPTION_FLAG_NOALIAS = <flags G_OPTION_FLAG_NOALIAS of type GLib.OptionFlags>#
Deprecated since version PyGObject-3.16.0: GLib.OPTION_FLAG_NOALIAS is deprecated; use GLib.OptionFlags.NOALIAS instead
- OPTION_FLAG_NO_ARG = <flags G_OPTION_FLAG_NO_ARG of type GLib.OptionFlags>#
Deprecated since version PyGObject-3.16.0: GLib.OPTION_FLAG_NO_ARG is deprecated; use GLib.OptionFlags.NO_ARG instead
- OPTION_FLAG_OPTIONAL_ARG = <flags G_OPTION_FLAG_OPTIONAL_ARG of type GLib.OptionFlags>#
Deprecated since version PyGObject-3.16.0: GLib.OPTION_FLAG_OPTIONAL_ARG is deprecated; use GLib.OptionFlags.OPTIONAL_ARG instead
- OPTION_FLAG_REVERSE = <flags G_OPTION_FLAG_REVERSE of type GLib.OptionFlags>#
Deprecated since version PyGObject-3.16.0: GLib.OPTION_FLAG_REVERSE is deprecated; use GLib.OptionFlags.REVERSE instead
- 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 typeCALLBACK
,STRING_ARRAY
orFILENAME_ARRAY
.Using
OPTION_REMAINING
instead of simply scanningargv
for leftover arguments has the advantage that GOption takes care of necessary encoding conversions for strings or filenames.
- PDP_ENDIAN = 3412#
Specifies one of the possible types of byte order (currently unused). See
%G_BYTE_ORDER
.
- PI = 3.141593#
The value of pi (ratio of circle’s circumference to its diameter).
- PID_FORMAT = i#
A format specifier that can be used in printf()-style format strings when printing a
Pid
.
- PI_2 = 1.570796#
Pi divided by 2.
- PI_4 = 0.785398#
Pi divided by 4.
- POLLFD_FORMAT = %d#
A format specifier that can be used in printf()-style format strings when printing the
fd
member of aPollFD
.
- PRIORITY_DEFAULT = 0#
Use this for default priority event sources.
In GLib this priority is used when adding timeout functions with
timeout_add
. In GDK this priority is used for events from the X server.
- PRIORITY_DEFAULT_IDLE = 200#
Use this for default priority idle functions.
In GLib this priority is used when adding idle functions with
idle_add
.
- PRIORITY_HIGH = -100#
Use this for high priority event sources.
It is not used within GLib or GTK.
- PRIORITY_HIGH_IDLE = 100#
Use this for high priority idle functions.
GTK uses
PRIORITY_HIGH_IDLE
+ 10 for resizing operations, andPRIORITY_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.)
- PRIORITY_LOW = 300#
Use this for very low priority background tasks.
It is not used within GLib or GTK.
- REF_COUNT_INIT = -1#
Evaluates to the initial reference count for
grefcount
.This macro is useful for initializing
grefcount
fields inside structures, for instance:typedef struct { grefcount ref_count; char *name; char *address; } Person; static const Person default_person = { .ref_count = G_REF_COUNT_INIT, .name = "Default name", .address = "Default address", };
- SEARCHPATH_SEPARATOR = 58#
The search path separator character. This is ‘:’ on UNIX machines and ‘;’ under Windows.
- SEARCHPATH_SEPARATOR_S = :#
The search path separator as a string. This is “:” on UNIX machines and “;” under Windows.
- SIZEOF_LONG = 8#
- SIZEOF_SIZE_T = 8#
- SIZEOF_SSIZE_T = 8#
- SIZEOF_VOID_P = 8#
- SOURCE_CONTINUE = True#
Use this macro as the return value of a
GLib.SourceFunc
to leave theSource
in the main loop.
- SOURCE_REMOVE = False#
Use this macro as the return value of a
GLib.SourceFunc
to remove theSource
from the main loop.
- SPAWN_CHILD_INHERITS_STDIN = <flags G_SPAWN_CHILD_INHERITS_STDIN of type GLib.SpawnFlags>#
Deprecated since version PyGObject-3.16.0: GLib.SPAWN_CHILD_INHERITS_STDIN is deprecated; use GLib.SpawnFlags.CHILD_INHERITS_STDIN instead
- SPAWN_DO_NOT_REAP_CHILD = <flags G_SPAWN_DO_NOT_REAP_CHILD of type GLib.SpawnFlags>#
Deprecated since version PyGObject-3.16.0: GLib.SPAWN_DO_NOT_REAP_CHILD is deprecated; use GLib.SpawnFlags.DO_NOT_REAP_CHILD instead
- SPAWN_FILE_AND_ARGV_ZERO = <flags G_SPAWN_FILE_AND_ARGV_ZERO of type GLib.SpawnFlags>#
Deprecated since version PyGObject-3.16.0: GLib.SPAWN_FILE_AND_ARGV_ZERO is deprecated; use GLib.SpawnFlags.FILE_AND_ARGV_ZERO instead
- SPAWN_LEAVE_DESCRIPTORS_OPEN = <flags G_SPAWN_LEAVE_DESCRIPTORS_OPEN of type GLib.SpawnFlags>#
Deprecated since version PyGObject-3.16.0: GLib.SPAWN_LEAVE_DESCRIPTORS_OPEN is deprecated; use GLib.SpawnFlags.LEAVE_DESCRIPTORS_OPEN instead
- SPAWN_SEARCH_PATH = <flags G_SPAWN_SEARCH_PATH of type GLib.SpawnFlags>#
Deprecated since version PyGObject-3.16.0: GLib.SPAWN_SEARCH_PATH is deprecated; use GLib.SpawnFlags.SEARCH_PATH instead
- SPAWN_STDERR_TO_DEV_NULL = <flags G_SPAWN_STDERR_TO_DEV_NULL of type GLib.SpawnFlags>#
Deprecated since version PyGObject-3.16.0: GLib.SPAWN_STDERR_TO_DEV_NULL is deprecated; use GLib.SpawnFlags.STDERR_TO_DEV_NULL instead
- SPAWN_STDOUT_TO_DEV_NULL = <flags G_SPAWN_STDOUT_TO_DEV_NULL of type GLib.SpawnFlags>#
Deprecated since version PyGObject-3.16.0: GLib.SPAWN_STDOUT_TO_DEV_NULL is deprecated; use GLib.SpawnFlags.STDOUT_TO_DEV_NULL instead
- SQRT2 = 1.414214#
The square root of two.
- STR_DELIMITERS = _-|> <.#
The standard delimiters, used in
strdelimit
.
- SYSDEF_AF_INET = 2#
- SYSDEF_AF_INET6 = 10#
- SYSDEF_AF_UNIX = 1#
- SYSDEF_MSG_DONTROUTE = 4#
- SYSDEF_MSG_OOB = 1#
- SYSDEF_MSG_PEEK = 2#
- TEST_OPTION_ISOLATE_DIRS = isolate_dirs#
Creates a unique temporary directory for each unit test and uses
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 untiltest_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.
The subdirectories may not be created by the test harness; as with normal calls to functions like
get_user_cache_dir()
, the caller must be prepared to create the directory if it doesn’t exist.
- TIME_SPAN_DAY = 86400000000#
Evaluates to a time span of one day.
- TIME_SPAN_HOUR = 3600000000#
Evaluates to a time span of one hour.
- TIME_SPAN_MILLISECOND = 1000#
Evaluates to a time span of one millisecond.
- TIME_SPAN_MINUTE = 60000000#
Evaluates to a time span of one minute.
- TIME_SPAN_SECOND = 1000000#
Evaluates to a time span of one second.
- 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.
- URI_RESERVED_CHARS_GENERIC_DELIMITERS = :/?#[]@#
Generic delimiters characters as defined in RFC 3986. Includes
:/?#[]@
.
- URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS = !$&'()*+,;=#
Subcomponent delimiter characters as defined in RFC 3986. Includes
!$&'()*+,;=
.
- USEC_PER_SEC = 1000000#
Number of microseconds in one second (1 million). This macro is provided for code readability.
- USER_DIRECTORY_DESKTOP = <enum G_USER_DIRECTORY_DESKTOP of type GLib.UserDirectory>#
Deprecated since version PyGObject-3.16.0: GLib.USER_DIRECTORY_DESKTOP is deprecated; use GLib.UserDirectory.DIRECTORY_DESKTOP instead
- USER_DIRECTORY_DOCUMENTS = <enum G_USER_DIRECTORY_DOCUMENTS of type GLib.UserDirectory>#
Deprecated since version PyGObject-3.16.0: GLib.USER_DIRECTORY_DOCUMENTS is deprecated; use GLib.UserDirectory.DIRECTORY_DOCUMENTS instead
- USER_DIRECTORY_DOWNLOAD = <enum G_USER_DIRECTORY_DOWNLOAD of type GLib.UserDirectory>#
Deprecated since version PyGObject-3.16.0: GLib.USER_DIRECTORY_DOWNLOAD is deprecated; use GLib.UserDirectory.DIRECTORY_DOWNLOAD instead
- USER_DIRECTORY_MUSIC = <enum G_USER_DIRECTORY_MUSIC of type GLib.UserDirectory>#
Deprecated since version PyGObject-3.16.0: GLib.USER_DIRECTORY_MUSIC is deprecated; use GLib.UserDirectory.DIRECTORY_MUSIC instead
- USER_DIRECTORY_PICTURES = <enum G_USER_DIRECTORY_PICTURES of type GLib.UserDirectory>#
Deprecated since version PyGObject-3.16.0: GLib.USER_DIRECTORY_PICTURES is deprecated; use GLib.UserDirectory.DIRECTORY_PICTURES instead
- USER_DIRECTORY_PUBLIC_SHARE = <enum G_USER_DIRECTORY_PUBLIC_SHARE of type GLib.UserDirectory>#
Deprecated since version PyGObject-3.16.0: GLib.USER_DIRECTORY_PUBLIC_SHARE is deprecated; use GLib.UserDirectory.DIRECTORY_PUBLIC_SHARE instead
- USER_DIRECTORY_TEMPLATES = <enum G_USER_DIRECTORY_TEMPLATES of type GLib.UserDirectory>#
Deprecated since version PyGObject-3.16.0: GLib.USER_DIRECTORY_TEMPLATES is deprecated; use GLib.UserDirectory.DIRECTORY_TEMPLATES instead
- USER_DIRECTORY_VIDEOS = <enum G_USER_DIRECTORY_VIDEOS of type GLib.UserDirectory>#
Deprecated since version PyGObject-3.16.0: GLib.USER_DIRECTORY_VIDEOS is deprecated; use GLib.UserDirectory.DIRECTORY_VIDEOS instead
- VA_COPY_AS_ARRAY = 1#
- 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
VERSION_MIN_REQUIRED
or earlier will cause warnings (but using functions deprecated in later releases will not).
- WIN32_MSG_HANDLE = 19981206#
- glib_version = (2, 82, 1)#
Deprecated since version PyGObject-3.16.0: GLib.glib_version is deprecated; use (GLib.MAJOR_VERSION, GLib.MINOR_VERSION, GLib.MICRO_VERSION) instead
- macro__has_attribute___noreturn__ = 0#
- pyglib_version = (3, 48, 2)#
Deprecated since version PyGObject-3.16.0: GLib.pyglib_version is deprecated; use gi.version_info instead