pub struct RenderTargetBitmapImpl { /* private fields */ }Expand description
A render target bitmap: a writeable bitmap that is drawn into through a framebuffer render target over its own pixels.
Implementations§
Trait Implementations§
Source§impl IBitmapImpl for RenderTargetBitmapImpl
impl IBitmapImpl for RenderTargetBitmapImpl
Source§fn pixel_size(&self) -> PixelSize
fn pixel_size(&self) -> PixelSize
The size of the bitmap, in device pixels.
Source§fn save(
&self,
stream: &mut dyn Write,
options: &BitmapEncoderOptions,
) -> Result<()>
fn save( &self, stream: &mut dyn Write, options: &BitmapEncoderOptions, ) -> Result<()>
Saves the bitmap to a stream, encoded as selected by
options.Source§fn as_readable_bitmap(&self) -> Option<&dyn IReadableBitmapImpl>
fn as_readable_bitmap(&self) -> Option<&dyn IReadableBitmapImpl>
The bitmap viewed as
IReadableBitmapImpl, when its pixels can be
read.Source§impl IFramebufferPlatformSurface for RenderTargetBitmapImpl
impl IFramebufferPlatformSurface for RenderTargetBitmapImpl
Source§fn create_framebuffer_render_target(&self) -> Rc<dyn IFramebufferRenderTarget>
fn create_framebuffer_render_target(&self) -> Rc<dyn IFramebufferRenderTarget>
Creates the framebuffer render target of the surface.
Source§impl IPlatformRenderSurface for RenderTargetBitmapImpl
impl IPlatformRenderSurface for RenderTargetBitmapImpl
Source§fn as_framebuffer_surface(&self) -> Option<&dyn IFramebufferPlatformSurface>
fn as_framebuffer_surface(&self) -> Option<&dyn IFramebufferPlatformSurface>
The surface as a framebuffer surface, if it is one.
Source§fn try_get_surface_kind(&self, _kind: TypeId) -> Option<Rc<dyn Any>>
fn try_get_surface_kind(&self, _kind: TypeId) -> Option<Rc<dyn Any>>
The surface viewed as a surface kind defined outside this crate: for
TypeId::of::<dyn IFoo>() the result holds an Rc<dyn IFoo>.Source§fn text_rendering_parameters(&self) -> Option<PlatformTextRenderingParameters>
fn text_rendering_parameters(&self) -> Option<PlatformTextRenderingParameters>
The text rendering settings of the platform for this surface, when
the platform knows them: the render backend asks for them every
frame (they follow the settings of the system and the display the
surface is on). A backend asks every surface of a top-level and
takes the first answer;
None from all of them gives the defaults
of the backend (docs/porting/text-rendering.md).Source§impl IReadableBitmapImpl for RenderTargetBitmapImpl
impl IReadableBitmapImpl for RenderTargetBitmapImpl
Source§fn format(&self) -> Option<PixelFormat>
fn format(&self) -> Option<PixelFormat>
The pixel format, if known.
Source§fn alpha_format(&self) -> Option<AlphaFormat>
fn alpha_format(&self) -> Option<AlphaFormat>
The alpha format, if known.
Source§fn lock(&self) -> Rc<dyn ILockedFramebuffer>
fn lock(&self) -> Rc<dyn ILockedFramebuffer>
Locks the pixels for reading (and writing, for writeable bitmaps).
Source§impl IRenderTargetBitmapImpl for RenderTargetBitmapImpl
impl IRenderTargetBitmapImpl for RenderTargetBitmapImpl
Source§fn create_drawing_context(&self) -> Box<dyn IDrawingContextImpl>
fn create_drawing_context(&self) -> Box<dyn IDrawingContextImpl>
Creates a drawing context that draws into the bitmap.
impl IWriteableBitmapImpl for RenderTargetBitmapImpl
Auto Trait Implementations§
impl !Freeze for RenderTargetBitmapImpl
impl !RefUnwindSafe for RenderTargetBitmapImpl
impl !UnwindSafe for RenderTargetBitmapImpl
impl Send for RenderTargetBitmapImpl
impl Sync for RenderTargetBitmapImpl
impl Unpin for RenderTargetBitmapImpl
impl UnsafeUnpin for RenderTargetBitmapImpl
Blanket Implementations§
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more