pub struct DrawTarget {
pub buffer: Arc<Mutex<Vec<u32>>>,
pub width: u32,
pub height: u32,
pub updated: Arc<AtomicBool>,
}Expand description
アプリのスレッドが描いている共有バッファ(画面へ出すウィンドウのバッファ)。
動画の再生スレッドが、アプリの描画が詰まっている間もフレームを直接書くために使う
(web_engine::video の動画レイヤ)。
Fields§
§buffer: Arc<Mutex<Vec<u32>>>§width: u32§height: u32§updated: Arc<AtomicBool>Trait Implementations§
Source§impl Clone for DrawTarget
impl Clone for DrawTarget
Source§fn clone(&self) -> DrawTarget
fn clone(&self) -> DrawTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DrawTarget
impl !UnwindSafe for DrawTarget
impl Freeze for DrawTarget
impl Send for DrawTarget
impl Sync for DrawTarget
impl Unpin for DrawTarget
impl UnsafeUnpin for DrawTarget
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