pub struct MiniAppWindowRecord { /* private fields */ }Expand description
Active Mini-Program canvas window record held by MiniAppPlatform.
Implementations§
Source§impl MiniAppWindowRecord
impl MiniAppWindowRecord
pub fn get_config(&self) -> &WindowConfig
pub fn get_mut_config(&mut self) -> &mut WindowConfig
pub fn set_config(&mut self, val: WindowConfig) -> &mut Self
pub fn get_state(&self) -> WindowState
pub fn get_mut_state(&mut self) -> &mut WindowState
pub fn set_state(&mut self, val: WindowState) -> &mut Self
pub fn get_canvas_id(&self) -> u32
pub fn get_mut_canvas_id(&mut self) -> &mut u32
pub fn set_canvas_id(&mut self, val: u32) -> &mut Self
pub fn get_canvas_mode(&self) -> MiniAppCanvasMode
pub fn get_mut_canvas_mode(&mut self) -> &mut MiniAppCanvasMode
pub fn set_canvas_mode(&mut self, val: MiniAppCanvasMode) -> &mut Self
pub fn get_last_frame(&self) -> &Framebuffer
pub fn get_mut_last_frame(&mut self) -> &mut Framebuffer
pub fn set_last_frame(&mut self, val: Framebuffer) -> &mut Self
pub fn get_present_count(&self) -> u64
pub fn get_mut_present_count(&mut self) -> &mut u64
pub fn set_present_count(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for MiniAppWindowRecord
impl Clone for MiniAppWindowRecord
Auto Trait Implementations§
impl Forget for MiniAppWindowRecord
impl Freeze for MiniAppWindowRecord
impl Move for MiniAppWindowRecord
impl RefUnwindSafe for MiniAppWindowRecord
impl Send for MiniAppWindowRecord
impl Sync for MiniAppWindowRecord
impl Unpin for MiniAppWindowRecord
impl UnsafeUnpin for MiniAppWindowRecordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
impl UnwindSafe for MiniAppWindowRecord
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