pub struct TextureRegistration { /* private fields */ }Expand description
A frame source registered with register_texture_source; unregisters on
drop.
Implementations§
Source§impl TextureRegistration
impl TextureRegistration
Sourcepub fn scene_texture_id(&self) -> u64
pub fn scene_texture_id(&self) -> u64
The id a display list draws this source by —
PaintScene::draw_scene_texture’s / texture_view’s argument.
Sourcepub fn frame_size(&self) -> Option<(u32, u32)>
pub fn frame_size(&self) -> Option<(u32, u32)>
The extent of the frame currently shown, None before the first one.
Read by an app that sizes or fits its view to the content (a video’s aspect ratio); updated on the render thread as frames land.
Trait Implementations§
Source§impl Debug for TextureRegistration
impl Debug for TextureRegistration
Source§impl Drop for TextureRegistration
impl Drop for TextureRegistration
Auto Trait Implementations§
impl Freeze for TextureRegistration
impl RefUnwindSafe for TextureRegistration
impl Send for TextureRegistration
impl Sync for TextureRegistration
impl Unpin for TextureRegistration
impl UnsafeUnpin for TextureRegistration
impl UnwindSafe for TextureRegistration
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