[][src]Struct sciter::graphics::Text

pub struct Text(_);

Text layout object.

Implementations

impl Text[src]

pub fn create(e: &Element, text: &str) -> Result<Text>[src]

Create a text layout object on top of a host element.

pub fn with_class(e: &Element, text: &str, class: &str) -> Result<Text>[src]

Create a text layout object on top of a host element with the specified class attribute.

pub fn with_style(e: &Element, text: &str, styles: &str) -> Result<Text>[src]

Create a text layout object on top of a host element with the specified style attribute.

pub fn set_box(&mut self, size: Size) -> Result<()>[src]

Sets the box width and height of the text object.

pub fn get_metrics(&self) -> Result<TextMetrics>[src]

Returns metrics of the text layout object.

Trait Implementations

impl Clone for Text[src]

Copies text object.

All allocated objects are reference counted so copying is just a matter of increasing reference counts.

impl Drop for Text[src]

Destroy pointed text object.

impl From<Text> for Value[src]

Store the Text object as a Value.

impl FromValue for Text[src]

Get a Text object contained in the Value.

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.