Struct core_graphics::context::CGContextRef [−]
pub struct CGContextRef(_);
Methods
impl CGContextRef[src]
impl CGContextRefpub fn flush(&self)[src]
pub fn flush(&self)pub fn width(&self) -> size_t[src]
pub fn width(&self) -> size_tpub fn height(&self) -> size_t[src]
pub fn height(&self) -> size_tpub fn bytes_per_row(&self) -> size_t[src]
pub fn bytes_per_row(&self) -> size_tpub fn set_fill_color(&self, color: &CGColor)[src]
pub fn set_fill_color(&self, color: &CGColor)pub fn set_rgb_fill_color(
&self,
red: CGFloat,
green: CGFloat,
blue: CGFloat,
alpha: CGFloat
)[src]
pub fn set_rgb_fill_color(
&self,
red: CGFloat,
green: CGFloat,
blue: CGFloat,
alpha: CGFloat
)pub fn set_gray_fill_color(&self, gray: CGFloat, alpha: CGFloat)[src]
pub fn set_gray_fill_color(&self, gray: CGFloat, alpha: CGFloat)pub fn set_blend_mode(&self, blend_mode: CGBlendMode)[src]
pub fn set_blend_mode(&self, blend_mode: CGBlendMode)pub fn set_allows_font_smoothing(&self, allows_font_smoothing: bool)[src]
pub fn set_allows_font_smoothing(&self, allows_font_smoothing: bool)pub fn set_font_smoothing_style(&self, style: i32)[src]
pub fn set_font_smoothing_style(&self, style: i32)pub fn set_should_smooth_fonts(&self, should_smooth_fonts: bool)[src]
pub fn set_should_smooth_fonts(&self, should_smooth_fonts: bool)pub fn set_allows_antialiasing(&self, allows_antialiasing: bool)[src]
pub fn set_allows_antialiasing(&self, allows_antialiasing: bool)pub fn set_should_antialias(&self, should_antialias: bool)[src]
pub fn set_should_antialias(&self, should_antialias: bool)pub fn set_allows_font_subpixel_quantization(
&self,
allows_font_subpixel_quantization: bool
)[src]
pub fn set_allows_font_subpixel_quantization(
&self,
allows_font_subpixel_quantization: bool
)pub fn set_should_subpixel_quantize_fonts(
&self,
should_subpixel_quantize_fonts: bool
)[src]
pub fn set_should_subpixel_quantize_fonts(
&self,
should_subpixel_quantize_fonts: bool
)pub fn set_allows_font_subpixel_positioning(
&self,
allows_font_subpixel_positioning: bool
)[src]
pub fn set_allows_font_subpixel_positioning(
&self,
allows_font_subpixel_positioning: bool
)pub fn set_should_subpixel_position_fonts(
&self,
should_subpixel_position_fonts: bool
)[src]
pub fn set_should_subpixel_position_fonts(
&self,
should_subpixel_position_fonts: bool
)pub fn set_text_drawing_mode(&self, mode: CGTextDrawingMode)[src]
pub fn set_text_drawing_mode(&self, mode: CGTextDrawingMode)pub fn add_path(&self, path: &CGPathRef)[src]
pub fn add_path(&self, path: &CGPathRef)pub fn close_path(&self)[src]
pub fn close_path(&self)pub fn fill_path(&self)[src]
pub fn fill_path(&self)pub fn fill_rect(&self, rect: CGRect)[src]
pub fn fill_rect(&self, rect: CGRect)pub fn draw_image(&self, rect: CGRect, image: &CGImage)[src]
pub fn draw_image(&self, rect: CGRect, image: &CGImage)pub fn create_image(&self) -> Option<CGImage>[src]
pub fn create_image(&self) -> Option<CGImage>pub fn set_font(&self, font: &CGFont)[src]
pub fn set_font(&self, font: &CGFont)pub fn set_font_size(&self, size: CGFloat)[src]
pub fn set_font_size(&self, size: CGFloat)pub fn set_text_matrix(&self, t: &CGAffineTransform)[src]
pub fn set_text_matrix(&self, t: &CGAffineTransform)pub fn show_glyphs_at_positions(
&self,
glyphs: &[CGGlyph],
positions: &[CGPoint]
)[src]
pub fn show_glyphs_at_positions(
&self,
glyphs: &[CGGlyph],
positions: &[CGPoint]
)pub fn save(&self)[src]
pub fn save(&self)pub fn restore(&self)[src]
pub fn restore(&self)pub fn translate(&self, tx: CGFloat, ty: CGFloat)[src]
pub fn translate(&self, tx: CGFloat, ty: CGFloat)pub fn scale(&self, sx: CGFloat, sy: CGFloat)[src]
pub fn scale(&self, sx: CGFloat, sy: CGFloat)Trait Implementations
impl ToOwned for CGContextRef
impl ToOwned for CGContextReftype Owned = CGContext
fn to_owned(&self) -> CGContext
fn to_owned(&self) -> CGContextCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)[src]
fn clone_into(&self, target: &mut Self::Owned)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Borrow<CGContextRef> for CGContext
impl Borrow<CGContextRef> for CGContextfn borrow(&self) -> &CGContextRef
fn borrow(&self) -> &CGContextRefImmutably borrows from an owned value. Read more
impl AsRef<CGContextRef> for CGContext
impl AsRef<CGContextRef> for CGContextfn as_ref(&self) -> &CGContextRef
fn as_ref(&self) -> &CGContextRefPerforms the conversion.
Auto Trait Implementations
impl Send for CGContextRef
impl Send for CGContextRefimpl !Sync for CGContextRef
impl !Sync for CGContextRef