Struct core_graphics::context::CGContext [−]
pub struct CGContext(_);
Methods
impl CGContext[src]
impl CGContextpub fn type_id() -> CFTypeID[src]
pub fn type_id() -> CFTypeIDpub fn create_bitmap_context(
data: Option<*mut c_void>,
width: size_t,
height: size_t,
bits_per_component: size_t,
bytes_per_row: size_t,
space: &CGColorSpace,
bitmap_info: u32
) -> CGContext[src]
pub fn create_bitmap_context(
data: Option<*mut c_void>,
width: size_t,
height: size_t,
bits_per_component: size_t,
bytes_per_row: size_t,
space: &CGColorSpace,
bitmap_info: u32
) -> CGContextpub fn data(&mut self) -> &mut [u8][src]
pub fn data(&mut self) -> &mut [u8]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_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_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 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]
)Trait Implementations
impl Drop for CGContext
impl Drop for CGContextimpl Clone for CGContext
impl Clone for CGContextfn clone(&self) -> CGContext
fn clone(&self) -> CGContextReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Deref for CGContext
impl Deref for CGContexttype Target = CGContextRef
The resulting type after dereferencing.
fn deref(&self) -> &CGContextRef
fn deref(&self) -> &CGContextRefDereferences the value.
impl DerefMut for CGContext
impl DerefMut for CGContextfn deref_mut(&mut self) -> &mut CGContextRef
fn deref_mut(&mut self) -> &mut CGContextRefMutably dereferences the value.
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.