- public unowned string C_ (string context, string str)
- public unowned string NC_ (string context, string str)
- public unowned string N_ (string str)
- public unowned string Q_ (string str)
- public unowned string _ (string str)
- public void assert (bool expr)
- public void assert_cmpfloat (double n1, CompareOperator cmp, double n2)
- public void assert_cmpfloat_with_epsilon (double n1, double n2, double epsilon)
- public void assert_cmphex (uint n1, CompareOperator cmp, uint n2)
- public void assert_cmpint (int n1, CompareOperator cmp, int n2)
- public void assert_cmpmem (uint8[] m1, uint8[] m2)
- public void assert_cmpstr (string? s1, CompareOperator cmp, string? s2)
- public void assert_cmpstrv (string[] strv1, string[] strv2)
- public void assert_cmpuint (uint n1, CompareOperator cmp, uint n2)
- public void assert_cmpvariant (Variant v1, Variant v2)
- public void assert_error (Error? error, Quark error_domain, int error_code)
- public void assert_false (bool expr)
- public void assert_no_error (Error? error)
- public void assert_nonnull (void* expr)
- public void assert_not_reached ()
- public void assert_null (void* expr)
- public void assert_true (bool expr)
- public void breakpoint ()
- public string convert (string str, ssize_t len, string to_codeset, string from_codeset, out size_t bytes_read = null, out size_t bytes_written = null) throws ConvertError
Converts a string from one character set to another.
- public string convert_with_fallback (string str, ssize_t len, string to_codeset, string from_codeset, string? fallback = null, out size_t bytes_read = null, out size_t bytes_written = null) throws ConvertError
Converts a string from one character set to another, possibly
including fallback sequences for characters not representable in the output.
- public string convert_with_iconv (string str, ssize_t len, IConv converter, out size_t bytes_read = null, out size_t bytes_written = null) throws ConvertError
Converts a string from one character set to another.
- public void critical (string format, ...)
- public unowned string dcgettext (string? domain, string msgid, int category)
This is a variant of
dgettext that allows specifying a locale category instead of always using `LC_MESSAGES`.
- public void debug (string format, ...)
- public void debug_here ()
- public unowned string dgettext (string? domain, string msgid)
This function is a wrapper of dgettext
which does not translate the message if the default domain as set with textdomain
has no translations for the current locale.
- public unowned string dngettext (string? domain, string msgid, string msgid_plural, ulong n)
This function is a wrapper of dngettext
which does not
translate the message if the default domain as set with textdomain has no
translations for the current locale.
- public unowned string dpgettext (string? domain, string msgctxid, size_t msgidoffset)
This function is a variant of
dgettext which supports a disambiguating message context.
- public unowned string dpgettext2 (string? domain, string context, string msgid)
This function is a variant of
dgettext which supports a disambiguating message context.
- public void error (string format, ...)
- public string format_size (uint64 size, FormatSizeFlags flags = DEFAULT)
Formats a size.
- public string format_size_for_display (int64 size)
Formats a size (for example the size of a file) into a human
readable string.
- public void free (void* mem)
- public bool get_charset (out unowned string charset)
Obtains the character set for the current locale; you might
use this character set as an argument to convert, to convert from the current
locale's encoding to some other encoding.
- public bool get_console_charset (out unowned string[] charsets)
Obtains the character set used by the console attached to the
process, which is suitable for printing output to the terminal.
- public bool get_filename_charsets (out unowned string[] charsets)
Determines the preferred character sets used for filenames.
- public int64 get_monotonic_time ()
Queries the system monotonic time.
- public uint get_num_processors ()
Determine the approximate number of threads that the system will
schedule simultaneously for this process.
- public int64 get_real_time ()
Queries the system wall-clock time.
- public unowned string gettext (string str)
- public void info (string format, ...)
- public bool likely (bool expression)
- public void log (string? log_domain, LogLevelFlags log_level, string format, ...)
Logs an error or debugging message.
- public void log_structured (string? log_domain, LogLevelFlags log_levels, ...)
Log a message with structured data.
- public void log_structured_array (LogLevelFlags log_levels, LogField[] fields)
Log a message with structured data.
- public void log_variant (string? log_domain, LogLevelFlags log_levels, Variant fields)
Log a message with structured data, accepting the data within a
Variant.
- public void logv (string? log_domain, LogLevelFlags log_level, string format, va_list args)
Logs an error or debugging message.
- public void* malloc (size_t n_bytes)
Allocates n_bytes
bytes of memory.
- public void* malloc0 (size_t n_bytes)
Allocates n_bytes
bytes of memory, initialized to 0's.
- public bool mem_is_system_malloc ()
Checks whether the allocator used by
malloc is the system's malloc implementation.
- public void mem_profile ()
GLib used to support some tools for memory profiling, but this no
longer works.
- public void mem_set_vtable (MemVTable vtable)
This function used to let you override the memory allocation
function.
- public void message (string format, ...)
- public unowned string ngettext (string msgid, string msgid_plural, ulong n)
- public void on_error_query (string? prg_name = null)
Prompts the user with `[E]xit, [H]alt, show [S]tack trace or [P]
roceed`.
- public void on_error_stack_trace (string? prg_name = null)
Invokes gdb, which attaches to the current process and shows a stack
trace.
- public uint parse_debug_string (string? debug_string, DebugKey[] keys)
Parses a string containing debugging options into a
guint containing bit flags.
- public int poll (PollFD[] fds, int timeout)
Polls fds
, as with the poll
system call, but portably.
- public void print (string format, ...)
Outputs a formatted message via the print handler.
- public void printerr (string format, ...)
Outputs a formatted message via the error message handler.
- public void qsort_with_data<T> (T[] elems, size_t size, CompareDataFunc<T> compare_func)
- public void* realloc (void* mem, size_t n_bytes)
Reallocates the memory pointed to by mem
, so that it
now has space for n_bytes
bytes of memory.
- public void return_if_fail (bool expr)
- public void return_if_reached ()
- public void return_val_if_fail (bool expr, ...)
- public void return_val_if_reached (...)
- public void set_print_handler (PrintFunc func)
Sets the print handler.
- public void set_printerr_handler (PrintFunc func)
Sets the handler for printing error messages.
- public void static_assert (bool expression)
- public string strdup (string str)
Duplicates a string.
- public string[] strdupv (string[] str_array)
Copies null-terminated array of
strings.
- public unowned string strerror (int errnum)
Returns a string corresponding to the given error code, e.
- public void strfreev (unowned string** str_array)
Frees a null-terminated array of
strings, as well as each string it contains.
- public unowned string strsignal (int signum)
Returns a string describing the given signal, e.
- public bool strv_contains (string[] str_array, string str)
Checks if strv
contains str
.
- public uint strv_length (string[] str_array)
Returns the length of the given null
-terminated string array str_array
.
- public void* try_malloc (size_t n_bytes)
Attempts to allocate n_bytes
, and returns
null on failure.
- public void* try_malloc0 (size_t n_bytes)
Attempts to allocate n_bytes
, initialized to 0's, and
returns null on failure.
- public void* try_realloc (void* mem, size_t n_bytes)
Attempts to realloc mem
to a new size, n_bytes
, and returns null on failure.
- public bool unlikely (bool expression)
- public void warn_if_fail (bool expr)
- public void warn_if_reached ()
- public void warning (string format, ...)
- public void warning_once (string format, ...)
- public const string GROUP
- public const string KEY_ACTIONS
A key under g_key_file_desktop_group
, whose value is a string list giving the available application actions.
- public const string KEY_CATEGORIES
A key under g_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.
- public const string KEY_COMMENT
A key under g_key_file_desktop_group
, whose value is a localized string giving the tooltip for the desktop entry.
- public const string KEY_DBUS_ACTIVATABLE
A key under g_key_file_desktop_group
, whose value is a boolean set to true if the application is D-Bus activatable.
- public const string KEY_EXEC
A key under g_key_file_desktop_group
, whose value is a string giving the command line to execute.
- public const string KEY_FULLNAME
- public const string KEY_GENERIC_NAME
A key under g_key_file_desktop_group
, whose value is a localized string giving the generic name of the desktop entry.
- public const string KEY_GETTEXT_DOMAIN
- public const string KEY_HIDDEN
A key under g_key_file_desktop_group
, whose value is a boolean stating whether the desktop entry has been deleted by the user.
- public const string KEY_ICON
A key under g_key_file_desktop_group
, whose value is a localized string giving the name of the icon to be displayed for the desktop entry.
- public const string KEY_KEYWORDS
- public const string KEY_MIME_TYPE
A key under g_key_file_desktop_group
, whose value is a list of strings giving the MIME types supported by this desktop entry.
- public const string KEY_NAME
A key under g_key_file_desktop_group
, whose value is a localized string giving the specific name of the desktop entry.
- public const string KEY_NOT_SHOW_IN
A key under g_key_file_desktop_group
, whose value is a list of strings identifying the environments that should not display the desktop entry.
- public const string KEY_NO_DISPLAY
A key under g_key_file_desktop_group
, whose value is a boolean stating whether the desktop entry should be shown in menus.
- public const string KEY_ONLY_SHOW_IN
A key under g_key_file_desktop_group
, whose value is a list of strings identifying the environments that should display the desktop entry.
- public const string KEY_PATH
A key under g_key_file_desktop_group
, whose value is a string containing the working directory to run the program in.
- public const string KEY_STARTUP_NOTIFY
- public const string KEY_STARTUP_WM_CLASS
A key under g_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.
- public const string KEY_TERMINAL
A key under g_key_file_desktop_group
, whose value is a boolean stating whether the program should be run in a terminal window.
- public const string KEY_TRY_EXEC
A key under g_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.
- public const string KEY_TYPE
A key under g_key_file_desktop_group
, whose value is a string giving the type of the desktop entry.
- public const string KEY_URL
A key under g_key_file_desktop_group
, whose value is a string giving the URL to access.
- public const string KEY_VERSION
A key under g_key_file_desktop_group
, whose value is a string giving the version of the Desktop Entry Specification used for the desktop entry file.
- public const string TYPE_APPLICATION
The value of the
g_key_file_desktop_key_type, key for desktop entries representing applications.
- public const string TYPE_DIRECTORY
The value of the
g_key_file_desktop_key_type, key for desktop entries representing directories.
- public const string TYPE_LINK
The value of the
g_key_file_desktop_key_type, key for desktop entries representing links to documents.
- public double acos (double x)
Calculates the arc cosine of x
.
- public float acosf (float x)
Calculates the arc cosine of x
.
- public double acosh (double x)
Calculates the inverse hyperbolic cosine of x
.
- public float acoshf (float x)
Calculates the inverse hyperbolic cosine of x
.
- public double asin (double x)
Calculates the arc sine of x
.
- public float asinf (float x)
Calculates the arc sine of x
.
- public double asinh (double x)
Returns the inverse hyperbolic sine of x
, that is the
value whose hyperbolic sine is x
.
- public float asinhf (float x)
Returns the inverse hyperbolic sine of x
, that is the
value whose hyperbolic sine is x
.
- public double atan (double x)
Calculates the arc tangent of x
.
- public double atan2 (double y, double x)
Calculates the arc tangent of the two variables x
and
y
.
- public float atan2f (float y, float x)
Calculates the arc tangent of the two variables x
and
y
.
- public float atanf (float x)
Calculates the arc tangent of x
.
- public double atanh (double x)
Returns the inverse hyperbolic tangent of x
.
- public float atanhf (float x)
Returns the inverse hyperbolic tangent of x
.
- public double cbrt (double x)
Returns the (real) cube root of x.
- public float cbrtf (float x)
Returns the (real) cube root of x
.
- public double ceil (double x)
Rounds x
up to the nearest integer.
- public float ceilf (float x)
Rounds x
up to the nearest integer.
- public double copysign (double x, double y)
Returns a value whose absolute value matches that of x
,
but whose sign bit matches that of y
.
- public float copysignf (float x, float y)
Returns a value whose absolute value matches that of x
,
but whose sign bit matches that of y
.
- public double cos (double x)
Returns the cosine of x
.
- public float cosf (float x)
Returns the cosine of x
.
- public double cosh (double x)
Returns the hyperbolic cosine of x
.
- public float coshf (float x)
Returns the hyperbolic cosine of x
.
- public double drem (double x, double y)
Computes the remainder of dividing x by y.
- public float dremf (float x, float y)
Computes the remainder of dividing x
by y
.
- public double erf (double x0)
Returns the error function of x0
.
- public double erfc (double x0)
Returns the complementary error function of x0
, that is
1.0 - erf(x0)
.
- public float erfcf (float x0)
Returns the complementary error function of x0
, that is
1.0 - erf(x0)
.
- public float erff (float x0)
Returns the error function of x0.
- public double exp (double x)
Returns the value of the base of natural logarithms raised to the
power of x
.
- public double exp10 (double x)
Returns the value of 10 raised to the power of x
.
- public float exp10f (float x)
Returns the value of 10 raised to the power of x
.
- public double exp2 (double x)
Returns the value of 2 raised to the power of x
.
- public float exp2f (float x)
Returns the value of 2 raised to the power of x
.
- public float expf (float x)
Returns the value of the base of natural logarithms raised to the
power of x
.
- public double expm1 (double x)
Returns a value equivalent to exp(x) - 1
.
- public float expm1f (float x)
Returns a value equivalent to exp(x) - 1
.
- public double fabs (double x)
Returns the absolute value.
- public float fabsf (float x)
Returns the absolute value.
- public double fdim (double x, double y)
Returns max(x - y, 0)
.
- public float fdimf (float x, float y)
Returns max(x - y, 0)
.
- public int finite (double value)
Returns the value of not-a-number (NaN) checking.
- public int finitef (float value)
Returns the value of not-a-number (
float.NAN) checking.
- public double floor (double x)
Rounds x
down to the nearest integer.
- public float floorf (float x)
Rounds x
down to the nearest integer.
- public double fma (double x, double y, double z)
Computes x * y + z
.
- public float fmaf (float x, float y, float z)
Computes x * y + z
.
- public double fmax (double x, double y)
Returns the larger value of x
and y
.
- public float fmaxf (float x, float y)
Returns the larger value of x
and y
.
- public double fmin (double x, double y)
Returns the smaller value of x
and y
.
- public float fminf (float x, float y)
Returns the smaller value of x
and y
.
- public double fmod (double x, double y)
Computes the remainder of dividing x
by y
.
- public float fmodf (float x, float y)
Computes the remainder of dividing x
by y
.
- public double frexp (double x, out int exponent)
Split the number x
into a normalized fraction and an
exponent.
- public float frexpf (float x, out int exponent)
Split the number x
into a normalized fraction and an
exponent.
- public double gamma (double x0)
Computes the natural logarithm of the Gamma function.
- public float gammaf (float x0)
Computes the natural logarithm of the Gamma function.
- public double hypot (double x, double y)
Returns the length of the hypotenuse of a right-angle triangle with
sides of length x
and y
, or the distance of the point (x,y)
from the origin.
- public float hypotf (float x, float y)
Returns the length of the hypotenuse of a right-angle triangle.
- public int ilogb (double x)
Returns the exponent part of their argument as a signed integer.
- public int ilogbf (float x)
Returns the exponent part of their argument as a signed integer.
- public int isinf (double value)
- public int isinff (float value)
Returns the value of infinity checking.
- public int isnan (double value)
- public int isnanf (float value)
Returns a non-zero value if value
is not-a-number (
float.NAN).
- public double j0 (double x0)
Returns Bessel function of x0
of the first kind of
order 0.
- public float j0f (float x0)
Returns Bessel function of x0
of the first kind of
order 0.
- public double j1 (double x0)
Returns Bessel function of x0
of the first kind of
order 1.
- public float j1f (float x0)
Returns Bessel function of x0
of the first kind of
order 1.
- public double jn (int x0, double x1)
Returns Bessel function of x
of the first kind of order
n
.
- public float jnf (int x0, float x1)
Returns Bessel function of x
of the first kind of order
n
.
- public double ldexp (double x, int exponent)
Returns the result of multiplying the floating-point number x
by 2 raised to the power exponent
.
- public float ldexpf (float x, int exponent)
Returns the result of multiplying the floating-point number x
by 2 raised to the power exponent
.
- public double lgamma (double x0)
Returns the natural logarithm of the absolute value of the Gamma
function.
- public double lgamma_r (double x0, out int signgamp)
Returns the natural logarithm of the absolute value of the Gamma
function.
- public float lgamma_rf (float x0, out int signgamp)
Returns the natural logarithm of the absolute value of the Gamma
function.
- public float lgammaf (float x0)
Returns the natural logarithm of the absolute value of the Gamma
function.
- public int64 llrint (double x)
Rounds it's argument to the nearest integer value, using the current
rounding direction.
- public int64 llrintf (float x)
Rounds it's argument to the nearest integer value, using the current
rounding direction.
- public int64 llround (double x)
Rounds it's argument to the nearest integer value, rounding away
from zero, regardless of the current rounding direction.
- public int64 llroundf (float x)
Rounds it's argument to the nearest integer value, rounding away
from zero, regardless of the current rounding direction.
- public double log (double x)
Returns the natural logarithm of x
.
- public double log10 (double x)
Returns the base 10 logarithm of x
.
- public float log10f (float x)
Returns the base 10 logarithm of x
.
- public double log1p (double x)
Returns a value equivalent to log(1 + x)
.
- public float log1pf (float x)
Returns a value equivalent to log(1 + x)
.
- public double log2 (double x)
Returns the base 2 logarithm of x
.
- public float log2f (float x)
Returns the base 2 logarithm of x
.
- public double logb (double x)
Extracts the exponent of x
and returns it as a floating
-point value.
- public float logbf (float x)
Extracts the exponent of x and returns it as a floating-point value.
- public float logf (float x)
Returns the natural logarithm of x
.
- public long lrint (double x)
Rounds it's argument to the nearest integer value, using the current
rounding direction.
- public long lrintf (float x)
Rounds it's argument to the nearest integer value, using the current
rounding direction.
- public long lround (double x)
Rounds it's argument to the nearest integer value, rounding away
from zero, regardless of the current rounding direction.
- public long lroundf (float x)
Rounds it's argument to the nearest integer value, rounding away
from zero, regardless of the current rounding direction.
- public double modf (double x, out double iptr)
Breaks the argument x
into an integral part and a
fractional part, each of which has the same sign as x
.
- public float modff (float x, out float iptr)
Breaks the argument x
into an integral part and a
fractional part. each of which has the same sign as x
.
- public double nan (string tagb)
Returns a representation (determined by tagb
) of a
quiet double.NAN.
- public float nanf (string tagb)
Returns a representation (determined by tag
) of a quiet
float.NAN.
- public double nearbyint (double x)
Rounds argument x
to an integer value in floating point
format, using the current rounding direction and without raising the inexact exception.
- public float nearbyintf (float x)
Rounds argument x
to an integer value in floating point
format, using the current rounding direction and without raising the inexact exception.
- public double nextafter (double x, double y)
Returns the next representable neighbor of x
in the
direction towards y
.
- public float nextafterf (float x, float y)
Returns the next representable neighbor of x
in the
direction towards y
.
- public double nexttoward (double x, double y)
- public float nexttowardf (float x, double y)
- public double pow (double x, double y)
Returns the value of x
raised to the power of y
.
- public double pow10 (double x)
Returns the value of 10 raised to the power of x
.
- public float pow10f (float x)
Returns the value of 10 raised to the power of x
.
- public float powf (float x, float y)
Returns the value of x
raised to the power of y
.
- public double remainder (double x, double y)
Computes the remainder of dividing x
by y
.
- public float remainderf (float x, float y)
Computes the remainder of dividing x
by y
.
- public double remquo (double x, double y, out int quo)
Computes the remainder and part of the quotient upon division of
x
by y
.
- public float remquof (float x, float y, out int quo)
Computes the remainder and part of the quotient upon division of
x
by y
.
- public double rint (double x)
Rounds it's argument to an integer value in floating point format,
using the current rounding direction and with raising the inexact exception.
- public float rintf (float x)
Rounds it's argument to an integer value in floating point format.
using the current rounding direction and with raising the inexact exception.
- public double round (double x)
Rounds argument x
to the nearest integer, but round
halfway cases away from zero, (regardless of the current rounding direction), instead of to the nearest even integer like rint.
- public float roundf (float x)
Rounds argument x
to the nearest integer, but round
halfway cases away from zero (regardless of the current rounding direction), instead of to the nearest even integer like rint.
- public double scalb (double x, double n)
Multiplies x
by 2 to the power n
.
- public float scalbf (float x, float n)
Multiplies x
by 2 to the power n
.
- public double scalbln (double x, long n)
- public float scalblnf (float x, long n)
- public double scalbn (double x, int n)
Multiplies it's first argument x
by 2 to the power
n
.
- public float scalbnf (float x, int n)
Multiplies it's first argument x
by 2 to the power
n
.
- public double significand (double x)
Returns the mantissa of x
scaled to the range
[1,2]
.
- public float significandf (float x)
Returns the mantissa of x
scaled to the range
[1,2]
.
- public double sin (double x)
Returns the sine of x
.
- public void sincos (double x, out double sinx, out double cosx)
computes both sine and cosine of x
at the same time.
- public void sincosf (float x, out float sinx, out float cosx)
Computes both sine and cosine of x
at the same time.
- public float sinf (float x)
Returns the sine of x
, where x
is given in
radians.
- public double sinh (double x)
Returns the hyperbolic sine of x
.
- public float sinhf (float x)
returns the hyperbolic sine of x
.
- public double sqrt (double x)
Returns the non-negative square root of x
.
- public float sqrtf (float x)
Returns the non-negative square root of x
.
- public double tan (double x)
Returns the tangent of x
, where x
is given
in radians.
- public float tanf (float x)
Returns the tangent of x
.
- public double tanh (double x)
returns the hyperbolic tangent of x
.
- public float tanhf (float x)
Returns the hyperbolic tangent of x
.
- public double tgamma (double x0)
Returns the value of Gamma function for the argument x0
.
- public float tgammaf (float x0)
Returns the value of Gamma function for the argument x0
.
- public double trunc (double x)
Rounds argument x
to the nearest integer not larger in
absolute value.
- public float truncf (float x)
Rounds argument x
to the nearest integer not larger in
absolute value.
- public double y0 (double x0)
Returns Bessel function of x0
of the second kind of
order 0.
- public float y0f (float x0)
Returns Bessel function of x0 of the second kind of order 0.
- public double y1 (double x0)
Returns Bessel function of x0
of the second kind of
order 1.
- public float y1f (float x0)
Returns Bessel function of x0
of the second kind of
order 1.
- public double yn (int x0, double x1)
Returns Bessel function of x1
of the second kind of
order x0
.
- public float ynf (int x0, float x1)
Returns Bessel function of x1
of the second kind of
order x0
.