Struct magick_rust::DrawingWand
source · pub struct DrawingWand {
pub wand: *mut DrawingWand,
}
Fields§
§wand: *mut DrawingWand
Implementations§
source§impl DrawingWand
impl DrawingWand
pub fn new() -> Self
pub fn new_from_wand(wand: *mut DrawingWand) -> Self
pub fn clear_exception(&mut self) -> Result<(), MagickError>
pub fn get_exception_type(&self) -> ExceptionType
pub fn get_exception(&self) -> Result<(String, ExceptionType), MagickError>
pub fn is_wand(&self) -> Result<(), MagickError>
source§impl DrawingWand
impl DrawingWand
pub fn draw_annotation( &mut self, x: f64, y: f64, text: &str, ) -> Result<(), MagickError>
pub fn draw_circle(&mut self, ox: f64, oy: f64, px: f64, py: f64)
pub fn draw_rectangle( &mut self, upper_left_x: f64, upper_left_y: f64, lower_right_x: f64, lower_right_y: f64, )
pub fn get_font(&self) -> Result<String, MagickError>
pub fn set_font(&mut self, s: &str) -> Result<(), MagickError>
pub fn get_font_family(&self) -> Result<String, MagickError>
pub fn set_font_family(&mut self, s: &str) -> Result<(), MagickError>
pub fn get_vector_graphics(&self) -> Result<String, MagickError>
pub fn set_vector_graphics(&mut self, s: &str) -> Result<(), MagickError>
pub fn get_clip_path(&self) -> Result<String, MagickError>
pub fn set_clip_path(&mut self, s: &str) -> Result<(), MagickError>
pub fn fmt_string_settings(&self, f: &mut Formatter<'_>, prefix: &str) -> Result
pub fn get_text_encoding(&self) -> Result<String, MagickError>
pub fn set_text_encoding(&mut self, s: &str) -> Result<(), MagickError>
pub fn fmt_string_unchecked_settings( &self, f: &mut Formatter<'_>, prefix: &str, ) -> Result
pub fn get_border_color(&self) -> PixelWand
pub fn set_border_color(&mut self, pw: &PixelWand)
pub fn get_fill_color(&self) -> PixelWand
pub fn set_fill_color(&mut self, pw: &PixelWand)
pub fn get_stroke_color(&self) -> PixelWand
pub fn set_stroke_color(&mut self, pw: &PixelWand)
pub fn get_text_under_color(&self) -> PixelWand
pub fn set_text_under_color(&mut self, pw: &PixelWand)
pub fn fmt_pixel_settings(&self, f: &mut Formatter<'_>, prefix: &str) -> Result
pub fn get_gravity(&self) -> GravityType
pub fn set_gravity(&mut self, v: GravityType)
pub fn get_opacity(&self) -> f64
pub fn set_opacity(&mut self, v: f64)
pub fn get_clip_rule(&self) -> FillRule
pub fn set_clip_rule(&mut self, v: FillRule)
pub fn get_clip_units(&self) -> ClipPathUnits
pub fn set_clip_units(&mut self, v: ClipPathUnits)
pub fn get_fill_rule(&self) -> FillRule
pub fn set_fill_rule(&mut self, v: FillRule)
pub fn get_fill_opacity(&self) -> f64
pub fn set_fill_opacity(&mut self, v: f64)
pub fn get_font_size(&self) -> f64
pub fn set_font_size(&mut self, v: f64)
pub fn get_font_style(&self) -> StyleType
pub fn set_font_style(&mut self, v: StyleType)
pub fn get_font_weight(&self) -> usize
pub fn set_font_weight(&mut self, v: usize)
pub fn get_font_stretch(&self) -> StretchType
pub fn set_font_stretch(&mut self, v: StretchType)
pub fn get_stroke_dash_offset(&self) -> f64
pub fn set_stroke_dash_offset(&mut self, v: f64)
pub fn get_stroke_line_cap(&self) -> LineCap
pub fn set_stroke_line_cap(&mut self, v: LineCap)
pub fn get_stroke_line_join(&self) -> LineJoin
pub fn set_stroke_line_join(&mut self, v: LineJoin)
pub fn get_stroke_miter_limit(&self) -> usize
pub fn set_stroke_miter_limit(&mut self, v: usize)
pub fn get_stroke_opacity(&self) -> f64
pub fn set_stroke_opacity(&mut self, v: f64)
pub fn get_stroke_width(&self) -> f64
pub fn set_stroke_width(&mut self, v: f64)
pub fn get_stroke_antialias(&self) -> MagickBooleanType
pub fn set_stroke_antialias(&mut self, v: MagickBooleanType)
pub fn get_text_alignment(&self) -> AlignType
pub fn set_text_alignment(&mut self, v: AlignType)
pub fn get_text_antialias(&self) -> MagickBooleanType
pub fn set_text_antialias(&mut self, v: MagickBooleanType)
pub fn get_text_decoration(&self) -> DecorationType
pub fn set_text_decoration(&mut self, v: DecorationType)
pub fn get_text_direction(&self) -> DirectionType
pub fn set_text_direction(&mut self, v: DirectionType)
pub fn get_text_kerning(&self) -> f64
pub fn set_text_kerning(&mut self, v: f64)
pub fn get_text_interline_spacing(&self) -> f64
pub fn set_text_interline_spacing(&mut self, v: f64)
pub fn get_text_interword_spacing(&self) -> f64
pub fn set_text_interword_spacing(&mut self, v: f64)
pub fn fmt_unchecked_settings( &self, f: &mut Formatter<'_>, prefix: &str, ) -> Result
Trait Implementations§
source§impl Clone for DrawingWand
impl Clone for DrawingWand
source§impl Debug for DrawingWand
impl Debug for DrawingWand
source§impl Drop for DrawingWand
impl Drop for DrawingWand
impl Send for DrawingWand
Auto Trait Implementations§
impl Freeze for DrawingWand
impl RefUnwindSafe for DrawingWand
impl !Sync for DrawingWand
impl Unpin for DrawingWand
impl UnwindSafe for DrawingWand
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