mirror of
https://github.com/brl/mutter.git
synced 2025-02-19 14:44:10 +00:00
docs: Various fixes for gtk-doc
This commit is contained in:
parent
005a99f346
commit
4ed4e86e75
@ -76,17 +76,17 @@
|
|||||||
* function called my_sine_alpha(). The defined #ClutterAlpha
|
* function called my_sine_alpha(). The defined #ClutterAlpha
|
||||||
* instance can be reused in multiple #ClutterBehaviour
|
* instance can be reused in multiple #ClutterBehaviour
|
||||||
* definitions or for #ClutterAnimation definitions.</para>
|
* definitions or for #ClutterAnimation definitions.</para>
|
||||||
* <programlisting>
|
* <programlisting><![CDATA[
|
||||||
* {
|
* {
|
||||||
* "id" : "sine-alpha",
|
* "id" : "sine-alpha",
|
||||||
* "timeline" : {
|
* "timeline" : {
|
||||||
* "id" : "sine-timeline",
|
* "id" : "sine-timeline",
|
||||||
* "duration" : 500,
|
* "duration" : 500,
|
||||||
* "loop" : true
|
* "loop" : true
|
||||||
* },
|
* },
|
||||||
* "function" : "my_sine_alpha"
|
* "function" : "my_sine_alpha"
|
||||||
* }
|
* }
|
||||||
* </programlisting>
|
* ]]></programlisting>
|
||||||
* </example>
|
* </example>
|
||||||
* <para>For the way to define the #ClutterAlpha:mode property
|
* <para>For the way to define the #ClutterAlpha:mode property
|
||||||
* inside a ClutterScript fragment, see <link
|
* inside a ClutterScript fragment, see <link
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
* which allows describing the key frames for objects.</para>
|
* which allows describing the key frames for objects.</para>
|
||||||
* <para>The "properties" property has the following syntax:</para>
|
* <para>The "properties" property has the following syntax:</para>
|
||||||
* <informalexample>
|
* <informalexample>
|
||||||
* <programlisting>
|
* <programlisting><![CDATA[
|
||||||
* {
|
* {
|
||||||
* "properties" : [
|
* "properties" : [
|
||||||
* {
|
* {
|
||||||
@ -77,7 +77,7 @@
|
|||||||
* ]
|
* ]
|
||||||
* ]
|
* ]
|
||||||
* }
|
* }
|
||||||
* </programlisting>
|
* ]]></programlisting>
|
||||||
* </informalexample>
|
* </informalexample>
|
||||||
* <example id="ClutterAnimator-script-example">
|
* <example id="ClutterAnimator-script-example">
|
||||||
* <title>ClutterAnimator definition</title>
|
* <title>ClutterAnimator definition</title>
|
||||||
@ -88,7 +88,7 @@
|
|||||||
* from its current position to the 100, 100 position in 20 percent
|
* from its current position to the 100, 100 position in 20 percent
|
||||||
* of the duration of the animation; the second will using a cubic
|
* of the duration of the animation; the second will using a cubic
|
||||||
* easing to move the actor to the 200, 200 coordinates.</para>
|
* easing to move the actor to the 200, 200 coordinates.</para>
|
||||||
* <programlisting>
|
* <programlisting><![CDATA[
|
||||||
* {
|
* {
|
||||||
* "type" : "ClutterAnimator",
|
* "type" : "ClutterAnimator",
|
||||||
* "duration" : 1000,
|
* "duration" : 1000,
|
||||||
@ -113,7 +113,7 @@
|
|||||||
* }
|
* }
|
||||||
* ]
|
* ]
|
||||||
* }
|
* }
|
||||||
* </programlisting>
|
* ]]></programlisting>
|
||||||
* </example>
|
* </example>
|
||||||
* </refsect2>
|
* </refsect2>
|
||||||
*
|
*
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
*
|
*
|
||||||
* A simple object might be defined as:
|
* A simple object might be defined as:
|
||||||
*
|
*
|
||||||
* |[
|
* <informalexample><programlisting><![CDATA[
|
||||||
* {
|
* {
|
||||||
* "id" : "red-button",
|
* "id" : "red-button",
|
||||||
* "type" : "ClutterRectangle",
|
* "type" : "ClutterRectangle",
|
||||||
@ -55,7 +55,7 @@
|
|||||||
* "height" : 100,
|
* "height" : 100,
|
||||||
* "color" : "#ff0000ff"
|
* "color" : "#ff0000ff"
|
||||||
* }
|
* }
|
||||||
* ]|
|
* ]]></programlisting></informalexample>
|
||||||
*
|
*
|
||||||
* This will produce a red #ClutterRectangle, 100x100 pixels wide, and
|
* This will produce a red #ClutterRectangle, 100x100 pixels wide, and
|
||||||
* with a ClutterScript id of "red-button"; it can be retrieved by calling:
|
* with a ClutterScript id of "red-button"; it can be retrieved by calling:
|
||||||
@ -78,7 +78,7 @@
|
|||||||
* Behaviours and timelines can also be defined inside a UI definition
|
* Behaviours and timelines can also be defined inside a UI definition
|
||||||
* buffer:
|
* buffer:
|
||||||
*
|
*
|
||||||
* |[
|
* <informalexample><programlisting><![CDATA[
|
||||||
* {
|
* {
|
||||||
* "id" : "rotate-behaviour",
|
* "id" : "rotate-behaviour",
|
||||||
* "type" : "ClutterBehaviourRotate",
|
* "type" : "ClutterBehaviourRotate",
|
||||||
@ -90,25 +90,25 @@
|
|||||||
* "mode" : "easeInSine"
|
* "mode" : "easeInSine"
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* ]|
|
* ]]></programlisting></informalexample>
|
||||||
*
|
*
|
||||||
* And then to apply a defined behaviour to an actor defined inside the
|
* And then to apply a defined behaviour to an actor defined inside the
|
||||||
* definition of an actor, the "behaviour" member can be used:
|
* definition of an actor, the "behaviour" member can be used:
|
||||||
*
|
*
|
||||||
* |[
|
* <informalexample><programlisting><![CDATA[
|
||||||
* {
|
* {
|
||||||
* "id" : "my-rotating-actor",
|
* "id" : "my-rotating-actor",
|
||||||
* "type" : "ClutterTexture",
|
* "type" : "ClutterTexture",
|
||||||
* ...
|
* ...
|
||||||
* "behaviours" : [ "rotate-behaviour" ]
|
* "behaviours" : [ "rotate-behaviour" ]
|
||||||
* }
|
* }
|
||||||
* ]|
|
* ]]></programlisting></informalexample>
|
||||||
*
|
*
|
||||||
* A #ClutterAlpha belonging to a #ClutterBehaviour can only be defined
|
* A #ClutterAlpha belonging to a #ClutterBehaviour can only be defined
|
||||||
* implicitly like in the example above, or explicitly by setting the
|
* implicitly like in the example above, or explicitly by setting the
|
||||||
* "alpha" property to point to a previously defined #ClutterAlpha, e.g.:
|
* "alpha" property to point to a previously defined #ClutterAlpha, e.g.:
|
||||||
*
|
*
|
||||||
* |[
|
* <informalexample><programlisting><![CDATA[
|
||||||
* {
|
* {
|
||||||
* "id" : "rotate-behaviour",
|
* "id" : "rotate-behaviour",
|
||||||
* "type" : "ClutterBehaviourRotate",
|
* "type" : "ClutterBehaviourRotate",
|
||||||
@ -127,7 +127,7 @@
|
|||||||
* "function" : "custom_sine_alpha"
|
* "function" : "custom_sine_alpha"
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* ]|
|
* ]]></programlisting></informalexample>
|
||||||
*
|
*
|
||||||
* Implicitely defined #ClutterAlpha<!-- -->s and #ClutterTimeline<!-- -->s
|
* Implicitely defined #ClutterAlpha<!-- -->s and #ClutterTimeline<!-- -->s
|
||||||
* can omit the <varname>id</varname> member, as well as the
|
* can omit the <varname>id</varname> member, as well as the
|
||||||
@ -139,7 +139,7 @@
|
|||||||
* then autoconnected to their respective signals using the
|
* then autoconnected to their respective signals using the
|
||||||
* clutter_script_connect_signals() function:
|
* clutter_script_connect_signals() function:
|
||||||
*
|
*
|
||||||
* |[
|
* <informalexample><programlisting><![CDATA[
|
||||||
* ...
|
* ...
|
||||||
* "signals" : [
|
* "signals" : [
|
||||||
* { "name" : "button-press-event", "handler" : "on_button_press" },
|
* { "name" : "button-press-event", "handler" : "on_button_press" },
|
||||||
@ -150,7 +150,7 @@
|
|||||||
* },
|
* },
|
||||||
* ],
|
* ],
|
||||||
* ...
|
* ...
|
||||||
* ]|
|
* ]]></programlisting></informalexample>
|
||||||
*
|
*
|
||||||
* Signal handler definitions must have a "name" and a "handler" members;
|
* Signal handler definitions must have a "name" and a "handler" members;
|
||||||
* they can also have the "after" and "swapped" boolean members (for the
|
* they can also have the "after" and "swapped" boolean members (for the
|
||||||
|
@ -258,10 +258,10 @@ cogl_frustum (float left,
|
|||||||
* @right: The coordinate for the right clipping plane
|
* @right: The coordinate for the right clipping plane
|
||||||
* @bottom: The coordinate for the bottom clipping plane
|
* @bottom: The coordinate for the bottom clipping plane
|
||||||
* @top: The coordinate for the top clipping plane
|
* @top: The coordinate for the top clipping plane
|
||||||
* @near: The <b>distance</b> to the near clipping plane (negative if
|
* @near: The <emphasis>distance</emphasis> to the near clipping
|
||||||
* the plane is behind the viewer)
|
* plane (negative if the plane is behind the viewer)
|
||||||
* @far: The <b>distance</b> for the far clipping plane (negative if
|
* @far: The <emphasis>distance</emphasis> for the far clipping
|
||||||
* the plane is behind the viewer)
|
* plane (negative if the plane is behind the viewer)
|
||||||
*
|
*
|
||||||
* Replaces the current projection matrix with an orthographic projection
|
* Replaces the current projection matrix with an orthographic projection
|
||||||
* matrix. See <xref linkend="cogl-ortho-matrix"/> to see how the matrix is
|
* matrix. See <xref linkend="cogl-ortho-matrix"/> to see how the matrix is
|
||||||
@ -272,7 +272,7 @@ cogl_frustum (float left,
|
|||||||
* <graphic fileref="cogl_ortho.png" format="PNG"/>
|
* <graphic fileref="cogl_ortho.png" format="PNG"/>
|
||||||
* </figure>
|
* </figure>
|
||||||
*
|
*
|
||||||
* <note>cogl_ortho copies the arguments from OpenGL's glOrtho even
|
* <note>This function copies the arguments from OpenGL's glOrtho() even
|
||||||
* though they are unnecessarily confusing due to the z near and z far
|
* though they are unnecessarily confusing due to the z near and z far
|
||||||
* arguments actually being a "distance" from the origin, where
|
* arguments actually being a "distance" from the origin, where
|
||||||
* negative values are behind the viewer, instead of coordinates for
|
* negative values are behind the viewer, instead of coordinates for
|
||||||
|
@ -48,6 +48,7 @@ FIXXREF_OPTIONS=\
|
|||||||
# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
|
# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
|
||||||
# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
|
# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
|
||||||
HFILE_GLOB=$(top_srcdir)/clutter/*.h \
|
HFILE_GLOB=$(top_srcdir)/clutter/*.h \
|
||||||
|
$(top_builddir)/clutter/*.h \
|
||||||
$(top_srcdir)/clutter/x11/clutter-x11.h \
|
$(top_srcdir)/clutter/x11/clutter-x11.h \
|
||||||
$(top_srcdir)/clutter/x11/clutter-x11-texture-pixmap.h \
|
$(top_srcdir)/clutter/x11/clutter-x11-texture-pixmap.h \
|
||||||
$(top_srcdir)/clutter/glx/clutter-glx-texture-pixmap.h \
|
$(top_srcdir)/clutter/glx/clutter-glx-texture-pixmap.h \
|
||||||
|
@ -39,16 +39,15 @@ MKTMPL_OPTIONS=
|
|||||||
# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html
|
# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html
|
||||||
FIXXREF_OPTIONS=\
|
FIXXREF_OPTIONS=\
|
||||||
--extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/glib \
|
--extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/glib \
|
||||||
--extra-dir=$(GDPIXBUF_PREFIX)/share/gtk-doc/html/gdk-pixbuf \
|
--extra-dir=$(GDPIXBUF_PREFIX)/share/gtk-doc/html/gdk-pixbuf
|
||||||
--extra-dir=$(top_srcdir)/doc/reference/clutter/html
|
|
||||||
|
|
||||||
# Used for dependencies. The docs will be rebuilt if any of these change.
|
# Used for dependencies. The docs will be rebuilt if any of these change.
|
||||||
# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
|
# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
|
||||||
# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
|
# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
|
||||||
HFILE_GLOB=\
|
HFILE_GLOB=\
|
||||||
$(top_srcdir)/clutter/cogl/cogl/*.h
|
$(top_srcdir)/clutter/cogl/cogl/*.h \
|
||||||
CFILE_GLOB=\
|
$(top_builddir)/clutter/cogl/cogl/*.h
|
||||||
$(top_srcdir)/clutter/cogl/cogl/*.c
|
CFILE_GLOB=$(top_srcdir)/clutter/cogl/cogl/*.c
|
||||||
|
|
||||||
# Header files to ignore when scanning.
|
# Header files to ignore when scanning.
|
||||||
# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
|
# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
|
||||||
@ -85,6 +84,7 @@ IGNORE_HFILES=\
|
|||||||
cogl-util.h \
|
cogl-util.h \
|
||||||
cogl-vertex-buffer-private.h \
|
cogl-vertex-buffer-private.h \
|
||||||
driver \
|
driver \
|
||||||
|
tesselator \
|
||||||
winsys
|
winsys
|
||||||
|
|
||||||
EXTRA_HFILES=
|
EXTRA_HFILES=
|
||||||
@ -113,7 +113,7 @@ expand_content_files = \
|
|||||||
# e.g. INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
|
# e.g. INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
|
||||||
# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
|
# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
|
||||||
|
|
||||||
INCLUDES=-I$(top_srcdir) -I$(top_srcdir)/clutter -I$(top_srcdir)/clutter/cogl $(CLUTTER_CFLAGS)
|
INCLUDES=-I$(top_srcdir) -I$(top_srcdir)/clutter -I$(top_srcdir)/clutter/cogl -I$(top_builddir)/clutter/cogl $(CLUTTER_CFLAGS)
|
||||||
GTKDOC_LIBS=$(top_builddir)/clutter/libclutter-@CLUTTER_WINSYS@-@CLUTTER_API_VERSION@.la $(CLUTTER_LIBS)
|
GTKDOC_LIBS=$(top_builddir)/clutter/libclutter-@CLUTTER_WINSYS@-@CLUTTER_API_VERSION@.la $(CLUTTER_LIBS)
|
||||||
|
|
||||||
# This includes the standard gtk-doc make rules, copied by gtkdocize.
|
# This includes the standard gtk-doc make rules, copied by gtkdocize.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user