Struct sourceview5::StyleSchemeManager[][src]

pub struct StyleSchemeManager(_);

Implementations

impl StyleSchemeManager[src]

pub fn new() -> StyleSchemeManager[src]

Creates a new style manager. If you do not need more than one style manager then use StyleSchemeManager::get_default instead.

Returns

a new StyleSchemeManager.

pub fn append_search_path(&self, path: &str)[src]

Appends path to the list of directories where the self looks for style scheme files. See StyleSchemeManager::set_search_path for details.

path

a directory or a filename.

pub fn force_rescan(&self)[src]

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.

pub fn get_scheme(&self, scheme_id: &str) -> Option<StyleScheme>[src]

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.

pub fn get_scheme_ids(&self) -> Vec<GString>[src]

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.

pub fn get_search_path(&self) -> Vec<GString>[src]

Returns the current search path for the self. See StyleSchemeManager::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.

pub fn prepend_search_path(&self, path: &str)[src]

Prepends path to the list of directories where the self looks for style scheme files. See StyleSchemeManager::set_search_path for details.

path

a directory or a filename.

pub fn set_search_path(&self, path: &[&str])[src]

Sets the list of directories where the self looks for style scheme files.

If path is None, the search path is reset to default.

path

a None-terminated array of strings or None.

pub fn get_default() -> Option<StyleSchemeManager>[src]

Returns the default StyleSchemeManager instance.

Returns

a StyleSchemeManager. Return value is owned by View library and must not be unref’ed.

pub fn connect_property_scheme_ids_notify<F: Fn(&StyleSchemeManager) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

pub fn connect_property_search_path_notify<F: Fn(&StyleSchemeManager) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Trait Implementations

impl Clone for StyleSchemeManager[src]

impl Debug for StyleSchemeManager[src]

impl Default for StyleSchemeManager[src]

impl Display for StyleSchemeManager[src]

impl Eq for StyleSchemeManager[src]

impl Hash for StyleSchemeManager[src]

impl Ord for StyleSchemeManager[src]

impl ParentClassIs for StyleSchemeManager[src]

type Parent = Object

impl<T: ObjectType> PartialEq<T> for StyleSchemeManager[src]

impl<T: ObjectType> PartialOrd<T> for StyleSchemeManager[src]

impl StaticType for StyleSchemeManager[src]

impl StructuralEq for StyleSchemeManager[src]

Auto Trait Implementations

impl RefUnwindSafe for StyleSchemeManager

impl !Send for StyleSchemeManager

impl !Sync for StyleSchemeManager

impl Unpin for StyleSchemeManager

impl UnwindSafe for StyleSchemeManager

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.