mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
gir: Fix some missing (out) annotations
This commit is contained in:
parent
09094fe66f
commit
c2d4e7d265
3 changed files with 26 additions and 10 deletions
|
@ -193,17 +193,27 @@ gimp_rgb_set_uchar (GimpRGB *rgb,
|
|||
rgb->b = (gdouble) b / 255.0;
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_rgb_get_uchar:
|
||||
* @rgb: a #GimpRGB struct
|
||||
* @red: (out) (optional): Location for red component, or %NULL
|
||||
* @green: (out) (optional): Location for green component, or %NULL
|
||||
* @blue: (out) (optional): Location for blue component, or %NULL
|
||||
*
|
||||
* Writes the red, green, blue and alpha components of @rgb to the
|
||||
* color components @red, @green and @blue.
|
||||
*/
|
||||
void
|
||||
gimp_rgb_get_uchar (const GimpRGB *rgb,
|
||||
guchar *r,
|
||||
guchar *g,
|
||||
guchar *b)
|
||||
guchar *red,
|
||||
guchar *green,
|
||||
guchar *blue)
|
||||
{
|
||||
g_return_if_fail (rgb != NULL);
|
||||
|
||||
if (r) *r = ROUND (CLAMP (rgb->r, 0.0, 1.0) * 255.0);
|
||||
if (g) *g = ROUND (CLAMP (rgb->g, 0.0, 1.0) * 255.0);
|
||||
if (b) *b = ROUND (CLAMP (rgb->b, 0.0, 1.0) * 255.0);
|
||||
if (red) *red = ROUND (CLAMP (rgb->r, 0.0, 1.0) * 255.0);
|
||||
if (green) *green = ROUND (CLAMP (rgb->g, 0.0, 1.0) * 255.0);
|
||||
if (blue) *blue = ROUND (CLAMP (rgb->b, 0.0, 1.0) * 255.0);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -586,8 +586,8 @@ gimp_number_pair_entry_set_values (GimpNumberPairEntry *entry,
|
|||
/**
|
||||
* gimp_number_pair_entry_get_values:
|
||||
* @entry: A #GimpNumberPairEntry widget.
|
||||
* @left: Pointer of where to store the left number (may be %NULL).
|
||||
* @right: Pointer of to store the right number (may be %NULL).
|
||||
* @left: (out) (optional): Location to store the left number (may be %NULL).
|
||||
* @right: (out) (optional): Location to store the right number (may be %NULL).
|
||||
*
|
||||
* Gets the numbers displayed by a #GimpNumberPairEntry.
|
||||
*
|
||||
|
@ -1243,8 +1243,8 @@ gimp_number_pair_entry_set_default_values (GimpNumberPairEntry *entry,
|
|||
/**
|
||||
* gimp_number_pair_entry_get_default_values:
|
||||
* @entry: A #GimpNumberPairEntry widget.
|
||||
* @left: Pointer of where to put left value.
|
||||
* @right: Pointer of where to put right value.
|
||||
* @left: (out) (optional): Location to put the default left value, or %NULL.
|
||||
* @right: (out) (optional): Location to put the default right value, or %NULL.
|
||||
*
|
||||
* Since: 2.4
|
||||
**/
|
||||
|
|
|
@ -859,6 +859,12 @@ gimp_scrolled_preview_set_policy (GimpScrolledPreview *preview,
|
|||
gtk_widget_queue_resize (gimp_preview_get_area (GIMP_PREVIEW (preview)));
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_scrolled_preview_get_adjustments:
|
||||
* @preview: a #GimpScrolledPreview
|
||||
* @hadj: (out) (transfer none): Horizontal adjustment
|
||||
* @vadj: (out) (transfer none): Vertical adjustment
|
||||
*/
|
||||
void
|
||||
gimp_scrolled_preview_get_adjustments (GimpScrolledPreview *preview,
|
||||
GtkAdjustment **hadj,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue