aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/ui/ui.ttl
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-11-03 21:56:32 +0100
committerDavid Robillard <d@drobilla.net>2020-03-17 12:07:11 +0100
commitef7231b465b5b3bf24b6d4d437af460ef5910099 (patch)
tree7525357275a7ee1b9445126e8019e6270418ffa8 /lv2/ui/ui.ttl
parent91ca5a8fe86294ac2d536c510f777ccfe04ce4b7 (diff)
downloadlv2-ef7231b465b5b3bf24b6d4d437af460ef5910099.tar.xz
Add UI scale factor and color properties
Diffstat (limited to 'lv2/ui/ui.ttl')
-rw-r--r--lv2/ui/ui.ttl47
1 files changed, 47 insertions, 0 deletions
diff --git a/lv2/ui/ui.ttl b/lv2/ui/ui.ttl
index 8641471..fcd2f67 100644
--- a/lv2/ui/ui.ttl
+++ b/lv2/ui/ui.ttl
@@ -1,4 +1,5 @@
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
+@prefix opts: <http://lv2plug.in/ns/ext/options#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@@ -179,6 +180,52 @@ The data pointer for the LV2_Feature for this feature should always be set
to NULL.</p>
""" .
+ui:scaleFactor
+ a rdf:Property ,
+ owl:DatatypeProperty ,
+ opts:Option ;
+ rdfs:range xsd:float ;
+ rdfs:label "UI scale factor" ;
+ lv2:documentation """
+<p>HiDPI (High Dots Per Inch) displays have a high resolution on a relatively
+small form factor. Many systems use a scale factor to compensate for this, so
+for example, a scale factor of 2 means things are drawn twice as large as
+normal.</p>
+
+<p>Hosts can pass this as an option to UIs to communicate this information, so
+that the UI can draw at an appropriate scale.</p>
+""" .
+
+ui:backgroundColor
+ a rdf:Property ,
+ owl:DatatypeProperty ,
+ opts:Option ;
+ rdfs:label "Background color" ;
+ lv2:documentation """
+<p>The background color of the host's UI. The host can pass this as an option
+so that UIs can integrate nicely with the host window around it.</p>
+
+<p>Hosts should pass this as an option to UIs with an integer RGBA32 color
+value. If the value is a 32-bit integer, it is guaranteed to be in RGBA32
+format, but the UI must check the value type and not assume this, to allow for
+other types of color in the future.</p>
+""" .
+
+ui:foregroundColor
+ a rdf:Property ,
+ owl:DatatypeProperty ,
+ opts:Option ;
+ rdfs:label "Foreground color" ;
+ lv2:documentation """
+<p>The foreground color of the host's UI. The host can pass this as an option
+so that UIs can integrate nicely with the host window around it.</p>
+
+<p>Hosts should pass this as an option to UIs with an integer RGBA32 color
+value. If the value is a 32-bit integer, it is guaranteed to be in RGBA32
+format, but the UI must check the value type and not assume this, to allow for
+other types of color in the future.</p>
+""" .
+
ui:parent
a lv2:Feature ;
lv2:documentation """