diff options
author | Günther Wagner <info@gunibert.de> | 2022-02-08 21:42:41 +0100 |
---|---|---|
committer | Günther Wagner <info@gunibert.de> | 2022-02-08 21:42:41 +0100 |
commit | 86a3400f2e2e61851e1bd16b16eff01ea8d72dda (patch) | |
tree | 18f72ee3530da2a044f80d39dc7dcbeacf36e874 /tools | |
parent | c6d5816c95c258a209435e49974d4c320425a22e (diff) | |
download | gtk+-86a3400f2e2e61851e1bd16b16eff01ea8d72dda.tar.gz |
tools: updated gtk4builder.rng to current state
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gtk4builder.rng | 152 |
1 files changed, 150 insertions, 2 deletions
diff --git a/tools/gtk4builder.rng b/tools/gtk4builder.rng index 125051511c..8e1973fc0a 100644 --- a/tools/gtk4builder.rng +++ b/tools/gtk4builder.rng @@ -52,6 +52,7 @@ <ref name="property"/> <ref name="signal"/> <ref name="child"/> + <ref name="constraints"/> <ref name="ANY"/> </choice> </zeroOrMore> @@ -115,9 +116,13 @@ </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"> @@ -303,6 +308,11 @@ <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> @@ -340,4 +350,142 @@ </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> |