Struct cairo::ImageSurface [−][src]
pub struct ImageSurface(_);
Methods
impl ImageSurface
[src]
impl ImageSurface
pub 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) -> Format
pub fn get_height(&self) -> i32
[src]
pub fn get_height(&self) -> i32
pub fn get_stride(&self) -> i32
[src]
pub fn get_stride(&self) -> i32
pub fn get_width(&self) -> i32
[src]
pub fn get_width(&self) -> i32
Methods from Deref<Target = Surface>
pub fn to_raw_none(&self) -> *mut cairo_surface_t
[src]
pub fn to_raw_none(&self) -> *mut cairo_surface_t
pub fn create_similar(
&self,
content: Content,
width: i32,
height: i32
) -> Surface
[src]
pub fn create_similar(
&self,
content: Content,
width: i32,
height: i32
) -> Surface
Trait Implementations
impl Debug for ImageSurface
[src]
impl Debug for ImageSurface
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats 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 ImageSurface
type 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_t
Transfer: 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 ImageSurface
unsafe fn from_glib_none(ptr: *mut cairo_surface_t) -> ImageSurface
[src]
unsafe fn from_glib_none(ptr: *mut cairo_surface_t) -> ImageSurface
impl FromGlibPtrBorrow<*mut cairo_surface_t> for ImageSurface
[src]
impl FromGlibPtrBorrow<*mut cairo_surface_t> for ImageSurface
unsafe fn from_glib_borrow(ptr: *mut cairo_surface_t) -> ImageSurface
[src]
unsafe fn from_glib_borrow(ptr: *mut cairo_surface_t) -> ImageSurface
impl FromGlibPtrFull<*mut cairo_surface_t> for ImageSurface
[src]
impl FromGlibPtrFull<*mut cairo_surface_t> for ImageSurface
unsafe fn from_glib_full(ptr: *mut cairo_surface_t) -> ImageSurface
[src]
unsafe fn from_glib_full(ptr: *mut cairo_surface_t) -> ImageSurface
impl StaticType for ImageSurface
[src]
impl StaticType for ImageSurface
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.
impl<'a> FromValueOptional<'a> for ImageSurface
[src]
impl<'a> FromValueOptional<'a> for ImageSurface
unsafe 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 ImageSurface
impl SetValueOptional for ImageSurface
[src]
impl SetValueOptional for ImageSurface
unsafe 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 ImageSurface
impl Deref for ImageSurface
[src]
impl Deref for ImageSurface
type Target = Surface
The resulting type after dereferencing.
fn deref(&self) -> &Surface
[src]
fn deref(&self) -> &Surface
Dereferences the value.
impl Clone for ImageSurface
[src]
impl Clone for ImageSurface
fn clone(&self) -> ImageSurface
[src]
fn clone(&self) -> ImageSurface
Returns 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 ImageSurface
Auto Trait Implementations
impl !Sync for ImageSurface
impl !Sync for ImageSurface