Struct scad_tree::TextParams
source · 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 copy 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 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