[−][src]Struct mksvg::text::Text
Implementations
impl<C: CDNum> Text<C>
[src]
pub fn new<S: AsRef<str>>(s: S, x: C, y: C, lh: C) -> Self
[src]
pub fn lines<I, S>(it: I, x: C, y: C, lh: C) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str>,
[src]
I: IntoIterator<Item = S>,
S: AsRef<str>,
pub fn wrap(self, n: usize) -> Self
[src]
pub fn v_center(self) -> Self
[src]
pub fn v_base(self) -> Self
[src]
pub fn bg<S: AsRef<str>>(self, sw: C, col: S) -> Self
[src]
pub fn write<E, S: SvgWrite<Err = E>>(&self, s: &mut S) -> Result<(), E>
[src]
Trait Implementations
impl<C: Clone + CDNum> Clone for Text<C>
[src]
impl<C: Debug + CDNum> Debug for Text<C>
[src]
impl<C: CDNum> Display for Text<C>
[src]
impl<C: PartialEq + CDNum> PartialEq<Text<C>> for Text<C>
[src]
impl<C: CDNum> StructuralPartialEq for Text<C>
[src]
impl<C: CDNum + Debug> SvgArg for Text<C>
[src]
fn arg<T: Display>(self, k: &str, v: T) -> Self
[src]
fn style<T: Display>(self, k: &str, v: T) -> Self
[src]
fn transform<T: Display>(self, k: &str, args: &[T]) -> Self
[src]
fn font_size<T: Display>(self, t: T) -> Self
[src]
fn font_family<T: Display>(self, n: T) -> Self
[src]
fn stroke_width<T: Display>(self, n: T) -> Self
[src]
fn stroke<T: Display>(self, n: T) -> Self
[src]
fn fill<T: Display>(self, n: T) -> Self
[src]
fn font_weight<T: Display>(self, n: T) -> Self
[src]
fn class<T: Display>(self, s: T) -> Self
[src]
fn d<T: Display>(self, n: T) -> Self
[src]
fn id<T: Display>(self, n: T) -> Self
[src]
fn x<T: Display>(self, n: T) -> Self
[src]
fn y<T: Display>(self, n: T) -> Self
[src]
fn xy<T: Display>(self, x: T, y: T) -> Self
[src]
fn cy<T: Display>(self, n: T) -> Self
[src]
fn cx<T: Display>(self, n: T) -> Self
[src]
fn rx<T: Display>(self, n: T) -> Self
[src]
fn ry<T: Display>(self, n: T) -> Self
[src]
fn width<T: Display>(self, n: T) -> Self
[src]
fn height<T: Display>(self, n: T) -> Self
[src]
fn wh<T: Display>(self, w: T, h: T) -> Self
[src]
fn href<T: Display>(self, n: T) -> Self
[src]
fn xhref<T: Display>(self, n: T) -> Self
[src]
fn text_anchor<T: Display>(self, n: T) -> Self
[src]
fn rotate<T: Display>(self, ang: T, x: T, y: T) -> Self
[src]
fn translate<T: Display>(self, x: T, y: T) -> Self
[src]
fn scale<T: Display>(self, x: T, y: T) -> Self
[src]
fn skew_x<T: Display>(self, x: T) -> Self
[src]
fn scew_y<T: Display>(self, y: T) -> Self
[src]
fn matrix<T: Display>(self, args: &[T]) -> Self
[src]
fn w<T: Display>(self, n: T) -> Self
[src]
fn h<T: Display>(self, n: T) -> Self
[src]
fn t_anc<T: Display>(self, n: T) -> Self
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for Text<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for Text<C> where
C: Send,
C: Send,
impl<C> Sync for Text<C> where
C: Sync,
C: Sync,
impl<C> Unpin for Text<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for Text<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,