gtksource.global

Global functions for gtksource5 library

Functions 11

fnbool checkVersion(uint major, uint minor, uint micro) nothrowLike GTK_SOURCE_CHECK_VERSION, but the check for gtk_source_check_version is at runtime instead of compile time. This is useful for compiling against older versions of GtkSourceView, but using feat...
fnvoid finalize() nothrowFree the resources allocated by GtkSourceView. For example it unrefs the singleton objects.
fnuint getMajorVersion() nothrowReturns the major version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 3.)
fnuint getMicroVersion() nothrowReturns the micro version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 0.)
fnuint getMinorVersion() nothrowReturns the minor version number of the GtkSourceView library. (e.g. in GtkSourceView version 3.20.0 this is 20.)
fnvoid init_() nothrowInitializes the GtkSourceView library (e.g. for the internationalization).
fnsize_t schedulerAdd(gtksource.types.SchedulerCallback callback) nothrowSimplified version of `funcscheduler_add_full`.
fnsize_t schedulerAddFull(gtksource.types.SchedulerCallback callback) nothrowAdds a new callback that will be executed as time permits on the main thread.
fnvoid schedulerRemove(size_t handlerId) nothrowRemoves a scheduler callback previously registered with `funcscheduler_add` or `funcscheduler_add_full`.
fnstring utilsEscapeSearchText(string text) nothrowUse this function to escape the following characters: `\n`, `\r`, `\t` and `\`.
fnstring utilsUnescapeSearchText(string text) nothrowUse 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...