Struct core_graphics::context::CGContext
[−]
pub struct CGContext(_);
Methods
impl CGContext
[src]
fn type_id() -> CFTypeID
[src]
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]
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
fn data(&mut self) -> &mut [u8]
[src]
fn width(&self) -> size_t
[src]
fn height(&self) -> size_t
[src]
fn bytes_per_row(&self) -> size_t
[src]
fn set_rgb_fill_color(
&self,
red: CGFloat,
green: CGFloat,
blue: CGFloat,
alpha: CGFloat
)
[src]
&self,
red: CGFloat,
green: CGFloat,
blue: CGFloat,
alpha: CGFloat
)
fn set_allows_font_smoothing(&self, allows_font_smoothing: bool)
[src]
fn set_font_smoothing_style(&self, style: i32)
[src]
fn set_should_smooth_fonts(&self, should_smooth_fonts: bool)
[src]
fn set_allows_antialiasing(&self, allows_antialiasing: bool)
[src]
fn set_should_antialias(&self, should_antialias: bool)
[src]
fn set_allows_font_subpixel_quantization(
&self,
allows_font_subpixel_quantization: bool
)
[src]
&self,
allows_font_subpixel_quantization: bool
)
fn set_should_subpixel_quantize_fonts(
&self,
should_subpixel_quantize_fonts: bool
)
[src]
&self,
should_subpixel_quantize_fonts: bool
)
fn set_allows_font_subpixel_positioning(
&self,
allows_font_subpixel_positioning: bool
)
[src]
&self,
allows_font_subpixel_positioning: bool
)
fn set_should_subpixel_position_fonts(
&self,
should_subpixel_position_fonts: bool
)
[src]
&self,
should_subpixel_position_fonts: bool
)
fn set_text_drawing_mode(&self, mode: CGTextDrawingMode)
[src]
fn fill_rect(&self, rect: CGRect)
[src]
fn draw_image(&self, rect: CGRect, image: &CGImage)
[src]
fn create_image(&self) -> Option<CGImage>
[src]
fn set_font(&self, font: &CGFont)
[src]
fn set_font_size(&self, size: CGFloat)
[src]
fn set_text_matrix(&self, t: &CGAffineTransform)
[src]
fn show_glyphs_at_positions(&self, glyphs: &[CGGlyph], positions: &[CGPoint])
[src]
Trait Implementations
impl Drop for CGContext
impl Clone for CGContext
fn clone(&self) -> CGContext
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deref for CGContext
type Target = CGContextRef
The resulting type after dereferencing.
fn deref(&self) -> &CGContextRef
Dereferences the value.
impl DerefMut for CGContext
fn deref_mut(&mut self) -> &mut CGContextRef
Mutably dereferences the value.
impl Borrow<CGContextRef> for CGContext
fn borrow(&self) -> &CGContextRef
Immutably borrows from an owned value. Read more
impl AsRef<CGContextRef> for CGContext
fn as_ref(&self) -> &CGContextRef
Performs the conversion.