libgimpwidgets/gimppreview.c documented new functions.

2004-09-10  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimppreview.c
	* libgimpwidgets/gimppreviewarea.c: documented new functions.
This commit is contained in:
Sven Neumann 2004-09-09 22:36:15 +00:00 committed by Sven Neumann
parent cf9e2368eb
commit e9d5536720
7 changed files with 49 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2004-09-10 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimppreview.c
* libgimpwidgets/gimppreviewarea.c: documented new functions.
2004-09-09 Sven Neumann <sven@gimp.org>
* libgimp/gimpdrawablepreview.c

View File

@ -1,3 +1,10 @@
2004-09-10 Sven Neumann <sven@gimp.org>
* libgimpwidgets/libgimpwidgets-sections.txt
* libgimpwidgets/tmpl/gimppreview.sgml
* libgimpwidgets/tmpl/gimppreviewarea.sgml: updated for new
preview APIs.
2004-09-07 Sven Neumann <sven@gimp.org>
* libgimpwidgets/libgimpwidgets-sections.txt

View File

@ -785,6 +785,7 @@ gimp_preview_area_blend
gimp_preview_area_mask
gimp_preview_area_set_offsets
gimp_preview_area_set_cmap
gimp_preview_area_set_max_size
gimp_preview_area_menu_popup
<SUBSECTION Standard>
GimpPreviewAreaClass
@ -803,6 +804,7 @@ GIMP_PREVIEW_AREA_GET_CLASS
GimpPreview
gimp_preview_get_update
gimp_preview_set_update
gimp_preview_set_bounds
gimp_preview_get_size
gimp_preview_get_position
gimp_preview_draw

View File

@ -55,6 +55,18 @@ GimpPreview
@update:
<!-- ##### FUNCTION gimp_preview_set_bounds ##### -->
<para>
</para>
@preview:
@xmin:
@ymin:
@xmax:
@ymax:
<!-- ##### FUNCTION gimp_preview_get_size ##### -->
<para>

View File

@ -127,6 +127,16 @@ GimpPreviewArea
@num_colors:
<!-- ##### FUNCTION gimp_preview_area_set_max_size ##### -->
<para>
</para>
@area:
@width:
@height:
<!-- ##### FUNCTION gimp_preview_area_menu_popup ##### -->
<para>

View File

@ -915,6 +915,10 @@ gimp_preview_get_update (GimpPreview *preview)
* @xmax:
* @ymax:
*
* Sets the lower and upper limits for the previewed area. The
* difference between the upper and lower value is used to set the
* maximum size of the #GimpPreviewArea used in the @preview.
*
* Since: GIMP 2.2
**/
void
@ -961,7 +965,7 @@ gimp_preview_get_size (GimpPreview *preview,
}
/**
* gimp_preview_get_posistion:
* gimp_preview_get_position:
* @preview: a #GimpPreview widget
* @x: return location for the horizontal offset
* @y: return location for the vertical offset

View File

@ -1666,9 +1666,14 @@ gimp_preview_area_set_cmap (GimpPreviewArea *area,
/**
* gimp_preview_area_set_max_size:
* @area: a #GimpPreviewArea widget
* @width:
* @height:
* @area: a #GimpPreviewArea widget
* @width: the maximum width in pixels or -1 to unset the limit
* @height: the maximum height in pixels or -1 to unset the limit
*
* Usually a #GimpPreviewArea fills the size that it is
* allocated. This funtion allows you to limit the preview area to a
* maximum size. If a larger size is allocated for the widget, the
* preview will draw itself centered into the allocated area.
*
* Since: GIMP 2.2
**/