Struct eframe::IntegrationInfo
source · pub struct IntegrationInfo {
pub system_theme: Option<Theme>,
pub cpu_usage: Option<f32>,
pub native_pixels_per_point: Option<f32>,
pub window_info: WindowInfo,
}
Expand description
Information about the integration passed to the use app each frame.
Fields§
§system_theme: Option<Theme>
Does the OS use dark or light mode?
None
means “don’t know”.
cpu_usage: Option<f32>
Seconds of cpu usage (in seconds) of UI code on the previous frame.
None
if this is the first frame.
native_pixels_per_point: Option<f32>
The OS native pixels-per-point
window_info: WindowInfo
The position and size of the native window.
Trait Implementations§
source§impl Clone for IntegrationInfo
impl Clone for IntegrationInfo
source§fn clone(&self) -> IntegrationInfo
fn clone(&self) -> IntegrationInfo
Returns a copy of the value. Read more
1.0.0 · 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 IntegrationInfo
impl Send for IntegrationInfo
impl Sync for IntegrationInfo
impl Unpin for IntegrationInfo
impl UnwindSafe for IntegrationInfo
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