slint-ui-templates 0.1.0

Composable Slint UI building blocks — mother-child pattern, token-driven
Documentation
{
  "source": "layout/parser.rs",
  "items": [
    {
      "name": "SplitDir",
      "kind": "enum",
      "signature": "pub enum SplitDir { H, V }  /// A recursive tree node representing either a leaf panel or a split container. #[derive(Debug, Clone)] /// P an el no de enum. pub enum PanelNode",
      "line": 16,
      "doc": "Direction of a layout split: horizontal (columns) or vertical (rows).\nS pl it di r enum."
    },
    {
      "name": "PanelNode",
      "kind": "enum",
      "signature": "pub enum PanelNode",
      "line": 21,
      "doc": "A recursive tree node representing either a leaf panel or a split container.\nP an el no de enum."
    },
    {
      "name": "ratio",
      "kind": "fn",
      "signature": "pub fn ratio(&self) -> f32",
      "line": 28,
      "doc": "Return the ratio weight of this node, whether leaf or split."
    },
    {
      "name": "parse",
      "kind": "fn",
      "signature": "pub fn parse(dsl: &str) -> PanelNode",
      "line": 38,
      "doc": "Parse a DSL string into a PanelNode tree.\nTop-level is always an HSplit if \":\" is present, VSplit if only \"/\" is present."
    }
  ]
}