pub struct DynamicTextLayout { /* private fields */ }Implementations§
Source§impl DynamicTextLayout
impl DynamicTextLayout
pub fn fixed_charset(charset: impl Into<String>) -> Self
pub fn numeric() -> Self
pub fn is_ready(&self) -> bool
pub fn measure(&self) -> TextMetrics
pub fn current_text(&self) -> String
pub fn on_ready( &self, callback: impl Fn(TextLayoutReadyEventArgs) + 'static, ) -> &Self
pub fn width(&self, value: f32, unit: Unit) -> &Self
pub fn height(&self, value: f32, unit: Unit) -> &Self
pub fn font_stack(&self, stack: FontStack, size: f32) -> &Self
pub fn font_family(&self, family: FontFamily) -> &Self
pub fn font_weight(&self, weight: FontWeight) -> &Self
pub fn font_style(&self, style: FontStyle) -> &Self
pub fn font_size(&self, size: f32) -> &Self
pub fn line_height(&self, line_height: f32) -> &Self
pub fn text_color(&self, color: u32) -> &Self
pub fn text_align(&self, align: TextAlign) -> &Self
pub fn text_vertical_align(&self, align: TextVerticalAlign) -> &Self
pub fn text_limits(&self, max_chars: i32, max_lines: i32) -> &Self
pub fn max_lines(&self, max_lines: i32) -> &Self
pub fn wrap(&self, wrap: bool) -> &Self
pub fn wrapping(&self, wrap: bool) -> &Self
pub fn text_overflow(&self, overflow: TextOverflow) -> &Self
pub fn overflow(&self, mode: DynamicTextOverflow) -> &Self
pub fn set_text(&self, value: impl Into<String>) -> bool
pub fn text(&self, value: impl Into<String>) -> &Self
pub fn precision(&self, digits: i32) -> &Self
pub fn prefix(&self, value: impl Into<String>) -> &Self
pub fn suffix(&self, value: impl Into<String>) -> &Self
pub fn set_value(&self, value: f64) -> bool
pub fn draw_node(&self) -> TextNode
Trait Implementations§
Source§impl Clone for DynamicTextLayout
impl Clone for DynamicTextLayout
Source§fn clone(&self) -> DynamicTextLayout
fn clone(&self) -> DynamicTextLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DynamicTextLayout
impl !Send for DynamicTextLayout
impl !Sync for DynamicTextLayout
impl !UnwindSafe for DynamicTextLayout
impl Freeze for DynamicTextLayout
impl Unpin for DynamicTextLayout
impl UnsafeUnpin for DynamicTextLayout
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