pub struct TextCommand {
pub x: i32,
pub baseline_y: i32,
pub text: String,
pub font_id: Option<u32>,
pub style: ResolvedTextStyle,
}Expand description
Text draw command.
Fields§
§x: i32Left x.
baseline_y: i32Baseline y.
text: StringContent.
font_id: Option<u32>Font identifier for direct command-level lookup.
style: ResolvedTextStyleResolved style.
Trait Implementations§
Source§impl Clone for TextCommand
impl Clone for TextCommand
Source§fn clone(&self) -> TextCommand
fn clone(&self) -> TextCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextCommand
impl Debug for TextCommand
Source§impl PartialEq for TextCommand
impl PartialEq for TextCommand
impl StructuralPartialEq for TextCommand
Auto Trait Implementations§
impl Freeze for TextCommand
impl RefUnwindSafe for TextCommand
impl Send for TextCommand
impl Sync for TextCommand
impl Unpin for TextCommand
impl UnsafeUnpin for TextCommand
impl UnwindSafe for TextCommand
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