pub trait ScreenService {
// Required methods
fn screen_size(&self) -> SizeF;
fn scale_factor(&self) -> f32;
fn appearance(&self) -> Appearance;
}Expand description
Tela (como IFMXScreenService).
Required Methods§
fn screen_size(&self) -> SizeF
fn scale_factor(&self) -> f32
Sourcefn appearance(&self) -> Appearance
fn appearance(&self) -> Appearance
Tema claro/escuro do sistema operacional.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".