Skip to main content

TextLayoutSurface

Trait TextLayoutSurface 

Source
pub trait TextLayoutSurface: HasTextNode {
Show 20 methods // Provided methods fn width(&self, width: f32, unit: Unit) -> &Self { ... } fn height(&self, height: f32, unit: Unit) -> &Self { ... } fn width_len(&self, length: Length) -> &Self { ... } fn height_len(&self, length: Length) -> &Self { ... } fn fill_width(&self) -> &Self { ... } fn fill_height(&self) -> &Self { ... } fn fill_size(&self) -> &Self { ... } fn fill_width_percent(&self, percent: f32) -> &Self { ... } fn fill_height_percent(&self, percent: f32) -> &Self { ... } fn min_width(&self, value: f32, unit: Unit) -> &Self { ... } fn max_width(&self, value: f32, unit: Unit) -> &Self { ... } fn min_height(&self, value: f32, unit: Unit) -> &Self { ... } fn max_height(&self, value: f32, unit: Unit) -> &Self { ... } fn text_align(&self, align: TextAlign) -> &Self { ... } fn text_vertical_align(&self, align: TextVerticalAlign) -> &Self { ... } fn text_limits(&self, max_chars: i32, max_lines: i32) -> &Self { ... } fn max_lines(&self, max_lines: i32) -> &Self { ... } fn wrapping(&self, wrap: bool) -> &Self { ... } fn text_overflow(&self, overflow: TextOverflow) -> &Self { ... } fn text_overflow_fade(&self, horizontal: bool, vertical: bool) -> &Self { ... }
}

Provided Methods§

Source

fn width(&self, width: f32, unit: Unit) -> &Self

Source

fn height(&self, height: f32, unit: Unit) -> &Self

Source

fn width_len(&self, length: Length) -> &Self

Source

fn height_len(&self, length: Length) -> &Self

Source

fn fill_width(&self) -> &Self

Source

fn fill_height(&self) -> &Self

Source

fn fill_size(&self) -> &Self

Source

fn fill_width_percent(&self, percent: f32) -> &Self

Source

fn fill_height_percent(&self, percent: f32) -> &Self

Source

fn min_width(&self, value: f32, unit: Unit) -> &Self

Source

fn max_width(&self, value: f32, unit: Unit) -> &Self

Source

fn min_height(&self, value: f32, unit: Unit) -> &Self

Source

fn max_height(&self, value: f32, unit: Unit) -> &Self

Source

fn text_align(&self, align: TextAlign) -> &Self

Source

fn text_vertical_align(&self, align: TextVerticalAlign) -> &Self

Source

fn text_limits(&self, max_chars: i32, max_lines: i32) -> &Self

Source

fn max_lines(&self, max_lines: i32) -> &Self

Source

fn wrapping(&self, wrap: bool) -> &Self

Source

fn text_overflow(&self, overflow: TextOverflow) -> &Self

Source

fn text_overflow_fade(&self, horizontal: bool, vertical: bool) -> &Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§