gtksource.search_settings

Module for [SearchSettings] class

Types 3

Methods
GType _gType() @property
SearchSettings self()Returns `this`, for use in `with` statements.
SearchSettingsGidBuilder builder()Get builder for [gtksource.search_settings.SearchSettings] Returns: New builder object
bool atWordBoundaries() @propertyGet `atWordBoundaries` property. Returns: If true, a search match must start and end a word. The match can span multiple words.
void atWordBoundaries(bool propval) @propertySet `atWordBoundaries` property. Params: propval = If true, a search match must start and end a word. The match can span multiple words.
bool caseSensitive() @propertyGet `caseSensitive` property. Returns: Whether the search is case sensitive.
void caseSensitive(bool propval) @propertySet `caseSensitive` property. Params: propval = Whether the search is case sensitive.
bool regexEnabled() @propertyGet `regexEnabled` property. Returns: Search by regular expressions with #GtkSourceSearchSettings:search-text as the pattern.
void regexEnabled(bool propval) @propertySet `regexEnabled` property. Params: propval = Search by regular expressions with #GtkSourceSearchSettings:search-text as the pattern.
string searchText() @propertyGet `searchText` property. Returns: A search string, or null if the search is disabled. If the regular expression search is enabled, #GtkSourceSearchSettings:search-text is the pattern.
void searchText(string propval) @propertySet `searchText` property. Params: propval = A search string, or null if the search is disabled. If the regular expression search is enabled, #GtkSourceSearchSettings:search-text is the pattern.
bool wrapAround() @propertyGet `wrapAround` property. Returns: 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.
void wrapAround(bool propval) @propertySet `wrapAround` property. Params: propval = 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.
string getSearchText()Gets the text to search. The return value must not be freed.
void setAtWordBoundaries(bool atWordBoundaries)Change whether the search is done at word boundaries. If atwordboundaries is true, a search match must start and end a word. The match can span multiple words. See also [gtk.textiter.TextIter.start...
void setCaseSensitive(bool caseSensitive)Enables or disables the case sensitivity for the search.
void setRegexEnabled(bool regexEnabled)Enables or disables whether to search by regular expressions. If enabled, the #GtkSourceSearchSettings:search-text property contains the pattern of the regular expression.
void setSearchText(string searchText = null)Sets the text to search. If searchtext is null or is empty, the search will be disabled. A copy of searchtext will be made, so you can safely free search_text after a call to this function.
void setWrapAround(bool wrapAround)Enables or disables the wrap around search. If wrap_around is true, the forward search continues at the beginning of the buffer if no search occurrences are found. Similarly, the backward search co...
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new search settings object. Returns: a new search settings object.
Methods
T atWordBoundaries(bool propval)Set `atWordBoundaries` property. Params: propval = If true, a search match must start and end a word. The match can span multiple words. Returns: Builder instance for fluent chaining
T caseSensitive(bool propval)Set `caseSensitive` property. Params: propval = Whether the search is case sensitive. Returns: Builder instance for fluent chaining
T regexEnabled(bool propval)Set `regexEnabled` property. Params: propval = Search by regular expressions with #GtkSourceSearchSettings:search-text as the pattern. Returns: Builder instance for fluent chaining
T searchText(string propval)Set `searchText` property. Params: propval = A search string, or null if the search is disabled. If the regular expression search is enabled, #GtkSourceSearchSettings:search-text is the pattern. Re...
T wrapAround(bool propval)Set `wrapAround` property. Params: propval = 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...

Fluent builder for [gtksource.search_settings.SearchSettings]