pub struct ElementRuntime { /* private fields */ }Implementations§
Source§impl ElementRuntime
impl ElementRuntime
pub fn new() -> Self
pub fn gc_lag_frames(&self) -> u64
pub fn set_gc_lag_frames(&mut self, frames: u64)
pub fn set_window_prefers_reduced_motion( &mut self, window: AppWindowId, prefers_reduced_motion: Option<bool>, )
pub fn set_window_color_scheme( &mut self, window: AppWindowId, scheme: Option<ColorScheme>, )
pub fn set_window_contrast_preference( &mut self, window: AppWindowId, value: Option<ContrastPreference>, )
pub fn set_window_forced_colors_mode( &mut self, window: AppWindowId, value: Option<ForcedColorsMode>, )
pub fn set_window_primary_pointer_type( &mut self, window: AppWindowId, pointer_type: PointerType, )
pub fn set_window_safe_area_insets( &mut self, window: AppWindowId, insets: Option<Edges>, )
pub fn set_window_occlusion_insets( &mut self, window: AppWindowId, insets: Option<Edges>, )
pub fn for_window_mut(&mut self, window: AppWindowId) -> &mut WindowElementState
pub fn prepare_window_for_frame( &mut self, window: AppWindowId, frame_id: FrameId, )
Trait Implementations§
Source§impl Default for ElementRuntime
impl Default for ElementRuntime
Source§fn default() -> ElementRuntime
fn default() -> ElementRuntime
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ElementRuntime
impl !RefUnwindSafe for ElementRuntime
impl !Send for ElementRuntime
impl !Sync for ElementRuntime
impl Unpin for ElementRuntime
impl UnsafeUnpin for ElementRuntime
impl !UnwindSafe for ElementRuntime
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