pub struct Owned { /* private fields */ }Expand description
An owned Surface with raw pixel data.
Implementations§
Trait Implementations§
Source§impl Surface for Owned
impl Surface for Owned
Source§fn as_ptr(&self) -> NonNull<RawSurface>
fn as_ptr(&self) -> NonNull<RawSurface>
Returns the raw non-null pointer.
Source§fn blend(self, mode: BlendMode) -> Blended<Self>where
Self: Sized,
fn blend(self, mode: BlendMode) -> Blended<Self>where
Self: Sized,
Changes blend mode of the surface.
Source§fn alpha_mod(self, alpha: u8) -> AlphaMod<Self>where
Self: Sized,
fn alpha_mod(self, alpha: u8) -> AlphaMod<Self>where
Self: Sized,
Modifies the alpha of the surface.
Source§fn color_mod(self, color: Rgb) -> ColorMod<Self>where
Self: Sized,
fn color_mod(self, color: Rgb) -> ColorMod<Self>where
Self: Sized,
Modifies the color of the surface.
Source§fn fill_rect(&self, area: Option<Rect>, color: Pixel)
fn fill_rect(&self, area: Option<Rect>, color: Pixel)
Fills in the
area with the color, or whole if area is None.Source§fn fill_rects(&self, areas: impl IntoIterator<Item = Rect>, color: Pixel)
fn fill_rects(&self, areas: impl IntoIterator<Item = Rect>, color: Pixel)
Fills in the
areas with the color.Source§fn set_palette(&self, palette: &Palette)
fn set_palette(&self, palette: &Palette)
Overwrites the palette of the surface.
Auto Trait Implementations§
impl Freeze for Owned
impl RefUnwindSafe for Owned
impl !Send for Owned
impl !Sync for Owned
impl Unpin for Owned
impl UnwindSafe for Owned
Blanket Implementations§
Source§impl<T> BmpSaveExt for Twhere
T: Surface,
impl<T> BmpSaveExt for Twhere
T: Surface,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more