diff options
author | Lars Luthman <lars.luthman@gmail.com> | 2011-03-26 18:46:48 +0000 |
---|---|---|
committer | Lars Luthman <lars.luthman@gmail.com> | 2011-03-26 18:46:48 +0000 |
commit | 468cc88eae546208fa2c19b9592599f340f69d11 (patch) | |
tree | c7e036f0ab48fe5d3a5e0136460202b546843074 /ext/ui-gtk.ttl | |
parent | a9ddd8a595a73fa1a670b68ea8b3cc072860e42d (diff) | |
download | lv2-468cc88eae546208fa2c19b9592599f340f69d11.tar.xz |
Added ui-gtk bundle
Diffstat (limited to 'ext/ui-gtk.ttl')
-rw-r--r-- | ext/ui-gtk.ttl/lv2_ui_gtk.h | 37 | ||||
-rw-r--r-- | ext/ui-gtk.ttl/manifest.ttl | 8 | ||||
-rw-r--r-- | ext/ui-gtk.ttl/ui-gtk.ttl | 82 |
3 files changed, 127 insertions, 0 deletions
diff --git a/ext/ui-gtk.ttl/lv2_ui_gtk.h b/ext/ui-gtk.ttl/lv2_ui_gtk.h new file mode 100644 index 0000000..05c9316 --- /dev/null +++ b/ext/ui-gtk.ttl/lv2_ui_gtk.h @@ -0,0 +1,37 @@ +/************************************************************************
+ *
+ * Gtk+ 2.0 UI type for the in-process LV2 UI extension
+ *
+ * Copyright (C) 2010 Lars Luthman <mail@larsluthman.net>
+ *
+ * This header is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation; either version 2.1 of the License,
+ * or (at your option) any later version.
+ *
+ * This header is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
+ * USA.
+ *
+ ***********************************************************************/
+
+/** @file
+ This header file just defines a preprocessor macro for the URI prefix
+ for this extension.
+*/
+
+#ifndef LV2_UI_GTK_H
+#define LV2_UI_GTK_H
+
+
+/** The URI prefix for this extension. */
+#define LV2_UI_GTK_URI "http://lv2plug.in/ns/ext/ui-gtk"
+
+
+#endif
diff --git a/ext/ui-gtk.ttl/manifest.ttl b/ext/ui-gtk.ttl/manifest.ttl new file mode 100644 index 0000000..dfac316 --- /dev/null +++ b/ext/ui-gtk.ttl/manifest.ttl @@ -0,0 +1,8 @@ +@prefix lv2: <http://lv2plug.in/ns/lv2core#>. +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. + +<http://lv2plug.in/ns/ext/ui-gtk> + a lv2:Specification; + lv2:minorVersion 0; + lv2:microVersion 1; + rdfs:seeAlso <ui-gtk.ttl>. diff --git a/ext/ui-gtk.ttl/ui-gtk.ttl b/ext/ui-gtk.ttl/ui-gtk.ttl new file mode 100644 index 0000000..8b410b8 --- /dev/null +++ b/ext/ui-gtk.ttl/ui-gtk.ttl @@ -0,0 +1,82 @@ +# Gtk UI extension for the in-process UI extension +# +# Copyright (C) 2010-2011 Lars Luthman <mail@larsluthman.net> +# +# based on lv2.ttl, which is +# Copyright (C) 2006-2008 Steve Harris, Dave Robillard +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. + +@prefix ui-gtk: <http://lv2plug.in/ns/ext/ui-gtk#>. +@prefix ui: <http://lv2plug.in/ns/ext/ui#>. +@prefix lv2: <http://lv2plug.in/ns/lv2core#>. +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix doap: <http://usefulinc.com/ns/doap#> . +@prefix foaf: <http://xmlns.com/foaf/0.1/> . + +<http://lv2plug.in/ns/ext/ui-gtk> a lv2:Specification ; + doap:license <http://usefulinc.com/doap/licenses/mit>; + doap:name "LV2 Gtk+ UI" ; + doap:release [ + doap:revision "0.1" ; + doap:created "2011-03-26" + ]; + doap:maintainer [ + a foaf:Person; + foaf:name "Lars Luthman"; + foaf:mbox <mailto:mail@larsluthman.net>; + ]; + lv2:documentation """ +This extension defines an UI type for the in-process UI extension that can be +used in a Gtk+ program. +""". + +ui-gtk:GtkUI a rdfs:Class; + rdfs:subClassOf ui:UI; + rdfs:label "Gtk+ UI"; + lv2:documentation """ +<p>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. +</p> + +<p>Unless otherwise specified by extensions, all function pointers in +LV2_UI_Descriptor may only be called from the thread that runs the Glib +main loop. +</p>""" . + +ui-gtk:noHostResize a lv2:Feature; + rdfs:label "No host resize"; + lv2:documentation """ +<p>This Feature should only be used with UIs. +</p> + +<p>When this Feature is active the host SHOULD NOT resize the UI widget to any +other size than the one given by gtk_widget_size_request(). 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. +</p> + +<p>The data pointer in the LV2_Feature object for this Feature should be set to +NULL. +</p> +""". |