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.
-
ClassDescriptionDeprecated.Contains the public fields of a
GArray.An opaque data structure which represents an asynchronous queue.GBookmarkFilelets 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.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 byGChecksumwhen performing the digest of some data.Functional interface declaration of theChildWatchFunccallback.Functional interface declaration of theClearHandleFunccallback.Functional interface declaration of theCompareDataFunccallback.Functional interface declaration of theCompareFunccallback.Deprecated.Rarely used APIDeprecated.Deprecated.TheGCondstruct is an opaque data structure that represents a condition.Error codes returned by character set conversion routines.Functional interface declaration of theCopyFunccallback.An opaque data structure that represents a keyed data list.Functional interface declaration of theDataForeachFunccallback.GDateis 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 areDateMonth.JANUARY,DateMonth.FEBRUARY, etc.GDateTimeis 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 theDestroyNotifycallback.An opaque structure representing an opened directory.TheGFloatIEEE754andGDoubleIEEE754unions are used to access the sign, mantissa and exponent of IEEE floats and doubles.Functional interface declaration of theDuplicateFunccallback.Functional interface declaration of theEqualFunccallback.Functional interface declaration of theEqualFuncFullcallback.Functional interface declaration of theErrorClearFunccallback.Functional interface declaration of theErrorCopyFunccallback.Functional interface declaration of theErrorInitFunccallback.Values corresponding toerrnocodes 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().TheGFloatIEEE754andGDoubleIEEE754unions 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 theFreeFunccallback.Functional interface declaration of theFunccallback.TheGErrorstructure contains information about an error that has occurred.Constants and functions that are declared in the global GLib namespace.Functional interface declaration of theHashFunccallback.HashTable<K,V> TheGHashTablestruct 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 aGHashTable.Functional interface declaration of theHFunccallback.HMACs should be used when producing a cookie or hash based on data and a key.TheGHookstruct represents a single hook function in aGHookList.Functional interface declaration of theHookCheckFunccallback.Functional interface declaration of theHookCheckMarshallercallback.Functional interface declaration of theHookCompareFunccallback.Functional interface declaration of theHookFinalizeFunccallback.Functional interface declaration of theHookFindFunccallback.Flags used internally in theGHookimplementation.Functional interface declaration of theHookFunccallback.TheGHookListstruct represents a list of hook functions.Functional interface declaration of theHookMarshallercallback.Functional interface declaration of theHRFunccallback.The GIConv struct wraps an iconv() conversion descriptor.TheGIOChanneldata type aims to provide a portable method for using file descriptors, pipes, and sockets, and integrating them into the main event loop (seeGLib.MainContext).Error codes returned byGIOChanneloperations.A bitwise combination representing a condition to watch for on an event source.GIOErroris only used by the deprecated functions g_io_channel_read(), g_io_channel_write(), and g_io_channel_seek().Specifies properties of aGIOChannel.Functional interface declaration of theIOFunccallback.A table of functions used to handle different types ofGIOChannelin a generic way.Functional interface declaration of theIoCloseCallbackcallback.Functional interface declaration of theIoCreateWatchCallbackcallback.Functional interface declaration of theIoFreeCallbackcallback.Functional interface declaration of theIoGetFlagsCallbackcallback.Functional interface declaration of theIoReadCallbackcallback.Functional interface declaration of theIoSeekCallbackcallback.Functional interface declaration of theIoSetFlagsCallbackcallback.Functional interface declaration of theIoWriteCallbackcallback.Statuses returned by most of theGIOFuncsfunctions.GKeyFileparses .ini-like config files.Error codes returned by key file parsing.Flags which influence the parsing.List<E>Structure representing a single field in a structured log entry.Functional interface declaration of theLogFunccallback.Flags specifying the level of log messages.Functional interface declaration of theLogWriterFunccallback.Return values fromGLogWriterFuncsto 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).TheGMainContextstruct is an opaque data type representing a set of sources to be handled in a main loop.Flags to pass toMainContext.withFlags(java.util.Set<org.gnome.glib.MainContextFlags>)which affect the behaviour of aGLib.MainContext.Opaque type.TheGMainLoopstruct is an opaque data type representing the main event loop of a GLib or GTK application.TheGMappedFilerepresents 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 inGMarkupParsercan benull, in which case they will be ignored.Functional interface declaration of theEndElementCallbackcallback.Functional interface declaration of theErrorCallbackcallback.Functional interface declaration of thePassthroughCallbackcallback.Functional interface declaration of theStartElementCallbackcallback.Functional interface declaration of theTextCallbackcallback.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 theCallocCallbackcallback.Functional interface declaration of theFreeCallbackcallback.Functional interface declaration of theMallocCallbackcallback.Functional interface declaration of theReallocCallbackcallback.Functional interface declaration of theTryMallocCallbackcallback.Functional interface declaration of theTryReallocCallbackcallback.TheGMutexstruct is an opaque data structure to represent a mutex (mutual exclusion).Opaque type.TheGNodestruct represents one node in a n-ary tree.Functional interface declaration of theNodeForeachFunccallback.Functional interface declaration of theNodeTraverseFunccallback.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.AGOncestruct controls a one-time initialization function.The possible statuses of a one-time initialization function controlled by aGOncestruct.TheGOptionArgenum values determine which type of extra argument the options expect to find.Functional interface declaration of theOptionArgFunccallback.AGOptionContextstruct defines which options are accepted by the commandline option parser.OptionArg.NONE:gbooleanOptionArg.STRING:gchar*OptionArg.INT:gintOptionArg.FILENAME:gchar*OptionArg.STRING_ARRAY:gchar**OptionArg.FILENAME_ARRAY:gchar**OptionArg.DOUBLE:gdoubleError codes returned by option parsing.Functional interface declaration of theOptionErrorFunccallback.Flags which modify individual options.AGOptionGroupstruct defines the options in a single group.Functional interface declaration of theOptionParseFunccallback.GPathBufis a helper type that allows you to easily build paths from individual elements, using the platform specific conventions for path separators.AGPatternSpecstruct 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 thePollFunccallback.Functional interface declaration of thePrintFunccallback.TheGPrivatestruct is an opaque data structure to represent a thread-local data key.Contains the public fields of aGPtrArray.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.AGRegexis a compiled form of a regular expression.Flags specifying compile-time options.Error codes returned by regular expressions functions.Functional interface declaration of theRegexEvalCallbackcallback.Flags specifying match-time options.Deprecated.Rarely used APIThe GRWLock struct is an opaque data structure to represent a reader-writer lock.Opaque type.Opaque type.GScannerprovides a general-purpose lexical scanner.Specifies theGScannerparser configuration.Functional interface declaration of theScannerMsgFunccallback.An enumeration specifying the base position for a g_io_channel_seek_position() operation.TheGSequencestruct is an opaque data type representing a sequence data type.TheGSequenceIterstruct is an opaque data type representing an iterator pointing into aGSequence.Functional interface declaration of theSequenceIterCompareFunccallback.Error codes returned by shell functions.SList<E>Java wrapper for GLib.SList that implementsList.TheGSourcestruct is an opaque data type representing an event source.TheGSourceCallbackFuncsstruct contains functions for managing callback objects.Functional interface declaration of theGetCallbackcallback.Functional interface declaration of theRefCallbackcallback.Functional interface declaration of theUnrefCallbackcallback.Functional interface declaration of theSourceDisposeFunccallback.Functional interface declaration of theSourceDummyMarshalcallback.Functional interface declaration of theSourceFunccallback.TheGSourceFuncsstruct contains a table of functions used to handle event sources in a generic manner.Functional interface declaration of theSourceFuncsCheckFunccallback.Functional interface declaration of theSourceFuncsDispatchFunccallback.Functional interface declaration of theSourceFuncsFinalizeFunccallback.Functional interface declaration of theSourceFuncsPrepareFunccallback.Functional interface declaration of theSourceOnceFunccallback.Functional interface declaration of theSpawnChildSetupFunccallback.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.AGStaticMutexworks like aGMutex.AGStaticRecMutexworks like aGStaticMutex, but it can be locked multiple times by one thread.Deprecated.Use aGRWLockinsteadGStringChunkprovides efficient storage of groups of stringsA typedef alias for gchar**.GStrvBuilderis a helper object to build anull-terminated string arrays.An opaque structure representing a test case.Functional interface declaration of theTestDataFunccallback.The type of file to return the filename for, when used withGLib.testBuildFilename(org.gnome.glib.TestFileType, java.lang.String, java.lang.Object...).Functional interface declaration of theTestFixtureFunccallback.Functional interface declaration of theTestFunccallback.Functional interface declaration of theTestLogFatalFunccallback.Flags to pass toGLib.testTrapSubprocess(java.lang.String, long, java.util.Set<org.gnome.glib.TestSubprocessFlags>)to control input and output.An opaque structure representing a test suite.Deprecated.GTestTrapFlagsis used only withGLib.testTrapFork(long, java.util.Set<org.gnome.glib.TestTrapFlags>), which is deprecated.TheGThreadstruct represents a running thread.Possible errors of thread related functions.Functional interface declaration of theThreadFunccallback.This function table is no longer used by g_thread_init() to initialize the thread system.Functional interface declaration of theCondBroadcastCallbackcallback.Functional interface declaration of theCondFreeCallbackcallback.Functional interface declaration of theCondNewCallbackcallback.Functional interface declaration of theCondSignalCallbackcallback.Functional interface declaration of theCondTimedWaitCallbackcallback.Functional interface declaration of theCondWaitCallbackcallback.Functional interface declaration of theMutexFreeCallbackcallback.Functional interface declaration of theMutexLockCallbackcallback.Functional interface declaration of theMutexNewCallbackcallback.Functional interface declaration of theMutexTrylockCallbackcallback.Functional interface declaration of theMutexUnlockCallbackcallback.Functional interface declaration of thePrivateGetCallbackcallback.Functional interface declaration of thePrivateNewCallbackcallback.Functional interface declaration of thePrivateSetCallbackcallback.Functional interface declaration of theThreadCreateCallbackcallback.Functional interface declaration of theThreadEqualCallbackcallback.Functional interface declaration of theThreadExitCallbackcallback.Functional interface declaration of theThreadJoinCallbackcallback.Functional interface declaration of theThreadSelfCallbackcallback.Functional interface declaration of theThreadSetPriorityCallbackcallback.Functional interface declaration of theThreadYieldCallbackcallback.TheGThreadPoolstruct represents a thread pool.Deprecated.Thread priorities no longer have any effect.Deprecated.This is not Y2038-safe.GTimerrecords 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.UseGDateTimeorguint64instead.AGTimeZonerepresents 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 theTranslateFunccallback.Deprecated.GTrashStackis deprecated without replacementSpecifies which nodes are visited during several of the tree functions, including g_node_traverse() and g_node_find().Functional interface declaration of theTraverseFunccallback.Functional interface declaration of theTraverseNodeFunccallback.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 aGTree.Deprecated.Rarely used APIThese are the possible line break classifications.TheGUnicodeScriptenumeration identifies different writing systems.These are the possible character classifications from the Unicode specification.Functional interface declaration of theUnixFDSourceFunccallback.A Unix pipe.Mnemonic constants for the ends of a Unix pipe.TheGUritype and related functions can be used to parse URIs into their components, and build valid URIs from individual components.Error codes returned byGUrimethods.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() andGUriParamsIter.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.GVariantis 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-typeGVariantinstances.The range of possible top-level types ofGVariantinstances.GVariantDictis a mutable interface toGVariantdictionaries.GVariantIteris an opaque data structure and can only be accessed using the following functions.Error codes returned by parsing text-format GVariants.A type in theGLib.Varianttype system.Functional interface declaration of theVoidFunccallback.Type of Windows edition to check for at run-time.
GHashTableinstead