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.0
libglib-2.0.0
For namespace-global declarations, refer to the GLib
class documentation.
-
ClassDescriptionContains 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.A simple refcounted data type representing an immutable sequence of zero or more bytes from an unspecified origin.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 byGChecksum
when performing the digest of some data.Functional interface declaration of theChildWatchFunc
callback.Functional interface declaration of theClearHandleFunc
callback.Functional interface declaration of theCompareDataFunc
callback.Functional interface declaration of theCompareFunc
callback.Deprecated.Deprecated.Deprecated.TheGCond
struct is an opaque data structure that represents a condition.Error codes returned by character set conversion routines.Functional interface declaration of theCopyFunc
callback.An opaque data structure that represents a keyed data list.Functional interface declaration of theDataForeachFunc
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 areDateMonth.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 theDestroyNotify
callback.An opaque structure representing an opened directory.TheGFloatIEEE754
andGDoubleIEEE754
unions are used to access the sign, mantissa and exponent of IEEE floats and doubles.Functional interface declaration of theDuplicateFunc
callback.Functional interface declaration of theEqualFunc
callback.Functional interface declaration of theEqualFuncFull
callback.Functional interface declaration of theErrorClearFunc
callback.Functional interface declaration of theErrorCopyFunc
callback.Functional interface declaration of theErrorInitFunc
callback.Values corresponding toerrno
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().TheGFloatIEEE754
andGDoubleIEEE754
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 theFreeFunc
callback.Functional interface declaration of theFunc
callback.TheGError
structure contains information about an error that has occurred.Constants and functions that are declared in the global GLib namespace.AGString
is an object that handles the memory management of a C string.Functional interface declaration of theHashFunc
callback.HashTable<K,V> TheGHashTable
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 aGHashTable
.Functional interface declaration of theHFunc
callback.HMACs should be used when producing a cookie or hash based on data and a key.TheGHook
struct represents a single hook function in aGHookList
.Functional interface declaration of theHookCheckFunc
callback.Functional interface declaration of theHookCheckMarshaller
callback.Functional interface declaration of theHookCompareFunc
callback.Functional interface declaration of theHookFinalizeFunc
callback.Functional interface declaration of theHookFindFunc
callback.Flags used internally in theGHook
implementation.Functional interface declaration of theHookFunc
callback.TheGHookList
struct represents a list of hook functions.Functional interface declaration of theHookMarshaller
callback.Functional interface declaration of theHRFunc
callback.The GIConv struct wraps an iconv() conversion descriptor.TheGIOChannel
data 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 byGIOChannel
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 aGIOChannel
.Functional interface declaration of theIOFunc
callback.A table of functions used to handle different types ofGIOChannel
in a generic way.Functional interface declaration of theIoCloseCallback
callback.Functional interface declaration of theIoCreateWatchCallback
callback.Functional interface declaration of theIoFreeCallback
callback.Functional interface declaration of theIoGetFlagsCallback
callback.Functional interface declaration of theIoReadCallback
callback.Functional interface declaration of theIoSeekCallback
callback.Functional interface declaration of theIoSetFlagsCallback
callback.Functional interface declaration of theIoWriteCallback
callback.Statuses returned by most of theGIOFuncs
functions.GKeyFile
parses .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 theLogFunc
callback.Flags specifying the level of log messages.Functional interface declaration of theLogWriterFunc
callback.Return values fromGLogWriterFuncs
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).TheGMainContext
struct 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
.TheGMainLoop
struct is an opaque data type representing the main event loop of a GLib or GTK application.TheGMappedFile
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 inGMarkupParser
can benull
, in which case they will be ignored.Functional interface declaration of theEndElementCallback
callback.Functional interface declaration of theErrorCallback
callback.Functional interface declaration of thePassthroughCallback
callback.Functional interface declaration of theStartElementCallback
callback.Functional interface declaration of theTextCallback
callback.A GMatchInfo is an opaque struct used to return information about matches.A set of functions used to perform memory allocation.Functional interface declaration of theCallocCallback
callback.Functional interface declaration of theFreeCallback
callback.Functional interface declaration of theMallocCallback
callback.Functional interface declaration of theReallocCallback
callback.Functional interface declaration of theTryMallocCallback
callback.Functional interface declaration of theTryReallocCallback
callback.TheGMutex
struct is an opaque data structure to represent a mutex (mutual exclusion).TheGNode
struct represents one node in a [n-ary tree][glib-N-ary-Trees].Functional interface declaration of theNodeForeachFunc
callback.Functional interface declaration of theNodeTraverseFunc
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.AGOnce
struct controls a one-time initialization function.The possible statuses of a one-time initialization function controlled by aGOnce
struct.TheGOptionArg
enum values determine which type of extra argument the options expect to find.Functional interface declaration of theOptionArgFunc
callback.AGOptionContext
struct defines which options are accepted by the commandline option parser.A GOptionEntry struct defines a single option.Error codes returned by option parsing.Functional interface declaration of theOptionErrorFunc
callback.Flags which modify individual options.AGOptionGroup
struct defines the options in a single group.Functional interface declaration of theOptionParseFunc
callback.GPathBuf
is a helper type that allows you to easily build paths from individual elements, using the platform specific conventions for path separators.AGPatternSpec
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 thePollFunc
callback.Functional interface declaration of thePrintFunc
callback.TheGPrivate
struct is an opaque data structure to represent a thread-local data key.Contains the public fields of a pointer array.A GQuark is a non-zero integer which uniquely identifies a particular string.Contains the public fields of a [Queue][glib-Double-ended-Queues].The GRand struct is an opaque data structure.The GRecMutex struct is an opaque data structure to represent a recursive mutex.A typedef for a reference-counted string.AGRegex
is the "compiled" form of a regular expression pattern.Flags specifying compile-time options.Error codes returned by regular expressions functions.Functional interface declaration of theRegexEvalCallback
callback.Flags specifying match-time options.Deprecated.The GRWLock struct is an opaque data structure to represent a reader-writer lock.GScanner
provides a general-purpose lexical scanner.Specifies theGScanner
parser configuration.Functional interface declaration of theScannerMsgFunc
callback.An enumeration specifying the base position for a g_io_channel_seek_position() operation.TheGSequence
struct is an opaque data type representing a [sequence][glib-Sequences] data type.TheGSequenceIter
struct is an opaque data type representing an iterator pointing into aGSequence
.Functional interface declaration of theSequenceIterCompareFunc
callback.Error codes returned by shell functions.SList<E>Java wrapper for GLib.SList that implementsList
.TheGSource
struct is an opaque data type representing an event source.TheGSourceCallbackFuncs
struct contains functions for managing callback objects.Functional interface declaration of theGetCallback
callback.Functional interface declaration of theRefCallback
callback.Functional interface declaration of theUnrefCallback
callback.Functional interface declaration of theSourceDisposeFunc
callback.Functional interface declaration of theSourceDummyMarshal
callback.Functional interface declaration of theSourceFunc
callback.TheGSourceFuncs
struct contains a table of functions used to handle event sources in a generic manner.Functional interface declaration of theSourceFuncsCheckFunc
callback.Functional interface declaration of theSourceFuncsDispatchFunc
callback.Functional interface declaration of theSourceFuncsFinalizeFunc
callback.Functional interface declaration of theSourceFuncsPrepareFunc
callback.Functional interface declaration of theSourceOnceFunc
callback.Functional interface declaration of theSpawnChildSetupFunc
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.AGStaticMutex
works like aGMutex
.AGStaticRecMutex
works like aGStaticMutex
, but it can be locked multiple times by one thread.Deprecated.GStringChunk
provides efficient storage of groups of stringsA typedef alias for gchar**.GStrvBuilder
is a helper object to build anull
-terminated string arrays.An opaque structure representing a test case.Functional interface declaration of theTestDataFunc
callback.The type of file to return the filename for, when used with g_test_build_filename().Functional interface declaration of theTestFixtureFunc
callback.Functional interface declaration of theTestFunc
callback.Functional interface declaration of theTestLogFatalFunc
callback.Flags to pass to g_test_trap_subprocess() to control input and output.An opaque structure representing a test suite.Deprecated.TheGThread
struct represents a running thread.Possible errors of thread related functions.Functional interface declaration of theThreadFunc
callback.This function table is no longer used by g_thread_init() to initialize the thread system.Functional interface declaration of theCondBroadcastCallback
callback.Functional interface declaration of theCondFreeCallback
callback.Functional interface declaration of theCondNewCallback
callback.Functional interface declaration of theCondSignalCallback
callback.Functional interface declaration of theCondTimedWaitCallback
callback.Functional interface declaration of theCondWaitCallback
callback.Functional interface declaration of theMutexFreeCallback
callback.Functional interface declaration of theMutexLockCallback
callback.Functional interface declaration of theMutexNewCallback
callback.Functional interface declaration of theMutexTrylockCallback
callback.Functional interface declaration of theMutexUnlockCallback
callback.Functional interface declaration of thePrivateGetCallback
callback.Functional interface declaration of thePrivateNewCallback
callback.Functional interface declaration of thePrivateSetCallback
callback.Functional interface declaration of theThreadCreateCallback
callback.Functional interface declaration of theThreadEqualCallback
callback.Functional interface declaration of theThreadExitCallback
callback.Functional interface declaration of theThreadJoinCallback
callback.Functional interface declaration of theThreadSelfCallback
callback.Functional interface declaration of theThreadSetPriorityCallback
callback.Functional interface declaration of theThreadYieldCallback
callback.TheGThreadPool
struct represents a thread pool.Deprecated.Deprecated.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.AGTimeZone
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 theTranslateFunc
callback.Deprecated.Specifies which nodes are visited during several of the tree functions, including g_node_traverse() and g_node_find().Functional interface declaration of theTraverseFunc
callback.Functional interface declaration of theTraverseNodeFunc
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][glib-Balanced-Binary-Trees].An opaque type which identifies a specific node in aGTree
.Deprecated.These are the possible line break classifications.TheGUnicodeScript
enumeration identifies different writing systems.These are the possible character classifications from the Unicode specification.Functional interface declaration of theUnixFDSourceFunc
callback.A Unix pipe.Mnemonic constants for the ends of a Unix pipe.TheGUri
type and related functions can be used to parse URIs into their components, and build valid URIs from individual components.Error codes returned byGUri
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() 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.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-typeGVariant
instances.The range of possible top-level types ofGVariant
instances.GVariantDict
is a mutable interface toGVariant
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 theGLib.Variant
type system.Functional interface declaration of theVoidFunc
callback.Type of Windows edition to check for at run-time.