pub struct FixedText;Expand description
Approximate text metrics independent of installed fonts.
Trait Implementations§
impl Copy for FixedText
Source§impl TextMeasurer for FixedText
impl TextMeasurer for FixedText
fn measure(&mut self, text: &str, font_size: f32, max_width: f32) -> Size
fn begin_window(&mut self, _scene: &Node)
Source§fn font_families(&self) -> &[String]
fn font_families(&self) -> &[String]
Font families available for the current window, including embedded fonts.
fn default_font_size(&self) -> Option<f32>
fn font_size(&self, node: &Node) -> f32
fn measure_node(&mut self, node: &Node, text: &str, max_width: f32) -> Size
fn layout_styled_text( &mut self, node: &Node, available: Size, ) -> Option<StyledTextLayout>
fn measure_label(&mut self, node: &Node, max_width: f32) -> Size
Auto Trait Implementations§
impl Forget for FixedText
impl Freeze for FixedText
impl Move for FixedText
impl RefUnwindSafe for FixedText
impl Send for FixedText
impl Sync for FixedText
impl Unpin for FixedText
impl UnsafeUnpin for FixedText
impl UnwindSafe for FixedText
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more