Struct clutter::Text[][src]

pub struct Text(_, _);

Implementations

impl Text[src]

pub fn new() -> Text[src]

Creates a new Text actor. This actor can be used to display and edit text.

Returns

the newly created Text actor

pub fn new_full(font_name: &str, text: &str, color: &Color) -> Text[src]

Creates a new Text actor, using font_name as the font description; text will be used to set the contents of the actor; and color will be used as the color to render text.

This function is equivalent to calling Text::new, TextExt::set_font_name, TextExt::set_text and TextExt::set_color.

font_name

a string with a font description

text

the contents of the actor

color

the color to be used to render text

Returns

the newly created Text actor

pub fn with_buffer<P: IsA<TextBuffer>>(buffer: &P) -> Text[src]

pub fn with_text(font_name: Option<&str>, text: &str) -> Text[src]

Trait Implementations

impl Clone for Text[src]

impl Debug for Text[src]

impl Default for Text[src]

impl Display for Text[src]

impl Eq for Text[src]

impl Hash for Text[src]

impl IsA<Actor> for Text[src]

impl IsA<Animatable> for Text[src]

impl IsA<Container> for Text[src]

impl IsA<InitiallyUnowned> for Text[src]

impl Ord for Text[src]

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

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

impl StaticType for Text[src]

Auto Trait Implementations

impl RefUnwindSafe for Text

impl !Send for Text

impl !Sync for Text

impl Unpin for Text

impl UnwindSafe for Text

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>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

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
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.