{
"source": "shell/platform.rs",
"items": [
{
"name": "Platform",
"kind": "enum",
"signature": "pub enum Platform",
"line": 4,
"doc": "Target platform for AppShell rendering and token routing.\nP la tf or m enum."
},
{
"name": "as_str",
"kind": "fn",
"signature": "pub fn as_str(&self) -> &'static str",
"line": 18,
"doc": "Returns the platform identifier string that matches `Variants.*` in Slint."
},
{
"name": "is_mobile",
"kind": "fn",
"signature": "pub fn is_mobile(&self) -> bool",
"line": 29,
"doc": "Returns `true` if the platform is a mobile target (portrait touch-first)."
},
{
"name": "is_small",
"kind": "fn",
"signature": "pub fn is_small(&self) -> bool",
"line": 35,
"doc": "Returns `true` if the platform is the small tier (1280×800 touchscreen + gamepad).\nSmall tier: gamepad-safe 56px touch targets, bottom/rail nav, max 5 nav items."
},
{
"name": "is_desktop",
"kind": "fn",
"signature": "pub fn is_desktop(&self) -> bool",
"line": 41,
"doc": "Returns `true` if the platform is a desktop target (mouse+keyboard or gamepad fullscreen).\nDesktop tier includes SteamLinux — fullscreen but with desktop nav limits."
}
]
}