gtksource.global
Global functions for gtksource5 library
Functions 11
fn
bool checkVersion(uint major, uint minor, uint micro)Like GTKSOURCECHECKVERSION, but the check for gtksourcecheckversion is at runtime instead of compile time. This is useful for compiling against older versions of GtkSourceView, but using features f...fn
void finalize()Free the resources allocated by GtkSourceView. For example it unrefs the singleton objects.fn
uint getMajorVersion()Returns the major version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 3.)fn
uint getMicroVersion()Returns the micro version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 0.)fn
uint getMinorVersion()Returns the minor version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 20.)fn
size_t schedulerAdd(gtksource.types.SchedulerCallback callback)Simplified version of `funcscheduleraddfull`.fn
size_t schedulerAddFull(gtksource.types.SchedulerCallback callback)Adds a new callback that will be executed as time permits on the main thread.fn
void schedulerRemove(size_t handlerId)Removes a scheduler callback previously registered with `funcscheduleradd` or `funcscheduleradd_full`.fn
string utilsEscapeSearchText(string text)Use this function to escape the following characters: `\n`, `\r`, `\t` and `\`.fn
string utilsUnescapeSearchText(string text)Use this function before [gtksource.search_settings.SearchSettings.setSearchText], to unescape the following sequences of characters: `\n`, `\r`, `\t` and `\\`. The purpose is to easily write those...