gtksource.search_settings

Module for [SearchSettings] class

Types 3

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
SearchSettings self() nothrowReturns `this`, for use in `with` statements.
SearchSettingsGidBuilder builder() static nothrowGet builder for [gtksource.search_settings.SearchSettings] Returns: New builder object
bool atWordBoundaries() @property nothrowGet `atWordBoundaries` property. Returns: If true, a search match must start and end a word. The match can span multiple words.
void atWordBoundaries(bool propval) @property nothrowSet `atWordBoundaries` property. Params: propval = If true, a search match must start and end a word. The match can span multiple words.
bool caseSensitive() @property nothrowGet `caseSensitive` property. Returns: Whether the search is case sensitive.
void caseSensitive(bool propval) @property nothrowSet `caseSensitive` property. Params: propval = Whether the search is case sensitive.
bool regexEnabled() @property nothrowGet `regexEnabled` property. Returns: Search by regular expressions with #GtkSourceSearchSettings:search-text as the pattern.
void regexEnabled(bool propval) @property nothrowSet `regexEnabled` property. Params: propval = Search by regular expressions with #GtkSourceSearchSettings:search-text as the pattern.
string searchText() @property nothrowGet `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) @property nothrowSet `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() @property nothrowGet `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) @property nothrowSet `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.
bool getAtWordBoundaries() nothrow
bool getCaseSensitive() nothrow
bool getRegexEnabled() nothrow
string getSearchText() nothrowGets the text to search. The return value must not be freed.
bool getWrapAround() nothrow
void setAtWordBoundaries(bool atWordBoundaries) nothrowChange whether the search is done at word boundaries. If at_word_boundaries is true, a search match must start and end a word. The match can span multiple words. See also [gtk.text_iter.TextIter.st...
void setCaseSensitive(bool caseSensitive) nothrowEnables or disables the case sensitivity for the search.
void setRegexEnabled(bool regexEnabled) nothrowEnables 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) nothrowSets the text to search. If search_text is null or is empty, the search will be disabled. A copy of search_text will be made, so you can safely free search_text after a call to this function.
void setWrapAround(bool wrapAround) nothrowEnables 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.

Fluent builder implementation template for gtksource.search_settings.SearchSettings

Methods
T atWordBoundaries(bool propval) nothrowSet `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) nothrowSet `caseSensitive` property. Params: propval = Whether the search is case sensitive. Returns: Builder instance for fluent chaining
T regexEnabled(bool propval) nothrowSet `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) nothrowSet `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) nothrowSet `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...
Methods
SearchSettings build() nothrowCreate object from builder. Returns: New object