libgimp/gimpaspectpreview.c added missing API docs.

2005-10-05  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpaspectpreview.c
	* libgimp/gimpzoompreview.c: added missing API docs.

2005-10-05  Sven Neumann  <sven@gimp.org>

	* libgimp/libgimp-docs.sgml
	* libgimp/libgimp-sections.txt
	* libgimp/tmpl/gimpgrid.sgml: added new Grid PDB API.

	* libgimp/tmpl/gimpzoompreview.sgml: updated.
This commit is contained in:
Sven Neumann 2005-10-05 13:50:09 +00:00 committed by Sven Neumann
parent ec030082e2
commit d4d69df6d9
8 changed files with 199 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-10-05 Sven Neumann <sven@gimp.org>
* libgimp/gimpaspectpreview.c
* libgimp/gimpzoompreview.c: added missing API docs.
2005-10-05 Sven Neumann <sven@gimp.org> 2005-10-05 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/siod-wrapper.c: reverted changes to handling * plug-ins/script-fu/siod-wrapper.c: reverted changes to handling

View File

@ -1,3 +1,11 @@
2005-10-05 Sven Neumann <sven@gimp.org>
* libgimp/libgimp-docs.sgml
* libgimp/libgimp-sections.txt
* libgimp/tmpl/gimpgrid.sgml: added new Grid PDB API.
* libgimp/tmpl/gimpzoompreview.sgml: updated.
2005-09-30 Sven Neumann <sven@gimp.org> 2005-09-30 Sven Neumann <sven@gimp.org>
* libgimp/libgimp-sections.txt * libgimp/libgimp-sections.txt

View File

@ -51,6 +51,7 @@
<xi:include href="xml/gimpedit.xml" /> <xi:include href="xml/gimpedit.xml" />
<xi:include href="xml/gimpfileops.xml" /> <xi:include href="xml/gimpfileops.xml" />
<xi:include href="xml/gimpfloatingsel.xml" /> <xi:include href="xml/gimpfloatingsel.xml" />
<xi:include href="xml/gimpgrid.xml" />
<xi:include href="xml/gimpguides.xml" /> <xi:include href="xml/gimpguides.xml" />
<xi:include href="xml/gimpimage.xml" /> <xi:include href="xml/gimpimage.xml" />
<xi:include href="xml/gimplayer.xml" /> <xi:include href="xml/gimplayer.xml" />

View File

@ -460,6 +460,20 @@ gimp_gradients_close_popup
gimp_gradients_set_popup gimp_gradients_set_popup
</SECTION> </SECTION>
<SECTION>
<FILE>gimpgrid</FILE>
gimp_image_grid_get_spacing
gimp_image_grid_set_spacing
gimp_image_grid_get_offset
gimp_image_grid_set_offset
gimp_image_grid_get_foreground_color
gimp_image_grid_set_foreground_color
gimp_image_grid_get_background_color
gimp_image_grid_set_background_color
gimp_image_grid_get_style
gimp_image_grid_set_style
</SECTION>
<SECTION> <SECTION>
<FILE>gimpguides</FILE> <FILE>gimpguides</FILE>
gimp_image_add_hguide gimp_image_add_hguide
@ -903,6 +917,7 @@ GimpZoomPreview
gimp_zoom_preview_new gimp_zoom_preview_new
gimp_zoom_preview_get_source gimp_zoom_preview_get_source
gimp_zoom_preview_get_drawable gimp_zoom_preview_get_drawable
gimp_zoom_preview_get_factor
<SUBSECTION Standard> <SUBSECTION Standard>
GimpZoomPreviewClass GimpZoomPreviewClass
GIMP_ZOOM_PREVIEW GIMP_ZOOM_PREVIEW

View File

@ -0,0 +1,124 @@
<!-- ##### SECTION Title ##### -->
gimpgrid
<!-- ##### SECTION Short_Description ##### -->
<!-- ##### SECTION Long_Description ##### -->
<para>
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
</para>
<!-- ##### SECTION Stability_Level ##### -->
<!-- ##### FUNCTION gimp_image_grid_get_spacing ##### -->
<para>
</para>
@image_ID:
@xspacing:
@yspacing:
@Returns:
<!-- ##### FUNCTION gimp_image_grid_set_spacing ##### -->
<para>
</para>
@image_ID:
@xspacing:
@yspacing:
@Returns:
<!-- ##### FUNCTION gimp_image_grid_get_offset ##### -->
<para>
</para>
@image_ID:
@xoffset:
@yoffset:
@Returns:
<!-- ##### FUNCTION gimp_image_grid_set_offset ##### -->
<para>
</para>
@image_ID:
@xoffset:
@yoffset:
@Returns:
<!-- ##### FUNCTION gimp_image_grid_get_foreground_color ##### -->
<para>
</para>
@image_ID:
@fgcolor:
@Returns:
<!-- ##### FUNCTION gimp_image_grid_set_foreground_color ##### -->
<para>
</para>
@image_ID:
@fgcolor:
@Returns:
<!-- ##### FUNCTION gimp_image_grid_get_background_color ##### -->
<para>
</para>
@image_ID:
@bgcolor:
@Returns:
<!-- ##### FUNCTION gimp_image_grid_set_background_color ##### -->
<para>
</para>
@image_ID:
@bgcolor:
@Returns:
<!-- ##### FUNCTION gimp_image_grid_get_style ##### -->
<para>
</para>
@image_ID:
@Returns:
<!-- ##### FUNCTION gimp_image_grid_set_style ##### -->
<para>
</para>
@image_ID:
@style:
@Returns:

View File

@ -53,3 +53,12 @@ GimpZoomPreview
@Returns: @Returns:
<!-- ##### FUNCTION gimp_zoom_preview_get_factor ##### -->
<para>
</para>
@preview:
@Returns:

View File

@ -201,6 +201,17 @@ gimp_aspect_preview_notify_update (GimpPreview *preview,
*toggle = gimp_preview_get_update (preview); *toggle = gimp_preview_get_update (preview);
} }
/**
* gimp_aspect_preview_new:
* @drawable: a #GimpDrawable
* @toggle: pointer to a #gboolean variable to sync with the "Preview"
* check-button or %NULL
*
* Creates a new #GimpAspectPreview widget for @drawable. See also
* gimp_drawable_preview_new().
*
* Since: GIMP 2.2
**/
GtkWidget * GtkWidget *
gimp_aspect_preview_new (GimpDrawable *drawable, gimp_aspect_preview_new (GimpDrawable *drawable,
gboolean *toggle) gboolean *toggle)

View File

@ -455,6 +455,14 @@ gimp_zoom_preview_get_bounds (GimpDrawable *drawable,
return retval; return retval;
} }
/**
* gimp_zoom_preview_new:
* @drawable: a #GimpDrawable
*
* Creates a new #GimpZoomPreview widget for @drawable.
*
* Since: GIMP 2.4
**/
GtkWidget * GtkWidget *
gimp_zoom_preview_new (GimpDrawable *drawable) gimp_zoom_preview_new (GimpDrawable *drawable)
{ {
@ -464,9 +472,11 @@ gimp_zoom_preview_new (GimpDrawable *drawable)
GimpZoomPreviewPrivate *priv; GimpZoomPreviewPrivate *priv;
preview = g_object_new (GIMP_TYPE_ZOOM_PREVIEW, NULL); preview = g_object_new (GIMP_TYPE_ZOOM_PREVIEW, NULL);
priv = GIMP_ZOOM_PREVIEW_GET_PRIVATE (preview); priv = GIMP_ZOOM_PREVIEW_GET_PRIVATE (preview);
priv->drawable = drawable; priv->drawable = drawable;
width = gimp_drawable_width (drawable->drawable_id); width = gimp_drawable_width (drawable->drawable_id);
height = gimp_drawable_height (drawable->drawable_id); height = gimp_drawable_height (drawable->drawable_id);
@ -497,6 +507,14 @@ gimp_zoom_preview_new (GimpDrawable *drawable)
return GTK_WIDGET (preview); return GTK_WIDGET (preview);
} }
/**
* gimp_zoom_get_drawable:
* @preview: a #GimpZoomPreview widget
*
* Return Value: the #GimpDrawable that was passed to gimp_zoom_preview_new().
*
* Since: GIMP 2.4
**/
GimpDrawable * GimpDrawable *
gimp_zoom_preview_get_drawable (GimpZoomPreview *preview) gimp_zoom_preview_get_drawable (GimpZoomPreview *preview)
{ {
@ -505,6 +523,14 @@ gimp_zoom_preview_get_drawable (GimpZoomPreview *preview)
return priv->drawable; return priv->drawable;
} }
/**
* gimp_zoom_get_factor:
* @preview: a #GimpZoomPreview widget
*
* Return Value: the current zoom factor
*
* Since: GIMP 2.4
**/
gdouble gdouble
gimp_zoom_preview_get_factor (GimpZoomPreview *preview) gimp_zoom_preview_get_factor (GimpZoomPreview *preview)
{ {