slint-ui-templates 0.1.0

Composable Slint UI building blocks — mother-child pattern, token-driven
Documentation
{
  "source": "layout/solver.rs",
  "items": [
    {
      "name": "SolvedItem",
      "kind": "struct",
      "signature": "pub struct SolvedItem",
      "line": 14,
      "doc": "A positioned layout element with normalized coordinates ready for rendering.\nS ol ve di te m struct."
    },
    {
      "name": "ItemKind",
      "kind": "enum",
      "signature": "pub enum ItemKind { Panel, HandleH, HandleV }  impl ItemKind",
      "line": 34,
      "doc": "Discriminates between content panels and drag handles in a solved layout.\nI te mk in d enum."
    },
    {
      "name": "as_str",
      "kind": "fn",
      "signature": "pub fn as_str(&self) -> &'static str",
      "line": 38,
      "doc": "Return a stable string identifier for this item kind."
    },
    {
      "name": "Solver",
      "kind": "struct",
      "signature": "pub struct Solver",
      "line": 48,
      "doc": "Walks a `PanelNode` tree and emits flat `SolvedItem` rectangles with normalized coordinates."
    },
    {
      "name": "new",
      "kind": "fn",
      "signature": "pub fn new(win_w: f32, win_h: f32) -> Self",
      "line": 58,
      "doc": "Create a solver targeting the given window pixel dimensions."
    },
    {
      "name": "solve",
      "kind": "fn",
      "signature": "pub fn solve(mut self, root: &PanelNode) -> Vec<SolvedItem>",
      "line": 63,
      "doc": "Consume the solver, recursively visit the tree, and return all solved items."
    }
  ]
}