Commit d4d69df6 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

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.
parent ec030082
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>
* plug-ins/script-fu/siod-wrapper.c: reverted changes to handling
......
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>
* libgimp/libgimp-sections.txt
......
......@@ -51,6 +51,7 @@
<xi:include href="xml/gimpedit.xml" />
<xi:include href="xml/gimpfileops.xml" />
<xi:include href="xml/gimpfloatingsel.xml" />
<xi:include href="xml/gimpgrid.xml" />
<xi:include href="xml/gimpguides.xml" />
<xi:include href="xml/gimpimage.xml" />
<xi:include href="xml/gimplayer.xml" />
......
......@@ -460,6 +460,20 @@ gimp_gradients_close_popup
gimp_gradients_set_popup
</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>
<FILE>gimpguides</FILE>
gimp_image_add_hguide
......@@ -903,6 +917,7 @@ GimpZoomPreview
gimp_zoom_preview_new
gimp_zoom_preview_get_source
gimp_zoom_preview_get_drawable
gimp_zoom_preview_get_factor
<SUBSECTION Standard>
GimpZoomPreviewClass
GIMP_ZOOM_PREVIEW
......
<!-- ##### 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:
......@@ -53,3 +53,12 @@ GimpZoomPreview
@Returns:
<!-- ##### FUNCTION gimp_zoom_preview_get_factor ##### -->
<para>
</para>
@preview:
@Returns:
......@@ -201,6 +201,17 @@ gimp_aspect_preview_notify_update (GimpPreview *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 *
gimp_aspect_preview_new (GimpDrawable *drawable,
gboolean *toggle)
......
......@@ -455,6 +455,14 @@ gimp_zoom_preview_get_bounds (GimpDrawable *drawable,
return retval;
}
/**
* gimp_zoom_preview_new:
* @drawable: a #GimpDrawable
*
* Creates a new #GimpZoomPreview widget for @drawable.
*
* Since: GIMP 2.4
**/
GtkWidget *
gimp_zoom_preview_new (GimpDrawable *drawable)
{
......@@ -464,9 +472,11 @@ gimp_zoom_preview_new (GimpDrawable *drawable)
GimpZoomPreviewPrivate *priv;
preview = g_object_new (GIMP_TYPE_ZOOM_PREVIEW, NULL);
priv = GIMP_ZOOM_PREVIEW_GET_PRIVATE (preview);
priv->drawable = drawable;
width = gimp_drawable_width (drawable->drawable_id);
height = gimp_drawable_height (drawable->drawable_id);
......@@ -497,6 +507,14 @@ gimp_zoom_preview_new (GimpDrawable *drawable)
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 *
gimp_zoom_preview_get_drawable (GimpZoomPreview *preview)
{
......@@ -505,6 +523,14 @@ gimp_zoom_preview_get_drawable (GimpZoomPreview *preview)
return priv->drawable;
}
/**
* gimp_zoom_get_factor:
* @preview: a #GimpZoomPreview widget
*
* Return Value: the current zoom factor
*
* Since: GIMP 2.4
**/
gdouble
gimp_zoom_preview_get_factor (GimpZoomPreview *preview)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment