pub struct TextNodeArgs<'a> {Show 17 fields
pub node_id: Option<WIPOffset<&'a str>>,
pub content: Option<WIPOffset<&'a str>>,
pub content_binding: Option<WIPOffset<DataBinding<'a>>>,
pub localized_content: Option<WIPOffset<LocalizedString<'a>>>,
pub font_family: Option<WIPOffset<&'a str>>,
pub font_size: Option<WIPOffset<Length<'a>>>,
pub font_weight: FontWeight,
pub line_height: f32,
pub letter_spacing: Option<WIPOffset<Length<'a>>>,
pub text_align: TextAlign,
pub text_overflow: TextOverflow,
pub text_decoration: TextDecoration,
pub max_lines: i32,
pub color: Option<&'a Color>,
pub opacity: f32,
pub heading_level: i8,
pub semantic_node_id: Option<WIPOffset<&'a str>>,
}Fields§
§node_id: Option<WIPOffset<&'a str>>§content: Option<WIPOffset<&'a str>>§content_binding: Option<WIPOffset<DataBinding<'a>>>§localized_content: Option<WIPOffset<LocalizedString<'a>>>§font_family: Option<WIPOffset<&'a str>>§font_size: Option<WIPOffset<Length<'a>>>§font_weight: FontWeight§line_height: f32§letter_spacing: Option<WIPOffset<Length<'a>>>§text_align: TextAlign§text_overflow: TextOverflow§text_decoration: TextDecoration§max_lines: i32§color: Option<&'a Color>§opacity: f32§heading_level: i8§semantic_node_id: Option<WIPOffset<&'a str>>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TextNodeArgs<'a>
impl<'a> RefUnwindSafe for TextNodeArgs<'a>
impl<'a> Send for TextNodeArgs<'a>
impl<'a> Sync for TextNodeArgs<'a>
impl<'a> Unpin for TextNodeArgs<'a>
impl<'a> UnsafeUnpin for TextNodeArgs<'a>
impl<'a> UnwindSafe for TextNodeArgs<'a>
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