pub struct TextParams {
pub text: String,
pub size: f64,
pub font: String,
pub halign: TextHalign,
pub valign: TextValign,
pub spacing: f64,
pub direction: TextDirection,
pub language: String,
pub script: String,
pub fn_: Option<u64>,
}
Expand description
Text macro parameters
There are numerous parameters that can be passed to the text macro. This struct can be passed instead for convenience.
Fields§
§text: String
§size: f64
§font: String
§halign: TextHalign
§valign: TextValign
§spacing: f64
§direction: TextDirection
§language: String
§script: String
§fn_: Option<u64>
Trait Implementations§
Source§impl Clone for TextParams
impl Clone for TextParams
Source§fn clone(&self) -> TextParams
fn clone(&self) -> TextParams
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 moreAuto Trait Implementations§
impl Freeze for TextParams
impl RefUnwindSafe for TextParams
impl Send for TextParams
impl Sync for TextParams
impl Unpin for TextParams
impl UnwindSafe for TextParams
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