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§
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".