Struct cairo::Cairo
[−]
[src]
pub struct Cairo { pub opaque: *mut c_void, }
Fields
opaque: *mut c_void
Methods
impl Cairo
[src]
fn create(surface: &mut Surface) -> Cairo
fn status(&mut self) -> Status
fn save(&mut self)
fn restore(&mut self)
fn get_target(&mut self) -> Surface
fn push_group(&mut self)
fn push_group_with_content(&mut self, content: Content)
fn pop_group(&mut self) -> Pattern
fn pop_group_to_source(&mut self)
fn get_group_target(&mut self) -> Surface
fn set_source_rgb(&mut self, red: f64, green: f64, blue: f64)
fn set_source_rgba(&mut self, red: f64, green: f64, blue: f64, alpha: f64)
fn set_source(&mut self, source: &mut Pattern)
fn set_source_surface(&mut self, surface: &mut Surface, x: f64, y: f64)
fn get_source(&mut self) -> Pattern
fn set_antialias(&mut self, antialias: Antialias)
fn get_antialias(&mut self) -> Antialias
fn set_dash(&mut self, dashes: &mut [f64], offset: f64)
fn get_dash_count(&mut self) -> c_int
fn get_dash(&mut self) -> (Vec<f64>, f64)
fn set_fill_rule(&mut self, fill_rule: FillRule)
fn get_fill_rule(&mut self) -> FillRule
fn set_line_cap(&mut self, line_cap: LineCap)
fn get_line_cap(&mut self) -> LineCap
fn set_line_join(&mut self, line_join: LineJoin)
fn get_line_join(&mut self) -> LineJoin
fn set_line_width(&mut self, width: f64)
fn get_line_width(&mut self) -> f64
fn set_miter_limit(&mut self, limit: f64)
fn get_miter_limit(&mut self) -> f64
fn set_operator(&mut self, operator: Operator)
fn get_operator(&mut self) -> Operator
fn set_tolerance(&mut self, tolerance: f64)
fn get_tolerance(&mut self) -> f64
fn clip(&mut self)
fn clip_preserve(&mut self)
fn clip_extents(&mut self) -> (f64, f64, f64, f64)
fn in_clip(&mut self, x: f64, y: f64) -> bool
fn reset_clip(&mut self)
fn fill(&mut self)
fn fill_preserve(&mut self)
fn fill_extents(&mut self) -> (f64, f64, f64, f64)
fn in_fill(&mut self, x: f64, y: f64) -> bool
fn mask(&mut self, pattern: &mut Pattern)
fn mask_surface(
&mut self,
surface: &mut Surface,
surface_x: f64,
surface_y: f64
)
&mut self,
surface: &mut Surface,
surface_x: f64,
surface_y: f64
)
fn paint(&mut self)
fn paint_with_alpha(&mut self, alpha: f64)
fn stroke(&mut self)
fn stroke_preserve(&mut self)
fn stroke_extents(&mut self) -> (f64, f64, f64, f64)
fn in_stroke(&mut self, x: f64, y: f64) -> bool
fn copy_page(&mut self)
fn show_page(&mut self)
fn get_reference_count(&mut self) -> c_uint
fn copy_path(&mut self) -> Path
fn copy_path_flat(&mut self) -> Path
fn append_path(&mut self, path: &Path)
fn has_current_point(&mut self) -> bool
fn get_current_point(&mut self) -> (f64, f64)
fn new_path(&mut self)
fn new_sub_path(&mut self)
fn close_path(&mut self)
fn arc(&mut self, xc: f64, yc: f64, radius: f64, angle1: f64, angle2: f64)
fn arc_negative(
&mut self,
xc: f64,
yc: f64,
radius: f64,
angle1: f64,
angle2: f64
)
&mut self,
xc: f64,
yc: f64,
radius: f64,
angle1: f64,
angle2: f64
)
fn curve_to(&mut self, x1: f64, y1: f64, x2: f64, y2: f64, x3: f64, y3: f64)
fn line_to(&mut self, x: f64, y: f64)
fn move_to(&mut self, x: f64, y: f64)
fn rectangle(&mut self, x: f64, y: f64, width: f64, height: f64)
fn glyph_path(&mut self, glyphs: &mut [Glyph])
fn text_path(&mut self, text_path: &str)
fn rel_curve_to(
&mut self,
dx1: f64,
dy1: f64,
dx2: f64,
dy2: f64,
dx3: f64,
dy3: f64
)
&mut self,
dx1: f64,
dy1: f64,
dx2: f64,
dy2: f64,
dx3: f64,
dy3: f64
)
fn rel_line_to(&mut self, dx: f64, dy: f64)
fn rel_move_to(&mut self, dx: f64, dy: f64)
fn path_extents(&mut self) -> (f64, f64, f64, f64)
fn translate(&mut self, tx: f64, ty: f64)
fn scale(&mut self, sx: f64, sy: f64)
fn rotate(&mut self, angle: f64)
fn transform(&mut self, matrix: &mut Matrix)
fn set_matrix(&mut self, matrix: &mut Matrix)
fn get_matrix(&mut self) -> Matrix
fn identity_matrix(&mut self)
fn user_to_device(&mut self, x: f64, y: f64) -> (f64, f64)
fn user_to_device_distance(&mut self, dx: f64, dy: f64) -> (f64, f64)
fn device_to_user(&mut self, x: f64, y: f64) -> (f64, f64)
fn device_to_user_distance(&mut self, dx: f64, dy: f64) -> (f64, f64)
fn select_font_face(&mut self, family: &str, slant: Slant, weight: Weight)
fn set_font_size(&mut self, size: f64)
fn set_font_matrix(&mut self, matrix: &mut Matrix)
fn get_font_matrix(&mut self) -> Matrix
fn set_font_options(&mut self, options: &mut Options)
fn get_font_options(&mut self, options: &mut Options)
fn set_font_face(&mut self, font_face: &mut FontFace)
fn get_font_face(&mut self) -> FontFace
fn set_scaled_font(&mut self, scaled_font: &mut ScaledFont)
fn get_scaled_font(&mut self) -> ScaledFont
fn show_text(&mut self, utf8: &str)
fn show_glyphs(&mut self, glyphs: &[Glyph])
fn show_text_glyphs(
&mut self,
utf8: &str,
glyphs: &mut [Glyph],
clusters: &mut [Cluster],
cluster_flags: ClusterFlags
)
&mut self,
utf8: &str,
glyphs: &mut [Glyph],
clusters: &mut [Cluster],
cluster_flags: ClusterFlags
)
fn font_extents(&mut self) -> FontExtents
fn text_extents(&mut self, utf8: &str) -> TextExtents
fn glyph_extents(&mut self, glyphs: &[Glyph]) -> TextExtents
Trait Implementations
impl Clone for Cairo
[src]
fn clone(&self) -> Cairo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more