[]Struct gtk::TextAttributes

pub struct TextAttributes(_);

Using TextAttributes directly should rarely be necessary. It’s primarily useful with TextIter::get_attributes. As with most GTK+ structs, the fields in this struct should only be read, never modified directly.

Implementations

impl TextAttributes[src]

pub fn new() -> TextAttributes[src]

Creates a TextAttributes, which describes a set of properties on some text.

Returns

a new TextAttributes, free with TextAttributes::unref.

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

Copies self and returns a new TextAttributes.

Returns

a copy of self, free with TextAttributes::unref

pub fn copy_values(&self, dest: &TextAttributes)[src]

Copies the values from self to dest so that dest has the same values as self. Frees existing values in dest.

dest

another TextAttributes

Trait Implementations

impl Clone for TextAttributes

impl Debug for TextAttributes[src]

impl Default for TextAttributes[src]

impl Eq for TextAttributes[src]

impl Hash for TextAttributes[src]

impl Ord for TextAttributes[src]

impl PartialEq<TextAttributes> for TextAttributes[src]

impl PartialOrd<TextAttributes> for TextAttributes[src]

impl StaticType for TextAttributes

impl StructuralEq for TextAttributes[src]

impl StructuralPartialEq for TextAttributes[src]

Auto Trait Implementations

impl RefUnwindSafe for TextAttributes

impl !Send for TextAttributes

impl !Sync for TextAttributes

impl Unpin for TextAttributes

impl UnwindSafe for TextAttributes

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<T> From<T> for T[src]

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

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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: ToValue + SetValue + Send + ?Sized

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.