[−][src]Struct sciter::graphics::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.
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
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.
fn from_value(v: &Value) -> Option<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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,