Struct cairo::ImageSurface [−][src]
pub struct ImageSurface(_);
Methods
impl ImageSurface[src]
impl ImageSurfacepub fn from(surface: Surface) -> Result<ImageSurface, Surface>[src]
pub fn from(surface: Surface) -> Result<ImageSurface, Surface>pub unsafe fn from_raw_full(
ptr: *mut cairo_surface_t
) -> Result<ImageSurface, Status>[src]
pub unsafe fn from_raw_full(
ptr: *mut cairo_surface_t
) -> Result<ImageSurface, Status>pub fn create(
format: Format,
width: i32,
height: i32
) -> Result<ImageSurface, Status>[src]
pub fn create(
format: Format,
width: i32,
height: i32
) -> Result<ImageSurface, Status>pub fn create_for_data<D: AsMut<[u8]> + Send + 'static>(
data: D,
format: Format,
width: i32,
height: i32,
stride: i32
) -> Result<ImageSurface, Status>[src]
pub fn create_for_data<D: AsMut<[u8]> + Send + 'static>(
data: D,
format: Format,
width: i32,
height: i32,
stride: i32
) -> Result<ImageSurface, Status>pub fn get_data(&mut self) -> Result<ImageSurfaceData, BorrowError>[src]
pub fn get_data(&mut self) -> Result<ImageSurfaceData, BorrowError>pub fn get_format(&self) -> Format[src]
pub fn get_format(&self) -> Formatpub fn get_height(&self) -> i32[src]
pub fn get_height(&self) -> i32pub fn get_stride(&self) -> i32[src]
pub fn get_stride(&self) -> i32pub fn get_width(&self) -> i32[src]
pub fn get_width(&self) -> i32Methods from Deref<Target = Surface>
pub fn to_raw_none(&self) -> *mut cairo_surface_t[src]
pub fn to_raw_none(&self) -> *mut cairo_surface_tpub fn create_similar(
&self,
content: Content,
width: i32,
height: i32
) -> Surface[src]
pub fn create_similar(
&self,
content: Content,
width: i32,
height: i32
) -> SurfaceTrait Implementations
impl Debug for ImageSurface[src]
impl Debug for ImageSurfacefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a> ToGlibPtr<'a, *mut cairo_surface_t> for ImageSurface[src]
impl<'a> ToGlibPtr<'a, *mut cairo_surface_t> for ImageSurfacetype Storage = &'a Surface
fn to_glib_none(&'a self) -> Stash<'a, *mut cairo_surface_t, Self>[src]
fn to_glib_none(&'a self) -> Stash<'a, *mut cairo_surface_t, Self>Transfer: none. Read more
fn to_glib_full(&self) -> *mut cairo_surface_t[src]
fn to_glib_full(&self) -> *mut cairo_surface_tTransfer: full. Read more
fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]
fn to_glib_container(&'a self) -> Stash<'a, P, Self>Transfer: container. Read more
impl FromGlibPtrNone<*mut cairo_surface_t> for ImageSurface[src]
impl FromGlibPtrNone<*mut cairo_surface_t> for ImageSurfaceunsafe fn from_glib_none(ptr: *mut cairo_surface_t) -> ImageSurface[src]
unsafe fn from_glib_none(ptr: *mut cairo_surface_t) -> ImageSurfaceimpl FromGlibPtrBorrow<*mut cairo_surface_t> for ImageSurface[src]
impl FromGlibPtrBorrow<*mut cairo_surface_t> for ImageSurfaceunsafe fn from_glib_borrow(ptr: *mut cairo_surface_t) -> ImageSurface[src]
unsafe fn from_glib_borrow(ptr: *mut cairo_surface_t) -> ImageSurfaceimpl FromGlibPtrFull<*mut cairo_surface_t> for ImageSurface[src]
impl FromGlibPtrFull<*mut cairo_surface_t> for ImageSurfaceunsafe fn from_glib_full(ptr: *mut cairo_surface_t) -> ImageSurface[src]
unsafe fn from_glib_full(ptr: *mut cairo_surface_t) -> ImageSurfaceimpl StaticType for ImageSurface[src]
impl StaticType for ImageSurfacefn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.
impl<'a> FromValueOptional<'a> for ImageSurface[src]
impl<'a> FromValueOptional<'a> for ImageSurfaceunsafe fn from_value_optional(v: &'a Value) -> Option<Self>[src]
unsafe fn from_value_optional(v: &'a Value) -> Option<Self>impl SetValue for ImageSurface[src]
impl SetValue for ImageSurfaceimpl SetValueOptional for ImageSurface[src]
impl SetValueOptional for ImageSurfaceunsafe fn set_value_optional(v: &mut Value, s: Option<&Self>)[src]
unsafe fn set_value_optional(v: &mut Value, s: Option<&Self>)impl AsRef<Surface> for ImageSurface[src]
impl AsRef<Surface> for ImageSurfaceimpl Deref for ImageSurface[src]
impl Deref for ImageSurfacetype Target = Surface
The resulting type after dereferencing.
fn deref(&self) -> &Surface[src]
fn deref(&self) -> &SurfaceDereferences the value.
impl Clone for ImageSurface[src]
impl Clone for ImageSurfacefn clone(&self) -> ImageSurface[src]
fn clone(&self) -> ImageSurfaceReturns 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 Send for ImageSurface[src]
impl Send for ImageSurfaceAuto Trait Implementations
impl !Sync for ImageSurface
impl !Sync for ImageSurface