gtksource.global

Global functions for gtksource5 library

Functions 11

fnbool 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...
fnvoid finalize()Free the resources allocated by GtkSourceView. For example it unrefs the singleton objects.
fnuint getMajorVersion()Returns the major version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 3.)
fnuint getMicroVersion()Returns the micro version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 0.)
fnuint getMinorVersion()Returns the minor version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 20.)
fnvoid init_()Initializes the GtkSourceView library (e.g. for the internationalization).
fnsize_t schedulerAdd(gtksource.types.SchedulerCallback callback)Simplified version of `funcscheduleraddfull`.
fnsize_t schedulerAddFull(gtksource.types.SchedulerCallback callback)Adds a new callback that will be executed as time permits on the main thread.
fnvoid schedulerRemove(size_t handlerId)Removes a scheduler callback previously registered with `funcscheduleradd` or `funcscheduleradd_full`.
fnstring utilsEscapeSearchText(string text)Use this function to escape the following characters: `\n`, `\r`, `\t` and `\`.
fnstring 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...