Up: cl-cffi-gtk API documentation
Package glib
GLib is a general-purpose utility library, which provides many useful data
types, macros, type conversions, string utilities, file utilities, a main loop
abstraction, and so on. It works on many UNIX-like platforms, as well as
Windows and OS X. GLib is released under the GNU Library General Public
License (GNU LGPL).
This is the API documentation of a Lisp binding to the library GLib. Only a small part of GLib is implemented in Lisp which is necessary to implement GTK in Lisp.
This is the API documentation of a Lisp binding to the library GLib. Only a small part of GLib is implemented in Lisp which is necessary to implement GTK in Lisp.
About This PackageMiscellaneous Character Set Conversion Random Numbers The Main Event Loop GBytes Quarks Error Reporting Utility Functions Command line option parser Key-value file parser GVariantType GVariant Version InformationVariables and functions to check the GLib version.GLib provides version information, primarily useful in configure checks for builds that have a configure script. Applications will not typically use the features described here.
The major version number of the Glib C library the Lisp binding is running
against. ...
The minor version number of the GLib C library the Lisp binding is running
against. ...
The micro version number of the GLib C library the Lisp binding is running
against. ...
The binary age of the GLib C library the Lisp binding is running
against. ...
The interface age of the GLib C library the Lisp binding is running
against. ...
Checks that the GLib C library in use is compatible with the given version. ... MiscellaneousDocumentation of several type definitions and functions, which are needed for the implemenation of the GTK library. Only a small part of the GLib library is implemented.Basic Types
Standard GLib types, defined for ease-of-use and portability.
Only the following types are implemented:
An unsigned integer type of the result of the sizeof operator, corresponding to the size_t type defined in C99. ... A signed variant of the g-size type, corresponding to the ssize_t type defined on most platforms. ...
A signed integer type that is used for file offsets, corresponding to the C99 off64_t type. ... Memory AllocationString Utility Functions
String Utility Functions. The following types are implemented: A type that is almost like the foreign CFFI :string type but uses the GLib g-malloc and g-free functions to allocate and free
memory. ...
This type represents and performs automatic conversion between a list of Lisp strings and an array of C strings of the g-string type. ... Doubly-Linked Lists
Linked lists containing integer values or pointers to data, with the
ability to iterate over the list in both directions. Implemented is the
type: Singly-Linked Lists
Linked lists containing integer values or pointers to data, limited to
iterating over the list in one direction. Implemented is the type: File UtilitiesCharacter Set ConversionConvert strings between different character sets.
Converts a string which is in the encoding used by GLib for filenames into
a UTF-8 string. ... Random NumbersPseudo-random number generator.
Sets the seed for the global random number generator, which is used by the
g-random-* functions, to seed.
... The Main Event LoopThe Main Event Loop manages all available sources of events.
Use this for high priority event sources. ...
Use this for default priority event sources. ...
Use this for high priority idle functions. ...
Use this for default priority idle functions. ...
Use this for very low priority background tasks. ... Use this constant as the return value of a g-source-func callback function to leave the g-source instance in the main loop. ... Use this constant as the return value of a g-source-func callback function to remove the g-source instance from the main loop. ...
The main event loop manages all the available sources of events for GLib
and GTK applications. These events can come from any number of different
types of sources such as file descriptors (plain files, pipes or sockets)
and timeouts. ... Creates a new main loop. ... Increases the reference count on a main loop by one. ...
Decreases the reference count on a main loop by one. ... Runs a main loop until the g-main-loop-quit function is called on the
main loop. ...
Stops a main loop from running. ...
Checks to see if the main loop is currently being run via the g-main-loop-run function. ... Returns the context of the main loop. ... The g-main-context structure is an opaque data type representing a
set of sources to be handled in a main loop. ... Creates a new context. ... Increases the reference count on a context by one. ...
Decreases the reference count on a context by one. ...
Returns the global default context. ...
Runs a single iteration for the given main loop. ... Checks if any sources have pending events for the given main context. ...
Finds a source given a pair of context and ID. ... If context is currently blocking in a call of the g-main-context-iteration function waiting for a source to become
ready, cause it to stop blocking and return. ...
Tries to become the owner of the specified context. ...
Releases ownership of a context previously acquired by this thread with the g-main-context-acquire function. ...
Determines whether this thread holds the (recursive) ownership of this
context. ...
Dispatches all pending sources. ... Returns the depth of the stack of calls to the g-main-context-dispatch
function on any context in the current thread. ... Returns the currently firing source for this thread. ... The g-source structure is an opaque data type representing an event
source. ...
Creates a new timeout source. ...
Creates a new timeout source. ... Sets a function to be called at regular intervals, with priority. ... Sets a function to be called at regular intervals with priority. ...
Creates a new idle source. ...
Adds a function to be called whenever there are no higher priority events
pending to the default main loop. ... Increases the reference count on a source by one. ... Decreases the reference count of source by one. ...
Adds a source to a context so that it will be executed within that context. ...
Removes a source from its context, if any, and mark it as destroyed. ...
Returns whether the source has been destroyed. ... The g-source-priority function gets the priority of the source. ... The g-source-can-recurse function checks whether the source is allowed
to be called recursively. ...
Returns the numeric ID for a particular source. ... The g-source-name function gets a name for the source, used in
ebugging and profiling. ...
Sets the name of a source using its ID. ...
Gets the context with which the source is associated. ...
Sets the callback function for a source. ...
Gets the time to be used when checking this source. ...
Removes the source with the given ID from the default main context. ... GBytesA simple refcounted data type representing an immutable sequence of zero or more bytes from an unspecified origin.
A simple refcounted data type representing an immutable sequence of zero or
more bytes from an unspecified origin. ... QuarksA 2-way association between a string and a unique integer identifier.
Quarks are associations between strings and integer identifiers. ... Error ReportingA system for reporting errors.GLib provides a standard method of reporting errors from a called function to the calling code. In the Lisp binding we provide internally the macros with-g-error and with-catching-to-g-error to handle errors from the GTK and GLIB libraries. Only the type g-error is exported. Utility FunctionsA selection of portable utility functions.
These are logical IDs for special directories which are defined depending
on the platform used. ...
Accessor of a human readable name for the application. ...
Accessor of the name of the program. ...
Gets the list of environment variables for the current process. ... Returns the value of an environment variable. ... Sets an environment variable. ... Gets the names of all variables set in the environment. ... Gets the user name of the current user. ... Gets the real name of the user. ... Returns a base directory in which to store non-essential, cached data specific to particular user. ... Returns a base directory in which to access application data such as icons that is customized for a particular user. ... Returns a base directory in which to store user-specific application configuration information such as user preferences and settings. ...
Returns a directory that is unique to the current user on the local system. ... Returns the full path of a special directory using its logical ID. ... Returns an ordered list of base directories in which to access system-wide application data. ... Returns an ordered list of base directories in which to access system-wide configuration information. ... Return a name for the machine. ... Gets the current user's home directory. ... Gets the directory to use for temporary files. ... Gets the current directory. ... Returns true if the given file-name is an absolute file name. ...
Creates a filename from a series of elements using the correct separator
for filenames. ... Creates a path from a series of elements using separator as the
separator between elements. ... Command line option parserParses command line options. The g-option-arg enumeration determines which type of extra argument
the options expect to find. If an option expects an extra argument, it can be specified in several ways, with a short option: -x arg, with a long option: --name arg or combined in a single argument: --name=arg. ... Flags which modify individual options. ...
The GOption command line parser is intended to be a simpler replacement for
the popt library. ... Creates a new option context. ... The function g-option-context-summary returns the summary. ... The function g-option-context-description returns the description. ...
The type of functions which are used to translate user visible strings, for --help output. ...
Sets the function which is used to translate the user visible strings of the option context, for --help output. ...
A convenience function to use GNU gettext for translating user visible
strings. ... Frees context and all the groups which have been added to it. ...
Parses the command line arguments, recognizing options which have been added to context. ...
Parses the command line arguments. ... Enables or disables automatic generation of --help output. ... The g-option-context-ignore-unknown-options function returns whether
unknown options are ignored or not. ...
Returns a formatted, translated help text for the given option context. ... The g-option-context-strict-posix function returns whether strict
POSIX code is enabled. ...
A convenience function which creates a main group if it does not exist,
adds the option entries to it and sets the translation domain. ... Adds a g-option-group instance to context, so that parsing with context will recognize the options in the group. ... A g-option-group structure defines the options in a single group. ... Creates a new g-option-group instance. ... Increments the reference count of group by one. ... Decrements the reference count of group by one. ...
Sets the function which is used to translate user visible strings, for --help output. ...
A convenience function to use GNU gettext for translating user visible
strings. ... Key-value file parserParses .ini-like config files.
Flags which influence the parsing of key values. ... The g-key-file structure lets you parse, edit or create files
containing groups of key-value pairs, which we call key files for lack of a
better name. ... Creates a new empty g-key-file instance. ...
Sets the character which is used to separate values in lists. ... Loads a key file into a g-key-file instance. ... Loads a key file from memory into a g-key-file instance. ...
Outputs the key file as a string. ...
Writes the contents of the key file to a file. ...
Returns the name of the start group of the key file. ... Returns all groups in the key file loaded with keyfile. ...
Returns all keys for the group name. ... Looks whether the key file has the group group. ... GVariantTypeIntroduction to the GVariant type system.
The GVariant type system is based, in large part, on the D-Bus type system,
with two major changes and some minor lifting of restrictions. ... Frees a g-variant-type instance that was allocated with the functions g-variant-type-copy, g-variant-type-new or one of the
container type constructor functions. ... Makes a copy of a g-variant-type instance. ...
Returns a newly allocated copy of the type string corresponding to vtype. ...
Determines if the given variant type is definite, i.e. not indefinite. ...
Determines if the given variant type is a container type. ...
Determines if the given variant type is a basic type. ...
Determines if the given variant type is a maybe type. ...
Determines if the given variant type is an array type. ...
Determines if the given type is a tuple type. ...
Determines if the given variant type is a dictionary entry type. ...
Determines if the given variant type is the variant type. ...
The has value of the given variant type. ...
Compares two variant types for equality. ...
Constructs the type corresponding to a maybe instance containing type vtype or nothing. ...
Constructs the type corresponding to an array of elements of the type vtype. ... Constructs a new tuple type, from items. ...
Constructs the type corresponding to a dictionary entry with a key of type key and a value of type value. ...
Determines the element type of an array or maybe type. ...
Determines the number of items contained in a tuple or dictionary entry vtype. ...
Determines the first item type of a tuple or dictionary entry type. ...
Determines the next item type of a tuple or dictionary entry type. ...
Determines the key type of a dictionary entry type. ...
Determines the value type of a dictionary entry type. ... GVariantStrongly typed value datatype. The g-variant structure is a variant datatype. ... Decreases the reference count of value. ... Increases the reference count of value. ... The g-variant structure uses a floating reference count system. All functions with names starting with g_variant_new_ return floating
references. ... Checks whether value has a floating reference count. ... If value is floating, sink it. Otherwise, do nothing. ... Determines the type of value. ... Returns the type string of value. ... Checks if value is a container. ... Classifies value according to its toplevel type. ... Determines if a given string is a valid D-Bus object path. ... Determines if a given string is a valid D-Bus type signature. ... Boxes value. ... Returns the boolean value of value. ... Returns the byte value of value. ... Returns the 16-bit signed integer value of value. ... Returns the 16-bit unsigned integer value of value. ... Returns the 32-bit signed integer value of value. ... Returns the 32-bit unsigned integer value of value. ... Returns the 64-bit signed integer value of value. ... Returns the 64-bit signed integer value of value. ... Returns the 64-bit unsigned integer value of value. ... Returns the 32-bit signed integer value of value. ... Returns the double precision floating point value of value. ...
Checks if the key exists in the dictionary. ... | Exported Symbol Index |