Struct cairo::surface::Surface
[−]
[src]
pub struct Surface { pub opaque: *mut c_void, }
Fields
opaque: *mut c_void
Methods
impl Surface
[src]
fn create_similar_image(format: Format, width: c_int, height: c_int) -> Surface
fn create_for_rectangle(x: f64, y: f64, width: f64, height: f64) -> Surface
fn status(&mut self) -> Status
fn finish(&mut self)
fn flush(&mut self)
fn get_device(&mut self) -> Device
fn get_font_options(&mut self, options: &mut Options)
fn get_content(&mut self) -> Content
fn mark_dirty(&mut self)
fn mark_dirty_rectangle(&mut self, x: f64, y: f64, width: f64, height: f64)
fn set_device_offset(&mut self, x_offset: f64, y_offset: f64)
fn get_device_offset(&mut self) -> (f64, f64)
fn set_fallback_resolution(&mut self, x_pixels_per_inch: f64, y_pixels_per_inch: f64)
fn get_fallback_resolution(&mut self) -> (f64, f64)
fn get_type(&mut self) -> SurfaceType
fn get_reference_count(&mut self) -> c_uint
fn copy_page(&mut self)
fn show_page(&mut self)
fn create_image(format: Format, width: c_int, height: c_int) -> Surface
fn get_format(&mut self) -> Format
fn get_width(&mut self) -> c_int
fn get_height(&mut self) -> c_int
fn get_stride(&mut self) -> c_int
fn create_from_png(filename: &str) -> Surface
fn write_to_png(&mut self, filename: &str) -> Status
fn create_svg(&mut self, filename: &str, width: f64, height: f64)
fn restrict_to_svg_version(&mut self, version: SVGVersion)
fn svg_version_to_string(version: SVGVersion) -> String
Trait Implementations
impl Clone for Surface
[src]
fn clone(&self) -> Surface
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more