[][src]Struct cairo::Context

pub struct Context(_, _);

Methods

impl Context[src]

pub unsafe fn from_raw_none(ptr: *mut cairo_t) -> Context[src]

pub unsafe fn from_raw_borrow(ptr: *mut cairo_t) -> Context[src]

pub unsafe fn from_raw_full(ptr: *mut cairo_t) -> Context[src]

pub fn to_raw_none(&self) -> *mut cairo_t[src]

pub fn ensure_status(&self)[src]

pub fn new(target: &Surface) -> Context[src]

pub fn status(&self) -> Status[src]

pub fn save(&self)[src]

pub fn restore(&self)[src]

pub fn get_target(&self) -> Surface[src]

pub fn push_group(&self)[src]

pub fn push_group_with_content(&self, content: Content)[src]

pub fn pop_group(&self) -> Pattern[src]

pub fn pop_group_to_source(&self)[src]

pub fn get_group_target(&self) -> Surface[src]

pub fn set_source_rgb(&self, red: f64, green: f64, blue: f64)[src]

pub fn set_source_rgba(&self, red: f64, green: f64, blue: f64, alpha: f64)[src]

pub fn set_source(&self, source: &Pattern)[src]

pub fn get_source(&self) -> Pattern[src]

pub fn set_source_surface(&self, surface: &Surface, x: f64, y: f64)[src]

pub fn set_antialias(&self, antialias: Antialias)[src]

pub fn get_antialias(&self) -> Antialias[src]

pub fn set_dash(&self, dashes: &[f64], offset: f64)[src]

pub fn get_dash_count(&self) -> i32[src]

pub fn get_dash(&self) -> (Vec<f64>, f64)[src]

pub fn get_dash_dashes(&self) -> Vec<f64>[src]

pub fn get_dash_offset(&self) -> f64[src]

pub fn set_fill_rule(&self, fill_rule: FillRule)[src]

pub fn get_fill_rule(&self) -> FillRule[src]

pub fn set_line_cap(&self, arg: LineCap)[src]

pub fn get_line_cap(&self) -> LineCap[src]

pub fn set_line_join(&self, arg: LineJoin)[src]

pub fn get_line_join(&self) -> LineJoin[src]

pub fn set_line_width(&self, arg: f64)[src]

pub fn get_line_width(&self) -> f64[src]

pub fn set_miter_limit(&self, arg: f64)[src]

pub fn get_miter_limit(&self) -> f64[src]

pub fn set_operator(&self, op: Operator)[src]

pub fn get_operator(&self) -> Operator[src]

pub fn set_tolerance(&self, arg: f64)[src]

pub fn get_tolerance(&self) -> f64[src]

pub fn clip(&self)[src]

pub fn clip_preserve(&self)[src]

pub fn clip_extents(&self) -> (f64, f64, f64, f64)[src]

pub fn in_clip(&self, x: f64, y: f64) -> bool[src]

pub fn reset_clip(&self)[src]

pub fn copy_clip_rectangle_list(&self) -> RectangleList[src]

pub fn fill(&self)[src]

pub fn fill_preserve(&self)[src]

pub fn fill_extents(&self) -> (f64, f64, f64, f64)[src]

pub fn in_fill(&self, x: f64, y: f64) -> bool[src]

pub fn mask(&self, pattern: &Pattern)[src]

pub fn mask_surface(&self, surface: &Surface, x: f64, y: f64)[src]

pub fn paint(&self)[src]

pub fn paint_with_alpha(&self, alpha: f64)[src]

pub fn stroke(&self)[src]

pub fn stroke_preserve(&self)[src]

pub fn stroke_extents(&self) -> (f64, f64, f64, f64)[src]

pub fn in_stroke(&self, x: f64, y: f64) -> bool[src]

pub fn copy_page(&self)[src]

pub fn show_page(&self)[src]

pub fn get_reference_count(&self) -> u32[src]

pub fn translate(&self, tx: f64, ty: f64)[src]

pub fn scale(&self, sx: f64, sy: f64)[src]

pub fn rotate(&self, angle: f64)[src]

pub fn transform(&self, matrix: Matrix)[src]

pub fn set_matrix(&self, matrix: Matrix)[src]

pub fn get_matrix(&self) -> Matrix[src]

pub fn identity_matrix(&self)[src]

pub fn user_to_device(&self, x: f64, y: f64) -> (f64, f64)[src]

pub fn user_to_device_distance(&self, dx: f64, dy: f64) -> (f64, f64)[src]

pub fn device_to_user(&self, x: f64, y: f64) -> (f64, f64)[src]

pub fn device_to_user_distance(&self, dx: f64, dy: f64) -> (f64, f64)[src]

pub fn select_font_face(
    &self,
    family: &str,
    slant: FontSlant,
    weight: FontWeight
)
[src]

pub fn set_font_size(&self, size: f64)[src]

pub fn set_font_matrix(&self, matrix: Matrix)[src]

pub fn get_font_matrix(&self) -> Matrix[src]

pub fn set_font_options(&self, options: &FontOptions)[src]

pub fn get_font_options(&self) -> FontOptions[src]

pub fn set_font_face(&self, font_face: &FontFace)[src]

pub fn get_font_face(&self) -> FontFace[src]

pub fn set_scaled_font(&self, scaled_font: &ScaledFont)[src]

pub fn get_scaled_font(&self) -> ScaledFont[src]

pub fn show_text(&self, text: &str)[src]

pub fn show_glyphs(&self, glyphs: &[Glyph])[src]

pub fn show_text_glyphs(
    &self,
    text: &str,
    glyphs: &[Glyph],
    clusters: &[TextCluster],
    cluster_flags: TextClusterFlags
)
[src]

pub fn font_extents(&self) -> FontExtents[src]

pub fn text_extents(&self, text: &str) -> TextExtents[src]

pub fn glyph_extents(&self, glyphs: &[Glyph]) -> TextExtents[src]

pub fn copy_path(&self) -> Path[src]

pub fn copy_path_flat(&self) -> Path[src]

pub fn append_path(&self, path: &Path)[src]

pub fn has_current_point(&self) -> bool[src]

pub fn get_current_point(&self) -> (f64, f64)[src]

pub fn new_path(&self)[src]

pub fn new_sub_path(&self)[src]

pub fn close_path(&self)[src]

pub fn arc(&self, xc: f64, yc: f64, radius: f64, angle1: f64, angle2: f64)[src]

pub fn arc_negative(
    &self,
    xc: f64,
    yc: f64,
    radius: f64,
    angle1: f64,
    angle2: f64
)
[src]

pub fn curve_to(&self, x1: f64, y1: f64, x2: f64, y2: f64, x3: f64, y3: f64)[src]

pub fn line_to(&self, x: f64, y: f64)[src]

pub fn move_to(&self, x: f64, y: f64)[src]

pub fn rectangle(&self, x: f64, y: f64, width: f64, height: f64)[src]

pub fn text_path(&self, str_: &str)[src]

pub fn glyph_path(&self, glyphs: &[Glyph])[src]

pub fn rel_curve_to(
    &self,
    dx1: f64,
    dy1: f64,
    dx2: f64,
    dy2: f64,
    dx3: f64,
    dy3: f64
)
[src]

pub fn rel_line_to(&self, dx: f64, dy: f64)[src]

pub fn rel_move_to(&self, dx: f64, dy: f64)[src]

pub fn path_extents(&self) -> (f64, f64, f64, f64)[src]

pub fn tag_begin(&self, tag_name: &str, attributes: &str)[src]

pub fn tag_end(&self, tag_name: &str)[src]

Trait Implementations

impl Clone for Context[src]

impl Debug for Context[src]

impl Display for Context[src]

impl Drop for Context[src]

impl FromGlibPtrBorrow<*mut cairo_t> for Context[src]

impl FromGlibPtrFull<*mut cairo_t> for Context[src]

impl FromGlibPtrNone<*mut cairo_t> for Context[src]

impl<'a> FromValueOptional<'a> for Context[src]

impl SetValue for Context[src]

impl SetValueOptional for Context[src]

impl StaticType for Context[src]

impl<'a> ToGlibPtr<'a, *mut cairo_t> for &'a Context[src]

type Storage = &'a Context

Auto Trait Implementations

impl RefUnwindSafe for Context

impl !Send for Context

impl !Sync for Context

impl Unpin for Context

impl UnwindSafe for Context

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.