Struct sourceview5::Style[][src]

pub struct Style(_);

Implementations

impl Style[src]

pub fn apply<P: IsA<TextTag>>(&self, tag: &P)[src]

This function modifies the gtk::TextTag properties that are related to the Style properties. Other gtk::TextTag properties are left untouched.

If self is non-None, applies self to tag.

If self is None, the related *-set properties of gtk::TextTag are set to false.

tag

a gtk::TextTag to apply styles to.

pub fn copy(&self) -> Option<Style>[src]

Creates a copy of self, that is a new Style instance which has the same attributes set.

Returns

copy of self, call glib::object::ObjectExt::unref when you are done with it.

pub fn get_property_background(&self) -> Option<GString>[src]

pub fn get_property_background_set(&self) -> bool[src]

pub fn get_property_bold(&self) -> bool[src]

pub fn get_property_bold_set(&self) -> bool[src]

pub fn get_property_foreground(&self) -> Option<GString>[src]

pub fn get_property_foreground_set(&self) -> bool[src]

pub fn get_property_italic(&self) -> bool[src]

pub fn get_property_italic_set(&self) -> bool[src]

pub fn get_property_line_background(&self) -> Option<GString>[src]

pub fn get_property_line_background_set(&self) -> bool[src]

pub fn get_property_pango_underline(&self) -> Underline[src]

pub fn get_property_scale(&self) -> Option<GString>[src]

pub fn get_property_scale_set(&self) -> bool[src]

pub fn get_property_strikethrough(&self) -> bool[src]

pub fn get_property_strikethrough_set(&self) -> bool[src]

pub fn get_property_underline_color(&self) -> Option<GString>[src]

pub fn get_property_underline_color_set(&self) -> bool[src]

pub fn get_property_underline_set(&self) -> bool[src]

Trait Implementations

impl Clone for Style[src]

impl Debug for Style[src]

impl Display for Style[src]

impl Eq for Style[src]

impl Hash for Style[src]

impl Ord for Style[src]

impl ParentClassIs for Style[src]

type Parent = Object

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

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

impl StaticType for Style[src]

impl StructuralEq for Style[src]

Auto Trait Implementations

impl RefUnwindSafe for Style

impl !Send for Style

impl !Sync for Style

impl Unpin for Style

impl UnwindSafe for Style

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.