[−][src]Struct cairo::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]
&self,
family: &str,
slant: FontSlant,
weight: FontWeight
)
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]
&self,
text: &str,
glyphs: &[Glyph],
clusters: &[TextCluster],
cluster_flags: TextClusterFlags
)
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]
&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)
[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]
&self,
dx1: f64,
dy1: f64,
dx2: f64,
dy2: f64,
dx3: f64,
dy3: f64
)
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]
unsafe fn from_glib_borrow(ptr: *mut cairo_t) -> Context
[src]
impl FromGlibPtrFull<*mut cairo_t> for Context
[src]
unsafe fn from_glib_full(ptr: *mut cairo_t) -> Context
[src]
impl FromGlibPtrNone<*mut cairo_t> for Context
[src]
unsafe fn from_glib_none(ptr: *mut cairo_t) -> Context
[src]
impl<'a> FromValueOptional<'a> for Context
[src]
unsafe fn from_value_optional(v: &'a Value) -> Option<Self>
[src]
impl SetValue for Context
[src]
impl SetValueOptional for Context
[src]
unsafe fn set_value_optional(v: &mut Value, s: Option<&Self>)
[src]
impl StaticType for Context
[src]
fn static_type() -> Type
[src]
impl<'a> ToGlibPtr<'a, *mut cairo_t> for &'a Context
[src]
type Storage = &'a Context
fn to_glib_none(&self) -> Stash<'a, *mut cairo_t, &'a Context>
[src]
fn to_glib_full(&self) -> *mut cairo_t
[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src]
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,