From 861f0420ea20d4b7d7bea4d794f88226dce51614 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 8 May 2014 12:18:48 +0000 Subject: Add windowTitle property. --- lv2/lv2plug.in/ns/extensions/ui/ui.h | 8 ++++++-- lv2/lv2plug.in/ns/extensions/ui/ui.ttl | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'lv2/lv2plug.in/ns/extensions') diff --git a/lv2/lv2plug.in/ns/extensions/ui/ui.h b/lv2/lv2plug.in/ns/extensions/ui/ui.h index 9eaa75c..4ce0227 100644 --- a/lv2/lv2plug.in/ns/extensions/ui/ui.h +++ b/lv2/lv2plug.in/ns/extensions/ui/ui.h @@ -17,7 +17,7 @@ */ /** - @file ui.h User Interface API + @file ui.h User Interface API. For high-level documentation, see . */ @@ -55,7 +55,7 @@ #define LV2_UI__showInterface LV2_UI_PREFIX "showInterface" #define LV2_UI__touch LV2_UI_PREFIX "touch" #define LV2_UI__ui LV2_UI_PREFIX "ui" -#define LV2_UI__updateRate LV2_UI_PREFIX "updateRate" +#define LV2_UI__windowTitle LV2_UI_PREFIX "windowTitle" /** The index returned by LV2_UI_Port_Port::port_index() for unknown ports. @@ -369,6 +369,10 @@ typedef struct _LV2UI_Show_Interface { /** Show a window for this UI. + The window title MAY have been passed by the host to + LV2UI_Descriptor::instantiate() as an LV2_Options_Option with key + LV2_UI__windowTitle. + @return 0 on success, or anything else to stop being called. */ int (*show)(LV2UI_Handle ui); diff --git a/lv2/lv2plug.in/ns/extensions/ui/ui.ttl b/lv2/lv2plug.in/ns/extensions/ui/ui.ttl index 9fb19c9..512a967 100644 --- a/lv2/lv2plug.in/ns/extensions/ui/ui.ttl +++ b/lv2/lv2plug.in/ns/extensions/ui/ui.ttl @@ -346,6 +346,11 @@ URI (LV2_UI__showInterface), it should return a pointer to an LV2UI_Show_Interface.

""" . +ui:windowTitle + a rdf:Property ; + rdfs:range xsd:string ; + rdfs:comment "The title for the window shown by LV2UI_Show_Interface." . + ui:updateRate a rdf:Property ; rdfs:range xsd:float ; -- cgit v1.2.1