Trait sourceview4::prelude::StyleSchemeManagerExt
source · pub trait StyleSchemeManagerExt: IsA<StyleSchemeManager> + Sealed + 'static {
// Provided methods
fn append_search_path(&self, path: &str) { ... }
fn force_rescan(&self) { ... }
fn scheme(&self, scheme_id: &str) -> Option<StyleScheme> { ... }
fn scheme_ids(&self) -> Vec<GString> { ... }
fn search_path(&self) -> Vec<GString> { ... }
fn prepend_search_path(&self, path: &str) { ... }
fn set_search_path(&self, path: &[&str]) { ... }
fn connect_scheme_ids_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_search_path_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
sourcefn append_search_path(&self, path: &str)
fn append_search_path(&self, path: &str)
Appends path
to the list of directories where the self
looks for
style scheme files.
See set_search_path()
for details.
path
a directory or a filename.
sourcefn force_rescan(&self)
fn force_rescan(&self)
Mark any currently cached information about the available style scehems
as invalid. All the available style schemes will be reloaded next time
the self
is accessed.
sourcefn scheme(&self, scheme_id: &str) -> Option<StyleScheme>
fn scheme(&self, scheme_id: &str) -> Option<StyleScheme>
Looks up style scheme by id.
scheme_id
style scheme id to find.
Returns
a StyleScheme
object.
The returned value is owned by self
and must not be unref’ed.
sourcefn scheme_ids(&self) -> Vec<GString>
fn scheme_ids(&self) -> Vec<GString>
Returns the ids of the available style schemes.
Returns
a None
-terminated array of strings containing the ids of the available
style schemes or None
if no style scheme is available.
The array is sorted alphabetically according to the scheme name.
The array is owned by the self
and must not be modified.
sourcefn search_path(&self) -> Vec<GString>
fn search_path(&self) -> Vec<GString>
Returns the current search path for the self
.
See set_search_path()
for details.
Returns
a None
-terminated array
of string containing the search path.
The array is owned by the self
and must not be modified.
sourcefn prepend_search_path(&self, path: &str)
fn prepend_search_path(&self, path: &str)
Prepends path
to the list of directories where the self
looks
for style scheme files.
See set_search_path()
for details.
path
a directory or a filename.