SearchSettings

open class SearchSettings(pointer: <Error class: unknown class><<Error class: unknown class>>)

Search settings.

A GtkSourceSearchSettings object represents the settings of a search. The search settings can be associated with one or several class@SearchContexts.

Constructors

Link copied to clipboard
constructor()

Creates a new search settings object.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

If true, a search match must start and end a word. The match can span multiple words.

Link copied to clipboard

Whether the search is case sensitive.

Link copied to clipboard
val gtksourceSearchSettingsPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

Search by regular expressions with property@SearchSettings:search-text as the pattern.

Link copied to clipboard
open var searchText: String?

A search string, or null if the search is disabled.

Link copied to clipboard

Exclude invisible text from the search. A search match may have invisible text interspersed.

Link copied to clipboard

For a forward search, continue at the beginning of the buffer if no search occurrence is found. For a backward search, continue at the end of the buffer.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getSearchText(): String?

Gets the text to search.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setAtWordBoundaries(atWordBoundaries: Boolean)

Change whether the search is done at word boundaries.

Link copied to clipboard
open fun setCaseSensitive(caseSensitive: Boolean)

Enables or disables the case sensitivity for the search.

Link copied to clipboard
open fun setRegexEnabled(regexEnabled: Boolean)

Enables or disables whether to search by regular expressions.

Link copied to clipboard
open fun setSearchText(searchText: String? = null)

Sets the text to search.

Link copied to clipboard
open fun setVisibleOnly(visibleOnly: Boolean)

Enables or disables whether to exclude invisible text from the search.

Link copied to clipboard
open fun setWrapAround(wrapAround: Boolean)

Enables or disables the wrap around search.