pub struct WrapedContext<'a> {
pub context: *mut Context,
pub surface: ImageSurface,
pub images: &'a mut Vec<Image<Rgba>>,
}Fields§
§context: *mut Context§surface: ImageSurface§images: &'a mut Vec<Image<Rgba>>Implementations§
Methods from Deref<Target = Context>§
pub fn to_raw_none(&self) -> *mut cairo_t
pub fn ensure_status(&self)
pub fn status(&self) -> Status
pub fn save(&self)
pub fn restore(&self)
pub fn get_target(&self) -> Surface
pub fn push_group(&self)
pub fn push_group_with_content(&self, content: Content)
pub fn pop_group(&self) -> Pattern
pub fn pop_group_to_source(&self)
pub fn get_group_target(&self) -> Surface
pub fn set_source_rgb(&self, red: f64, green: f64, blue: f64)
pub fn set_source_rgba(&self, red: f64, green: f64, blue: f64, alpha: f64)
pub fn set_source(&self, source: &Pattern)
pub fn get_source(&self) -> Pattern
pub fn set_source_surface(&self, surface: &Surface, x: f64, y: f64)
pub fn set_antialias(&self, antialias: Antialias)
pub fn get_antialias(&self) -> Antialias
pub fn set_dash(&self, dashes: &[f64], offset: f64)
pub fn get_dash_count(&self) -> i32
pub fn get_dash(&self) -> (Vec<f64>, f64)
pub fn get_dash_dashes(&self) -> Vec<f64>
pub fn get_dash_offset(&self) -> f64
pub fn set_fill_rule(&self, fill_rule: FillRule)
pub fn get_fill_rule(&self) -> FillRule
pub fn set_line_cap(&self, arg: LineCap)
pub fn get_line_cap(&self) -> LineCap
pub fn set_line_join(&self, arg: LineJoin)
pub fn get_line_join(&self) -> LineJoin
pub fn set_line_width(&self, arg: f64)
pub fn get_line_width(&self) -> f64
pub fn set_miter_limit(&self, arg: f64)
pub fn get_miter_limit(&self) -> f64
pub fn set_operator(&self, op: Operator)
pub fn get_operator(&self) -> Operator
pub fn set_tolerance(&self, arg: f64)
pub fn get_tolerance(&self) -> f64
pub fn clip(&self)
pub fn clip_preserve(&self)
pub fn clip_extents(&self) -> (f64, f64, f64, f64)
pub fn in_clip(&self, x: f64, y: f64) -> bool
pub fn reset_clip(&self)
pub fn copy_clip_rectangle_list(&self) -> RectangleList
pub fn fill(&self)
pub fn fill_preserve(&self)
pub fn fill_extents(&self) -> (f64, f64, f64, f64)
pub fn in_fill(&self, x: f64, y: f64) -> bool
pub fn mask(&self, pattern: &Pattern)
pub fn mask_surface(&self, surface: &Surface, x: f64, y: f64)
pub fn paint(&self)
pub fn paint_with_alpha(&self, alpha: f64)
pub fn stroke(&self)
pub fn stroke_preserve(&self)
pub fn stroke_extents(&self) -> (f64, f64, f64, f64)
pub fn in_stroke(&self, x: f64, y: f64) -> bool
pub fn copy_page(&self)
pub fn show_page(&self)
pub fn get_reference_count(&self) -> u32
pub fn translate(&self, tx: f64, ty: f64)
pub fn scale(&self, sx: f64, sy: f64)
pub fn rotate(&self, angle: f64)
pub fn transform(&self, matrix: Matrix)
pub fn set_matrix(&self, matrix: Matrix)
pub fn get_matrix(&self) -> Matrix
pub fn identity_matrix(&self)
pub fn user_to_device(&self, x: f64, y: f64) -> (f64, f64)
pub fn user_to_device_distance(&self, dx: f64, dy: f64) -> (f64, f64)
pub fn device_to_user(&self, x: f64, y: f64) -> (f64, f64)
pub fn device_to_user_distance(&self, dx: f64, dy: f64) -> (f64, f64)
pub fn select_font_face( &self, family: &str, slant: FontSlant, weight: FontWeight, )
pub fn set_font_size(&self, size: f64)
pub fn set_font_matrix(&self, matrix: Matrix)
pub fn get_font_matrix(&self) -> Matrix
pub fn set_font_options(&self, options: &FontOptions)
pub fn get_font_options(&self) -> FontOptions
pub fn set_font_face(&self, font_face: &FontFace)
pub fn get_font_face(&self) -> FontFace
pub fn set_scaled_font(&self, scaled_font: &ScaledFont)
pub fn get_scaled_font(&self) -> ScaledFont
pub fn show_text(&self, text: &str)
pub fn show_glyphs(&self, glyphs: &[Glyph])
pub fn show_text_glyphs( &self, text: &str, glyphs: &[Glyph], clusters: &[TextCluster], cluster_flags: TextClusterFlags, )
pub fn font_extents(&self) -> FontExtents
pub fn text_extents(&self, text: &str) -> TextExtents
pub fn glyph_extents(&self, glyphs: &[Glyph]) -> TextExtents
pub fn copy_path(&self) -> Path
pub fn copy_path_flat(&self) -> Path
pub fn append_path(&self, path: &Path)
pub fn has_current_point(&self) -> bool
pub fn get_current_point(&self) -> (f64, f64)
pub fn new_path(&self)
pub fn new_sub_path(&self)
pub fn close_path(&self)
pub fn arc(&self, xc: f64, yc: f64, radius: f64, angle1: f64, angle2: f64)
pub fn arc_negative( &self, xc: f64, yc: f64, radius: f64, angle1: f64, angle2: f64, )
pub fn curve_to(&self, x1: f64, y1: f64, x2: f64, y2: f64, x3: f64, y3: f64)
pub fn line_to(&self, x: f64, y: f64)
pub fn move_to(&self, x: f64, y: f64)
pub fn rectangle(&self, x: f64, y: f64, width: f64, height: f64)
pub fn text_path(&self, str_: &str)
pub fn glyph_path(&self, glyphs: &[Glyph])
pub fn rel_curve_to( &self, dx1: f64, dy1: f64, dx2: f64, dy2: f64, dx3: f64, dy3: f64, )
pub fn rel_line_to(&self, dx: f64, dy: f64)
pub fn rel_move_to(&self, dx: f64, dy: f64)
pub fn path_extents(&self) -> (f64, f64, f64, f64)
Trait Implementations§
Source§impl<'a> Deref for WrapedContext<'a>
impl<'a> Deref for WrapedContext<'a>
Source§impl<'a> Drop for WrapedContext<'a>
impl<'a> Drop for WrapedContext<'a>
Auto Trait Implementations§
impl<'a> !Send for WrapedContext<'a>
impl<'a> !Sync for WrapedContext<'a>
impl<'a> !UnwindSafe for WrapedContext<'a>
impl<'a> Freeze for WrapedContext<'a>
impl<'a> RefUnwindSafe for WrapedContext<'a>
impl<'a> Unpin for WrapedContext<'a>
impl<'a> UnsafeUnpin for WrapedContext<'a>
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