Package org.gnome.glib


package org.gnome.glib

A general-purpose, portable utility library, which provides many useful data types, macros, type conversions, string utilities, file utilities, a mainloop abstraction, and so on

The following native libraries are required and will be loaded:libgobject-2.0.so``libglib-2.0.so

For namespace-global declarations, refer to the GLib class documentation.

  • Class
    Description
    Deprecated.
    Contains the public fields of a GArray.
     
    An opaque data structure which represents an asynchronous queue.
    GBookmarkFile lets you parse, edit or create files containing bookmarks.
    Error codes returned by bookmark file parsing.
    This class is used for internal purposes by Java-GI.
    Deprecated.
    Use a GHashTable instead
    Deprecated.
    Deprecated.
    Deprecated.
    GLib provides a generic API for computing checksums (or ‘digests’) for a sequence of arbitrary bytes, using various hashing algorithms like MD5, SHA-1 and SHA-256.
    The hashing algorithm to be used by GChecksum when performing the digest of some data.
    Functional interface declaration of the ChildWatchFunc callback.
    Functional interface declaration of the ClearHandleFunc callback.
    Functional interface declaration of the CompareDataFunc callback.
    Functional interface declaration of the CompareFunc callback.
    Deprecated.
    Rarely used API
    Deprecated.
    Deprecated.
    The GCond struct is an opaque data structure that represents a condition.
    Error codes returned by character set conversion routines.
    Functional interface declaration of the CopyFunc callback.
    An opaque data structure that represents a keyed data list.
    Functional interface declaration of the DataForeachFunc callback.
    GDate is a struct for calendrical calculations.
    Integer representing a day of the month; between 1 and 31.
    This enumeration isn't used in the API, but may be useful if you need to mark a number as a day, month, or year.
    Enumeration representing a month; values are DateMonth.JANUARY, DateMonth.FEBRUARY, etc.
    GDateTime is a structure that combines a Gregorian date and time into a single structure.
    Enumeration representing a day of the week; DateWeekday.MONDAY, DateWeekday.TUESDAY, etc.
    Integer type representing a year.
    Associates a string with a bit flag.
    Functional interface declaration of the DestroyNotify callback.
    An opaque structure representing an opened directory.
    The GFloatIEEE754 and GDoubleIEEE754 unions are used to access the sign, mantissa and exponent of IEEE floats and doubles.
    Functional interface declaration of the DuplicateFunc callback.
    Functional interface declaration of the EqualFunc callback.
    Functional interface declaration of the EqualFuncFull callback.
    Functional interface declaration of the ErrorClearFunc callback.
    Functional interface declaration of the ErrorCopyFunc callback.
    Functional interface declaration of the ErrorInitFunc callback.
    The possible errors, used in the vError field of GTokenValue, when the token is a TokenType.ERROR.
    Values corresponding to errno codes returned from file operations on UNIX.
    Flags to pass to g_file_set_contents_full() to affect its safety and performance.
    A test to perform on a file using g_file_test().
    The GFloatIEEE754 and GDoubleIEEE754 unions are used to access the sign, mantissa and exponent of IEEE floats and doubles.
    Flags to modify the format of the string returned by g_format_size_full().
    Functional interface declaration of the FreeFunc callback.
    Functional interface declaration of the Func callback.
    The GError structure contains information about an error that has occurred.
    Constants and functions that are declared in the global GLib namespace.
    A GString is an object that handles the memory management of a C string.
    Functional interface declaration of the HashFunc callback.
    The GHashTable struct is an opaque data structure to represent a hash table.
    A GHashTableIter structure represents an iterator that can be used to iterate over the elements of a GHashTable.
    Functional interface declaration of the HFunc callback.
    HMACs should be used when producing a cookie or hash based on data and a key.
    The GHook struct represents a single hook function in a GHookList.
    Functional interface declaration of the HookCheckFunc callback.
    Functional interface declaration of the HookCheckMarshaller callback.
    Functional interface declaration of the HookCompareFunc callback.
    Functional interface declaration of the HookFinalizeFunc callback.
    Functional interface declaration of the HookFindFunc callback.
    Flags used internally in the GHook implementation.
    Functional interface declaration of the HookFunc callback.
    The GHookList struct represents a list of hook functions.
    Functional interface declaration of the HookMarshaller callback.
    Functional interface declaration of the HRFunc callback.
    The GIConv struct wraps an iconv() conversion descriptor.
    The GIOChannel data type aims to provide a portable method for using file descriptors, pipes, and sockets, and integrating them into the main event loop (see GLib.MainContext).
    Error codes returned by GIOChannel operations.
    A bitwise combination representing a condition to watch for on an event source.
    GIOError is only used by the deprecated functions g_io_channel_read(), g_io_channel_write(), and g_io_channel_seek().
    Specifies properties of a GIOChannel.
    Functional interface declaration of the IOFunc callback.
    A table of functions used to handle different types of GIOChannel in a generic way.
    Functional interface declaration of the IoCloseCallback callback.
    Functional interface declaration of the IoCreateWatchCallback callback.
    Functional interface declaration of the IoFreeCallback callback.
    Functional interface declaration of the IoGetFlagsCallback callback.
    Functional interface declaration of the IoReadCallback callback.
    Functional interface declaration of the IoSeekCallback callback.
    Functional interface declaration of the IoSetFlagsCallback callback.
    Functional interface declaration of the IoWriteCallback callback.
    Statuses returned by most of the GIOFuncs functions.
    GKeyFile parses .ini-like config files.
    Error codes returned by key file parsing.
    Flags which influence the parsing.
    List<E>
    Java wrapper for GLib.List that implements List.
    Structure representing a single field in a structured log entry.
    Functional interface declaration of the LogFunc callback.
    Flags specifying the level of log messages.
    Functional interface declaration of the LogWriterFunc callback.
    Return values from GLogWriterFuncs to indicate whether the given log entry was successfully handled by the writer, or whether there was an error in handling it (and hence a fallback writer should be used).
    The GMainContext struct is an opaque data type representing a set of sources to be handled in a main loop.
    Flags to pass to MainContext.withFlags(Set) which affect the behaviour of a GLib.MainContext.
    Opaque type.
    The GMainLoop struct is an opaque data type representing the main event loop of a GLib or GTK application.
    The GMappedFile represents a file mapping created with g_mapped_file_new().
    A mixed enumerated type and flags field.
    Error codes returned by markup parsing.
    A parse context is used to parse a stream of bytes that you expect to contain marked-up text.
    Flags that affect the behaviour of the parser.
    Any of the fields in GMarkupParser can be null, in which case they will be ignored.
    Functional interface declaration of the EndElementCallback callback.
    Functional interface declaration of the ErrorCallback callback.
    Functional interface declaration of the PassthroughCallback callback.
    Functional interface declaration of the StartElementCallback callback.
    Functional interface declaration of the TextCallback callback.
    A GMatchInfo is an opaque struct used to return information about matches.
    Deprecated.
    A set of functions used to perform memory allocation.
    Functional interface declaration of the CallocCallback callback.
    Functional interface declaration of the FreeCallback callback.
    Functional interface declaration of the MallocCallback callback.
    Functional interface declaration of the ReallocCallback callback.
    Functional interface declaration of the TryMallocCallback callback.
    Functional interface declaration of the TryReallocCallback callback.
    The GMutex struct is an opaque data structure to represent a mutex (mutual exclusion).
    Opaque type.
    The GNode struct represents one node in a n-ary tree.
    Functional interface declaration of the NodeForeachFunc callback.
    Functional interface declaration of the NodeTraverseFunc callback.
    Defines how a Unicode string is transformed in a canonical form, standardizing such issues as whether a character with an accent is represented as a base character and combining accent or as a single precomposed character.
    Error codes returned by functions converting a string to a number.
    A GOnce struct controls a one-time initialization function.
    The possible statuses of a one-time initialization function controlled by a GOnce struct.
    The GOptionArg enum values determine which type of extra argument the options expect to find.
    Functional interface declaration of the OptionArgFunc callback.
    A GOptionContext struct defines which options are accepted by the commandline option parser.
    Error codes returned by option parsing.
    Functional interface declaration of the OptionErrorFunc callback.
    Flags which modify individual options.
    A GOptionGroup struct defines the options in a single group.
    Functional interface declaration of the OptionParseFunc callback.
    GPathBuf is a helper type that allows you to easily build paths from individual elements, using the platform specific conventions for path separators.
    A GPatternSpec struct is the ‘compiled’ form of a glob-style pattern.
    A type which is used to hold a process identification.
    Represents a file descriptor, which events to poll for, and which events occurred.
    Functional interface declaration of the PollFunc callback.
    Functional interface declaration of the PrintFunc callback.
    The GPrivate struct is an opaque data structure to represent a thread-local data key.
    Contains the public fields of a GPtrArray.
    A GQuark is a non-zero integer which uniquely identifies a particular string.
    Contains the public fields of a Queue.
    The GRand struct is an opaque data structure.
    The GRecMutex struct is an opaque data structure to represent a recursive mutex.
    Opaque type.
    A typedef for a reference-counted string.
    A GRegex is a compiled form of a regular expression.
    Flags specifying compile-time options.
    Error codes returned by regular expressions functions.
    Functional interface declaration of the RegexEvalCallback callback.
    Flags specifying match-time options.
    Deprecated.
    Rarely used API
    The GRWLock struct is an opaque data structure to represent a reader-writer lock.
    Opaque type.
    Opaque type.
    GScanner provides a general-purpose lexical scanner.
    Specifies the GScanner parser configuration.
    Functional interface declaration of the ScannerMsgFunc callback.
    An enumeration specifying the base position for a g_io_channel_seek_position() operation.
    The GSequence struct is an opaque data type representing a sequence data type.
    The GSequenceIter struct is an opaque data type representing an iterator pointing into a GSequence.
    Functional interface declaration of the SequenceIterCompareFunc callback.
    Error codes returned by shell functions.
     
    Java wrapper for GLib.SList that implements List.
    The GSource struct is an opaque data type representing an event source.
    The GSourceCallbackFuncs struct contains functions for managing callback objects.
    Functional interface declaration of the GetCallback callback.
    Functional interface declaration of the RefCallback callback.
    Functional interface declaration of the UnrefCallback callback.
    Functional interface declaration of the SourceDisposeFunc callback.
    Functional interface declaration of the SourceDummyMarshal callback.
    Functional interface declaration of the SourceFunc callback.
    The GSourceFuncs struct contains a table of functions used to handle event sources in a generic manner.
    Functional interface declaration of the SourceFuncsCheckFunc callback.
    Functional interface declaration of the SourceFuncsDispatchFunc callback.
    Functional interface declaration of the SourceFuncsFinalizeFunc callback.
    Functional interface declaration of the SourceFuncsPrepareFunc callback.
    Functional interface declaration of the SourceOnceFunc callback.
    Functional interface declaration of the SpawnChildSetupFunc callback.
    Error codes returned by spawning processes.
    Flags passed to g_spawn_sync(), g_spawn_async() and g_spawn_async_with_pipes().
    A type corresponding to the appropriate struct type for the stat() system call, depending on the platform and/or compiler being used.
    A GStaticMutex works like a GMutex.
    A GStaticRecMutex works like a GStaticMutex, but it can be locked multiple times by one thread.
    Deprecated.
    Use a RWLock instead
    GStringChunk provides efficient storage of groups of strings
    A typedef alias for gchar**.
    GStrvBuilder is a helper object to build a null-terminated string arrays.
    An opaque structure representing a test case.
     
    Functional interface declaration of the TestDataFunc callback.
    The type of file to return the filename for, when used with GLib.testBuildFilename(TestFileType, String, Object...).
    Functional interface declaration of the TestFixtureFunc callback.
    Functional interface declaration of the TestFunc callback.
     
    Functional interface declaration of the TestLogFatalFunc callback.
     
     
     
    Flags to pass to GLib.testTrapSubprocess(String, long, Set) to control input and output.
    An opaque structure representing a test suite.
    Deprecated.
    GTestTrapFlags is used only with GLib.testTrapFork(long, Set), which is deprecated.
    The GThread struct represents a running thread.
    Possible errors of thread related functions.
    Functional interface declaration of the ThreadFunc callback.
    This function table is no longer used by g_thread_init() to initialize the thread system.
    Functional interface declaration of the CondBroadcastCallback callback.
    Functional interface declaration of the CondFreeCallback callback.
    Functional interface declaration of the CondNewCallback callback.
    Functional interface declaration of the CondSignalCallback callback.
    Functional interface declaration of the CondTimedWaitCallback callback.
    Functional interface declaration of the CondWaitCallback callback.
    Functional interface declaration of the MutexFreeCallback callback.
    Functional interface declaration of the MutexLockCallback callback.
    Functional interface declaration of the MutexNewCallback callback.
    Functional interface declaration of the MutexTrylockCallback callback.
    Functional interface declaration of the MutexUnlockCallback callback.
    Functional interface declaration of the PrivateGetCallback callback.
    Functional interface declaration of the PrivateNewCallback callback.
    Functional interface declaration of the PrivateSetCallback callback.
    Functional interface declaration of the ThreadCreateCallback callback.
    Functional interface declaration of the ThreadEqualCallback callback.
    Functional interface declaration of the ThreadExitCallback callback.
    Functional interface declaration of the ThreadJoinCallback callback.
    Functional interface declaration of the ThreadSelfCallback callback.
    Functional interface declaration of the ThreadSetPriorityCallback callback.
    Functional interface declaration of the ThreadYieldCallback callback.
    The GThreadPool struct represents a thread pool.
    Deprecated.
    Thread priorities no longer have any effect.
    Deprecated.
    This is not Y2038-safe.
    GTimer records a start time, and counts microseconds elapsed since that time.
    A value representing an interval of time, in microseconds.
    Disambiguates a given time in two ways.
    Deprecated.
    Use GDateTime or guint64 instead.
    A GTimeZone represents a time zone, at no particular point in time.
    The possible types of token returned from each g_scanner_get_next_token() call.
    A union holding the value of the token.
    Functional interface declaration of the TranslateFunc callback.
    Deprecated.
    GTrashStack is deprecated without replacement
    Specifies which nodes are visited during several of the tree functions, including g_node_traverse() and g_node_find().
    Functional interface declaration of the TraverseFunc callback.
    Functional interface declaration of the TraverseNodeFunc callback.
    Specifies the type of traversal performed by g_tree_traverse(), g_node_traverse() and g_node_find().
    The GTree struct is an opaque data structure representing a balanced binary tree.
    An opaque type which identifies a specific node in a GTree.
    Deprecated.
    Rarely used API
     
    These are the possible line break classifications.
    The GUnicodeScript enumeration identifies different writing systems.
    These are the possible character classifications from the Unicode specification.
    The GUri type and related functions can be used to parse URIs into their components, and build valid URIs from individual components.
    Error codes returned by GUri methods.
    Flags that describe a URI.
    Flags describing what parts of the URI to hide in g_uri_to_string_partial().
    Flags modifying the way parameters are handled by g_uri_parse_params() and GUriParamsIter.
    Many URI schemes include one or more attribute/value pairs as part of the URI value.
    These are logical ids for special directories which are defined depending on the platform used.
    GVariant is a variant datatype; it can contain one or more values along with information about the type of the values.
    A utility type for constructing container-type GVariant instances.
    The range of possible top-level types of GVariant instances.
    GVariantDict is a mutable interface to GVariant dictionaries.
    GVariantIter is an opaque data structure and can only be accessed using the following functions.
    Error codes returned by parsing text-format GVariants.
    A type in the GLib.Variant type system.
    Functional interface declaration of the VoidFunc callback.