MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / PlatformConfig

Class PlatformConfig

src/platform_config.rs:3–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1use crate::geometry::Size;
2
3pub struct PlatformConfig {
4 pub window_size: Size,
5 pub scale_factor: f32,
6 pub default_padding: f32,
7 pub font_size_multiplier: f32,
8}
9
10impl PlatformConfig {
11 pub fn for_platform(platform: &str) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected