Struct magick_rust::DrawingWand

source ·
pub struct DrawingWand {
    pub wand: *mut DrawingWand,
}

Fields§

§wand: *mut DrawingWand

Implementations§

source§

impl DrawingWand

source§

impl DrawingWand

source

pub fn draw_annotation( &mut self, x: f64, y: f64, text: &str, ) -> Result<(), MagickError>

source

pub fn draw_circle(&mut self, ox: f64, oy: f64, px: f64, py: f64)

source

pub fn draw_rectangle( &mut self, upper_left_x: f64, upper_left_y: f64, lower_right_x: f64, lower_right_y: f64, )

source

pub fn get_font(&self) -> Result<String, MagickError>

source

pub fn set_font(&mut self, s: &str) -> Result<(), MagickError>

source

pub fn get_font_family(&self) -> Result<String, MagickError>

source

pub fn set_font_family(&mut self, s: &str) -> Result<(), MagickError>

source

pub fn get_vector_graphics(&self) -> Result<String, MagickError>

source

pub fn set_vector_graphics(&mut self, s: &str) -> Result<(), MagickError>

source

pub fn get_clip_path(&self) -> Result<String, MagickError>

source

pub fn set_clip_path(&mut self, s: &str) -> Result<(), MagickError>

source

pub fn fmt_string_settings(&self, f: &mut Formatter<'_>, prefix: &str) -> Result

source

pub fn get_text_encoding(&self) -> Result<String, MagickError>

source

pub fn set_text_encoding(&mut self, s: &str) -> Result<(), MagickError>

source

pub fn fmt_string_unchecked_settings( &self, f: &mut Formatter<'_>, prefix: &str, ) -> Result

source

pub fn get_border_color(&self) -> PixelWand

source

pub fn set_border_color(&mut self, pw: &PixelWand)

source

pub fn get_fill_color(&self) -> PixelWand

source

pub fn set_fill_color(&mut self, pw: &PixelWand)

source

pub fn get_stroke_color(&self) -> PixelWand

source

pub fn set_stroke_color(&mut self, pw: &PixelWand)

source

pub fn get_text_under_color(&self) -> PixelWand

source

pub fn set_text_under_color(&mut self, pw: &PixelWand)

source

pub fn fmt_pixel_settings(&self, f: &mut Formatter<'_>, prefix: &str) -> Result

source

pub fn get_gravity(&self) -> GravityType

source

pub fn set_gravity(&mut self, v: GravityType)

source

pub fn get_opacity(&self) -> f64

source

pub fn set_opacity(&mut self, v: f64)

source

pub fn get_clip_rule(&self) -> FillRule

source

pub fn set_clip_rule(&mut self, v: FillRule)

source

pub fn get_clip_units(&self) -> ClipPathUnits

source

pub fn set_clip_units(&mut self, v: ClipPathUnits)

source

pub fn get_fill_rule(&self) -> FillRule

source

pub fn set_fill_rule(&mut self, v: FillRule)

source

pub fn get_fill_opacity(&self) -> f64

source

pub fn set_fill_opacity(&mut self, v: f64)

source

pub fn get_font_size(&self) -> f64

source

pub fn set_font_size(&mut self, v: f64)

source

pub fn get_font_style(&self) -> StyleType

source

pub fn set_font_style(&mut self, v: StyleType)

source

pub fn get_font_weight(&self) -> usize

source

pub fn set_font_weight(&mut self, v: usize)

source

pub fn get_font_stretch(&self) -> StretchType

source

pub fn set_font_stretch(&mut self, v: StretchType)

source

pub fn get_stroke_dash_offset(&self) -> f64

source

pub fn set_stroke_dash_offset(&mut self, v: f64)

source

pub fn get_stroke_line_cap(&self) -> LineCap

source

pub fn set_stroke_line_cap(&mut self, v: LineCap)

source

pub fn get_stroke_line_join(&self) -> LineJoin

source

pub fn set_stroke_line_join(&mut self, v: LineJoin)

source

pub fn get_stroke_miter_limit(&self) -> usize

source

pub fn set_stroke_miter_limit(&mut self, v: usize)

source

pub fn get_stroke_opacity(&self) -> f64

source

pub fn set_stroke_opacity(&mut self, v: f64)

source

pub fn get_stroke_width(&self) -> f64

source

pub fn set_stroke_width(&mut self, v: f64)

source

pub fn get_stroke_antialias(&self) -> MagickBooleanType

source

pub fn set_stroke_antialias(&mut self, v: MagickBooleanType)

source

pub fn get_text_alignment(&self) -> AlignType

source

pub fn set_text_alignment(&mut self, v: AlignType)

source

pub fn get_text_antialias(&self) -> MagickBooleanType

source

pub fn set_text_antialias(&mut self, v: MagickBooleanType)

source

pub fn get_text_decoration(&self) -> DecorationType

source

pub fn set_text_decoration(&mut self, v: DecorationType)

source

pub fn get_text_direction(&self) -> DirectionType

source

pub fn set_text_direction(&mut self, v: DirectionType)

source

pub fn get_text_kerning(&self) -> f64

source

pub fn set_text_kerning(&mut self, v: f64)

source

pub fn get_text_interline_spacing(&self) -> f64

source

pub fn set_text_interline_spacing(&mut self, v: f64)

source

pub fn get_text_interword_spacing(&self) -> f64

source

pub fn set_text_interword_spacing(&mut self, v: f64)

source

pub fn fmt_unchecked_settings( &self, f: &mut Formatter<'_>, prefix: &str, ) -> Result

Trait Implementations§

source§

impl Clone for DrawingWand

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DrawingWand

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for DrawingWand

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Send for DrawingWand

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.