slint-ui-templates 0.1.0

Composable Slint UI building blocks — mother-child pattern, token-driven
Documentation
{
  "source": "dsl/builder.rs",
  "items": [
    {
      "name": "AppDslBuilder",
      "kind": "struct",
      "signature": "pub struct AppDslBuilder",
      "line": 11,
      "doc": "Fluent builder for constructing a validated `AppDsl` configuration."
    },
    {
      "name": "new",
      "kind": "fn",
      "signature": "pub(crate) fn new(title: impl Into<String>) -> Self",
      "line": 58,
      "doc": "Create a new builder with the given window title."
    },
    {
      "name": "platform",
      "kind": "fn",
      "signature": "pub fn platform(mut self, p: Platform) -> Self",
      "line": 73,
      "doc": "Set the target platform (affects nav-item limits and layout rules)."
    },
    {
      "name": "nav",
      "kind": "fn",
      "signature": "pub fn nav(mut self, items: Vec<Nav>) -> Self",
      "line": 79,
      "doc": "Set the sidebar navigation items (validated at `build()` time)."
    },
    {
      "name": "status",
      "kind": "fn",
      "signature": "pub fn status(mut self, text: impl Into<String>) -> Self",
      "line": 85,
      "doc": "Set the initial status-bar text (defaults to \"Ready\")."
    },
    {
      "name": "toolbar",
      "kind": "fn",
      "signature": "pub fn toolbar(mut self, items: Vec<Toolbar>) -> Self",
      "line": 91,
      "doc": "Set the toolbar icon buttons (validated at `build()` time)."
    },
    {
      "name": "window_size",
      "kind": "fn",
      "signature": "pub fn window_size(mut self, width: u32, height: u32) -> Self",
      "line": 97,
      "doc": "Set the initial window dimensions in logical pixels."
    },
    {
      "name": "bg_style",
      "kind": "fn",
      "signature": "pub fn bg_style(mut self, style: super::BgStyle) -> Self",
      "line": 103,
      "doc": "Set OS-level window backdrop (Windows 11 only; no-op elsewhere)."
    },
    {
      "name": "views",
      "kind": "fn",
      "signature": "pub fn views(mut self, ids: Vec<&str>) -> Self",
      "line": 109,
      "doc": "Register ViewSlot ids — validated to match nav ids 1:1."
    },
    {
      "name": "build",
      "kind": "fn",
      "signature": "pub fn build(self) -> Result<AppDsl, Vec<DslError>>",
      "line": 115,
      "doc": "Validate all composition rules. Returns sealed `AppDsl` or list of errors."
    }
  ]
}