SourceSearchContext
Object Hierarchy:
Description:
[ CCode ( type_id = "gtk_source_search_context_get_type ()" ) ]
[ GIR ( name = "SearchContext" ) ]
public class SourceSearchContext : Object
Content:
Properties:
Creation methods:
Methods:
- public bool backward (TextIter iter, out TextIter match_start, out TextIter match_end, out bool has_wrapped_around)
Synchronous backward search.
- public async bool backward_async (TextIter iter, Cancellable? cancellable, out TextIter match_start, out TextIter match_end, out bool has_wrapped_around) throws Error
- public bool forward (TextIter iter, out TextIter match_start, out TextIter match_end, out bool has_wrapped_around)
Synchronous forward search.
- public async bool forward_async (TextIter iter, Cancellable? cancellable, out TextIter match_start, out TextIter match_end, out bool has_wrapped_around) throws Error
The asynchronous version of
forward.
- public unowned SourceBuffer get_buffer ()
- public bool get_highlight ()
- public unowned SourceStyle get_match_style ()
- public int get_occurrence_position (TextIter match_start, TextIter match_end)
Gets the position of a search occurrence.
- public int get_occurrences_count ()
Gets the total number of search occurrences.
- public Error? get_regex_error ()
Regular expression patterns must follow certain rules.
- public unowned SourceSearchSettings get_settings ()
- public bool replace (TextIter match_start, TextIter match_end, string replace, int replace_length) throws Error
Replaces a search match by another text.
- public uint replace_all (string replace, int replace_length) throws Error
Replaces all search matches by another text.
- public void set_highlight (bool highlight)
Enables or disables the search occurrences highlighting.
- public void set_match_style (SourceStyle? match_style)
Set the style to apply on search matches.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref