tools: updated gtk4builder.rng to current state
authorGünther Wagner <info@gunibert.de>
Tue, 8 Feb 2022 20:42:41 +0000 (21:42 +0100)
committerGünther Wagner <info@gunibert.de>
Tue, 8 Feb 2022 20:42:41 +0000 (21:42 +0100)
tools/gtk4builder.rng

index 125051511c385cdb680b5867d075df482b236d16..8e1973fc0aa59ef15e6d5d8a6101c4baf6408730 100644 (file)
@@ -52,6 +52,7 @@
           <ref name="property"/>
           <ref name="signal"/>
           <ref name="child"/>
+          <ref name="constraints"/>
           <ref name="ANY"/>
         </choice>
       </zeroOrMore>
           </optional>
         </group>
       </optional>
-      <optional>
+      <choice>
         <text/>
-      </optional>
+        <ref name="object"/>
+        <ref name="constant"/>
+        <ref name="lookup"/>
+        <ref name="closure"/>
+      </choice>
     </element>
   </define>
   <define name="signal">
           <name>link</name>
           <name>submenu</name>
           <name>section</name>
+          <name>lookup</name>
+          <name>closure</name>
+          <name>constant</name>
+          <name>constraint</name>
+          <name>guide</name>
         </except>
       </anyName>
       <zeroOrMore>
       </interleave>
     </element>
   </define>
+  <define name="constant">
+    <element name="constant">
+      <attribute name="type">
+        <text/>
+      </attribute>
+      <optional>
+        <text/>
+      </optional>
+    </element>
+  </define>
+  <define name="lookup">
+    <element name="lookup">
+      <optional>
+        <attribute name="name">
+          <text/>
+        </attribute>
+      </optional>
+      <optional>
+        <attribute name="type">
+          <text/>
+        </attribute>
+      </optional>
+      <choice>
+        <text/>
+        <ref name="constant"/>
+      </choice>
+    </element>
+  </define>
+  <define name="closure">
+    <element name="closure">
+      <attribute name="type">
+        <text/>
+      </attribute>
+      <attribute name="function">
+        <text/>
+      </attribute>
+      <zeroOrMore>
+        <choice>
+          <ref name="constant"/>
+          <ref name="lookup"/>
+        </choice>
+      </zeroOrMore>
+    </element>
+  </define>
+  <define name="guide">
+    <element name="guide">
+      <optional>
+        <attribute name="name">
+          <text/>
+        </attribute>
+      </optional>
+      <optional>
+        <attribute name="min-width">
+          <text/>
+        </attribute>
+      </optional>
+      <optional>
+        <attribute name="min-height">
+          <text/>
+        </attribute>
+      </optional>
+      <optional>
+        <attribute name="nat-width">
+          <text/>
+        </attribute>
+      </optional>
+      <optional>
+        <attribute name="nat-height">
+          <text/>
+        </attribute>
+      </optional>
+      <optional>
+        <attribute name="max-width">
+          <text/>
+        </attribute>
+      </optional>
+      <optional>
+        <attribute name="max-height">
+          <text/>
+        </attribute>
+      </optional>
+      <optional>
+        <attribute name="strength">
+          <text/>
+        </attribute>
+      </optional>
+    </element>
+  </define>
+  <define name="constraint">
+    <element name="constraint">
+      <attribute name="target">
+        <text/>
+      </attribute>
+      <attribute name="target-attribute">
+        <text/>
+      </attribute>
+      <optional>
+        <group>
+          <attribute name="source">
+            <text/>
+          </attribute>
+          <attribute name="source-attribute">
+            <text/>
+          </attribute>
+        </group>
+      </optional>
+      <optional>
+        <attribute name="relation">
+          <text/>
+        </attribute>
+      </optional>
+      <optional>
+        <attribute name="constant">
+          <text/>
+        </attribute>
+      </optional>
+      <optional>
+        <attribute name="multiplier">
+          <text/>
+        </attribute>
+      </optional>
+      <optional>
+        <attribute name="strength">
+          <text/>
+        </attribute>
+      </optional>
+    </element>
+  </define>
+  <define name="constraints">
+    <element name="constraints">
+      <zeroOrMore>
+        <choice>
+          <ref name="guide"/>
+          <ref name="constraint"/>
+        </choice>
+      </zeroOrMore>
+    </element>
+  </define>
 </grammar>