From 2dccb1b5e714591f8e79ba43fb846ea689823a32 Mon Sep 17 00:00:00 2001
From: David Robillard
@prefix pui: <http://lv2plug.in/ns/ext/pui#> . -@prefix pui-gtk: <http://lv2plug.in/ns/ext/pui-gtk#> . -<http://example.org/my-ui> a pui-gtk:GtkUI ; +<http://example.org/my-ui> a pui:Gtk2UI ; lv2:appliesTo <http://example.org/my-plugin> ; pui:binary <my-ui.so> .@@ -67,7 +66,7 @@ it is probably a good idea to keep them separate so that hosts that don't want UIs don't have to load the UI code.
A UI MUST specify its class in the RDF data and the class MUST be a proper -subclass of pui:UI, in this case pui-gtk:GtkUI. The class defines what type the +subclass of pui:UI, in this case pui:Gtk2UI. The class defines what type the UI is, e.g. what graphics toolkit it uses. There are no UI classes defined in this extension, those are specified separately (and anyone can define their own).
@@ -113,7 +112,7 @@ pui:UI a rdfs:Class;The rdf:type of an UI is used by the host to decide whether it supports the UI and how to handle the LV2_PUI_Widget object that is returned by the UIs -get_widget() function. For example, a type of pui-gtk:GtkGUI might tell the +get_widget() function. For example, a type of pui:Gtk2GUI might tell the host that LV2_PUI_Widget is a pointer to an object of a type defined in the Gtk+ library. No UI types are defined in this extension, that is intentionally left for other extensions.
@@ -222,3 +221,63 @@ period. NULL. """. + +pui:events a pui:PortProtocol; + rdfs:label "Event buffer"; + lv2:documentation """ +The class which represents a Gtk+ UI. For a successfully created instance of +an UI of this class, the get_widget() function MUST return a pointer to a valid +GtkWidget object compatible with Gtk+ version 2.0. The host MUST ensure that +the Gtk+ library has been initialised and that the Glib main loop is running +before an UI of this type is instantiated.
+ +Unless otherwise specified by extensions, all function pointers in +LV2_PUI_Descriptor may only be called from the thread that runs the Glib main +loop.
+""" . + +pui:noHostResize a lv2:Feature; + rdfs:label "No host resize"; + lv2:documentation """ +This Feature should only be used with UIs.
+ +When this Feature is active the host SHOULD NOT resize the UI widget to any +other size than its natural size, which the host should be able to determine +via the API of whatever toolkit the UI is implemented in. However, the UI MUST +NOT break if the widget is resized to another size. This Feature can be used +for example when the widget uses a fixed-size pixmap interface.
+ +The data pointer in the LV2_Feature object for this Feature should be set to +NULL.
+""". -- cgit v1.2.1