- public ulong adaptive_supersample_area (int x1, int y1, int x2, int y2, int max_depth, double threshold, RenderFunc render_func, PutPixelFunc put_pixel_func, ProgressFunc progress_func)
- public bool airbrush (Drawable drawable, double pressure, double[] strokes)
Paint in the current brush with varying pressure.
- public bool airbrush_default (Drawable drawable, double[] strokes)
Paint in the current brush with varying pressure.
- public bool attach_parasite (Parasite parasite)
Add a global parasite.
- public double bilinear (double x, double y, double[] values)
- public uint16 bilinear_16 (double x, double y, uint16[] values)
- public uint32 bilinear_32 (double x, double y, uint32[] values)
- public uint8 bilinear_8 (double x, double y, uint8[] values)
- public void bilinear_rgb (double x, double y, double[] values, bool has_alpha, double[] retvalues)
- public void bind_text_domain (string domain_name, string dir_name)
This function wraps bindtextdomain on UNIX and wbintextdomain on
Windows.
- public bool brushes_close_popup (string brush_callback)
Close the brush selection dialog.
- public (unowned Brush)[] brushes_get_list (string filter)
Retrieve a complete listing of the available brushes.
- public bool brushes_popup (string brush_callback, string popup_title, Brush? initial_brush, Bytes? parent_window)
Invokes the GIMP brush selection dialog.
- public bool brushes_refresh ()
Refresh current brushes.
- public bool brushes_set_popup (string brush_callback, Brush brush)
Sets the selected brush in a brush selection dialog.
- public bool buffer_delete (string buffer_name)
Deletes a named buffer.
- public int buffer_get_bytes (string buffer_name)
Retrieves the specified buffer's bytes.
- public int buffer_get_height (string buffer_name)
Retrieves the specified buffer's height.
- public ImageType buffer_get_image_type (string buffer_name)
Retrieves the specified buffer's image type.
- public int buffer_get_width (string buffer_name)
Retrieves the specified buffer's width.
- public string buffer_rename (string buffer_name, string new_name)
Renames a named buffer.
- public string[] buffers_get_name_list (string? filter)
Retrieve a complete listing of the available buffers.
- public unowned string cache_directory ()
Returns the default top directory for GIMP cached files.
- public Pattern cairo_checkerboard_create (Context cr, int size, Color light, Color dark)
Create a repeating checkerboard pattern.
- public Buffer cairo_surface_create_buffer (Surface surface, Object format)
This function returns a
Buffer which wraps surface's pixels.
- public Buffer cairo_surface_get_buffer (Surface surface, Object format, bool sync_back)
This function returns a [class@Gegl.
- public unowned Object? cairo_surface_get_format (Surface surface)
This function returns a
Object format that corresponds to surface's pixel format.
- public string canonicalize_identifier (string identifier)
Turns any input string into a canonicalized string.
- public unowned Color check_custom_color1 ()
Returns the first checkerboard custom color that can be used in
previews.
- public unowned Color check_custom_color2 ()
Returns the second checkerboard custom color that can be used in
previews.
- public CheckSize check_size ()
Returns the size of the checkerboard to be used in previews.
- public CheckType check_type ()
Returns the type of the checkerboard to be used in previews.
- public void checks_get_colors (CheckType type, ref Color color1, ref Color color2)
Retrieves the colors to use when drawing a checkerboard for a certain
CheckType and custom colors.
- public bool clone (Drawable drawable, Drawable src_drawable, CloneType clone_type, double src_x, double src_y, double[] strokes)
Clone from the source to the dest drawable using the current brush
- public bool clone_default (Drawable drawable, double[] strokes)
Clone from the source to the dest drawable using the current brush
- public bool color_is_out_of_gamut (Color color, Object space)
Determine whether color is out of its space
gamut.
- public bool color_is_out_of_self_gamut (Color color)
Determine whether color is out of its own space gamut.
- public bool color_is_perceptually_identical (Color color1, Color color2)
Determine whether color1 and color2 can be
considered identical to the human eyes, by computing the distance in a color space as perceptually uniform as possible.
- public (unowned string)[] color_list_names (out Color[] colors)
Returns the list of [SVG 1.0 color keywords](https://www.
- public Color color_parse_css (string css)
Attempts to parse a string describing an sRGB color in CSS notation.
- public Color color_parse_hex (string hex)
Attempts to parse a string describing a sRGB color in hexadecimal
notation (optionally prefixed with a '#').
- public Color color_parse_name (string name)
Attempts to parse a color name.
- public void color_set_alpha (Color color, double alpha)
Update the alpha channel, and any other component if
necessary (e.
- public bool context_are_dynamics_enabled ()
Whether the currently active paint dynamics will be applied to
painting.
- public bool context_enable_dynamics (bool enable)
Enables paint dynamics using the active paint dynamics.
- public bool context_get_antialias ()
Get the antialias setting.
- public Color context_get_background ()
Get the current GIMP background color.
- public unowned Brush context_get_brush ()
Get the currently active brush.
- public double context_get_brush_angle ()
Get brush angle in degrees.
- public double context_get_brush_aspect_ratio ()
Get brush aspect ratio.
- public double context_get_brush_force ()
Get brush force in paint options.
- public double context_get_brush_hardness ()
Get brush hardness in paint options.
- public double context_get_brush_size ()
Get brush size in pixels.
- public double context_get_brush_spacing ()
Get brush spacing as percent of size.
- public bool context_get_diagonal_neighbors ()
Get the diagonal neighbors setting.
- public DistanceMetric context_get_distance_metric ()
Get the distance metric used in some computations.
- public string context_get_dynamics_name ()
Get the currently active paint dynamics.
- public bool context_get_emulate_brush_dynamics ()
Retrieve the currently active stroke option's emulate brush dynamics
setting.
- public bool context_get_feather ()
Get the feather setting.
- public bool context_get_feather_radius (out double feather_radius_x, out double feather_radius_y)
Get the feather radius setting.
- public unowned Font context_get_font ()
Get the currently active font.
- public Color context_get_foreground ()
Get the current GIMP foreground color.
- public unowned Gradient context_get_gradient ()
Get the currently active gradient.
- public GradientBlendColorSpace context_get_gradient_blend_color_space ()
Get the gradient blend color space.
- public RepeatMode context_get_gradient_repeat_mode ()
Get the gradient repeat mode.
- public bool context_get_gradient_reverse ()
Get the gradient reverse setting.
- public double context_get_ink_angle ()
Get ink angle in degrees.
- public double context_get_ink_blob_angle ()
Get ink blob angle in degrees.
- public double context_get_ink_blob_aspect_ratio ()
Get ink blob aspect ratio.
- public InkBlobType context_get_ink_blob_type ()
Get ink blob type.
- public double context_get_ink_size ()
Get ink blob size in pixels.
- public double context_get_ink_size_sensitivity ()
Get ink size sensitivity.
- public double context_get_ink_speed_sensitivity ()
Get ink speed sensitivity.
- public double context_get_ink_tilt_sensitivity ()
Get ink tilt sensitivity.
- public InterpolationType context_get_interpolation ()
Get the interpolation type.
- public CapStyle context_get_line_cap_style ()
Get the line cap style setting.
- public double context_get_line_dash_offset ()
Get the line dash offset setting.
- public bool context_get_line_dash_pattern (out double[] dashes)
Get the line dash pattern setting.
- public JoinStyle context_get_line_join_style ()
Get the line join style setting.
- public double context_get_line_miter_limit ()
Get the line miter limit setting.
- public double context_get_line_width ()
Get the line width setting.
- public unowned Unit context_get_line_width_unit ()
Get the line width unit setting.
- public string context_get_mypaint_brush ()
Get the currently active MyPaint brush.
- public double context_get_opacity ()
Get the opacity.
- public double context_get_paint_fade_length ()
Get the paint fade length.
- public RepeatMode context_get_paint_fade_repeat ()
Get the paint fade repeat type.
- public string context_get_paint_method ()
Get the currently active paint method.
- public LayerMode context_get_paint_mode ()
Get the paint mode.
- public unowned Palette context_get_palette ()
Get the currently active palette.
- public unowned Pattern context_get_pattern ()
Get the currently active pattern.
- public SelectCriterion context_get_sample_criterion ()
Get the sample criterion setting.
- public bool context_get_sample_merged ()
Get the sample merged setting.
- public double context_get_sample_threshold ()
Get the sample threshold setting.
- public int context_get_sample_threshold_int ()
Get the sample threshold setting as an integer value.
- public bool context_get_sample_transparent ()
Get the sample transparent setting.
- public StrokeMethod context_get_stroke_method ()
Get the currently active stroke method.
- public TransformDirection context_get_transform_direction ()
Get the transform direction.
- public TransformResize context_get_transform_resize ()
Get the transform resize type.
- public bool context_list_paint_methods (out string[] paint_methods)
Lists the available paint methods.
- public bool context_pop ()
Pops the topmost context from the plug-in's context stack.
- public bool context_push ()
Pushes a context onto the top of the plug-in's context stack.
- public bool context_set_antialias (bool antialias)
Set the antialias setting.
- public bool context_set_background (Color background)
Set the current GIMP background color.
- public bool context_set_brush (Brush brush)
Set the active brush.
- public bool context_set_brush_angle (double angle)
Set brush angle in degrees.
- public bool context_set_brush_aspect_ratio (double aspect)
Set brush aspect ratio.
- public bool context_set_brush_default_hardness ()
Set brush spacing to its default.
- public bool context_set_brush_default_size ()
Set brush size to its default.
- public bool context_set_brush_default_spacing ()
Set brush spacing to its default.
- public bool context_set_brush_force (double force)
Set brush application force.
- public bool context_set_brush_hardness (double hardness)
Set brush hardness.
- public bool context_set_brush_size (double size)
Set brush size in pixels.
- public bool context_set_brush_spacing (double spacing)
Set brush spacing as percent of size.
- public bool context_set_default_colors ()
Set the current GIMP foreground and background colors to black and
white.
- public bool context_set_defaults ()
Reset context settings to their default values.
- public bool context_set_diagonal_neighbors (bool diagonal_neighbors)
Set the diagonal neighbors setting.
- public bool context_set_distance_metric (DistanceMetric metric)
Set the distance metric used in some computations.
- public bool context_set_dynamics_name (string name)
Set the active paint dynamics.
- public bool context_set_emulate_brush_dynamics (bool emulate_dynamics)
Set the stroke option's emulate brush dynamics setting.
- public bool context_set_feather (bool feather)
Set the feather setting.
- public bool context_set_feather_radius (double feather_radius_x, double feather_radius_y)
Set the feather radius setting.
- public bool context_set_font (Font font)
Set the active font.
- public bool context_set_foreground (Color foreground)
Set the current GIMP foreground color.
- public bool context_set_gradient (Gradient gradient)
Sets the active gradient.
- public bool context_set_gradient_blend_color_space (GradientBlendColorSpace blend_color_space)
Set the gradient blend color space.
- public bool context_set_gradient_fg_bg_hsv_ccw ()
Sets the built-in FG-BG HSV (ccw) gradient as the active gradient.
- public bool context_set_gradient_fg_bg_hsv_cw ()
Sets the built-in FG-BG HSV (cw) gradient as the active gradient.
- public bool context_set_gradient_fg_bg_rgb ()
Sets the built-in FG-BG RGB gradient as the active gradient.
- public bool context_set_gradient_fg_transparent ()
Sets the built-in FG-Transparent gradient as the active gradient.
- public bool context_set_gradient_repeat_mode (RepeatMode repeat_mode)
Set the gradient repeat mode.
- public bool context_set_gradient_reverse (bool reverse)
Set the gradient reverse setting.
- public bool context_set_ink_angle (double angle)
Set ink angle in degrees.
- public bool context_set_ink_blob_angle (double angle)
Set ink blob angle in degrees.
- public bool context_set_ink_blob_aspect_ratio (double aspect)
Set ink blob aspect ratio.
- public bool context_set_ink_blob_type (InkBlobType type)
Set ink blob type.
- public bool context_set_ink_size (double size)
Set ink blob size in pixels.
- public bool context_set_ink_size_sensitivity (double size)
Set ink size sensitivity.
- public bool context_set_ink_speed_sensitivity (double speed)
Set ink speed sensitivity.
- public bool context_set_ink_tilt_sensitivity (double tilt)
Set ink tilt sensitivity.
- public bool context_set_interpolation (InterpolationType interpolation)
Set the interpolation type.
- public bool context_set_line_cap_style (CapStyle cap_style)
Set the line cap style setting.
- public bool context_set_line_dash_offset (double dash_offset)
Set the line dash offset setting.
- public bool context_set_line_dash_pattern (double[] dashes)
Set the line dash pattern setting.
- public bool context_set_line_join_style (JoinStyle join_style)
Set the line join style setting.
- public bool context_set_line_miter_limit (double miter_limit)
Set the line miter limit setting.
- public bool context_set_line_width (double line_width)
Set the line width setting.
- public bool context_set_line_width_unit (Unit line_width_unit)
Set the line width unit setting.
- public bool context_set_mypaint_brush (string name)
Set a MyPaint brush as the active MyPaint brush.
- public bool context_set_opacity (double opacity)
Set the opacity.
- public bool context_set_paint_fade_length (double fade_length)
Set the paint fade length.
- public bool context_set_paint_fade_repeat (RepeatMode fade_repeat)
Set the paint fade repeat type.
- public bool context_set_paint_method (string name)
Set the active paint method.
- public bool context_set_paint_mode (LayerMode paint_mode)
Set the paint mode.
- public bool context_set_palette (Palette palette)
Set the active palette.
- public bool context_set_pattern (Pattern pattern)
Set the active pattern.
- public bool context_set_sample_criterion (SelectCriterion sample_criterion)
Set the sample criterion setting.
- public bool context_set_sample_merged (bool sample_merged)
Set the sample merged setting.
- public bool context_set_sample_threshold (double sample_threshold)
Set the sample threshold setting.
- public bool context_set_sample_threshold_int (int sample_threshold)
Set the sample threshold setting as an integer value.
- public bool context_set_sample_transparent (bool sample_transparent)
Set the sample transparent setting.
- public bool context_set_stroke_method (StrokeMethod stroke_method)
Set the active stroke method.
- public bool context_set_transform_direction (TransformDirection transform_direction)
Set the transform direction.
- public bool context_set_transform_resize (TransformResize transform_resize)
Set the transform resize type.
- public bool context_swap_colors ()
Swap the current GIMP foreground and background colors.
- public bool convolve (Drawable drawable, double pressure, ConvolveType convolve_type, double[] strokes)
Convolve (Blur, Sharpen) using the current brush.
- public bool convolve_default (Drawable drawable, double[] strokes)
Convolve (Blur, Sharpen) using the current brush.
- public CpuAccelFlags cpu_accel_get_support ()
Query for CPU acceleration support.
- public unowned string data_directory ()
Returns the default top directory for GIMP data.
- public double debug_timer_end ()
Finishes measuring elapsed time.
- public bool debug_timer_start ()
Starts measuring elapsed time.
- public unowned Display default_display ()
Returns the default display ID.
- public bool detach_parasite (string name)
Removes a global parasite.
- public unowned string directory ()
Returns the user-specific GIMP settings directory.
- public bool displays_flush ()
Flush all internal changes to the user interface
- public bool displays_reconnect (Image old_image, Image new_image)
Reconnect displays from one image to another image.
- public bool dodgeburn (Drawable drawable, double exposure, DodgeBurnType dodgeburn_type, TransferMode dodgeburn_mode, double[] strokes)
Dodgeburn image with varying exposure.
- public bool dodgeburn_default (Drawable drawable, double[] strokes)
Dodgeburn image with varying exposure.
- public unowned double[] double_array_get_values (Array array)
- public void double_array_set_values (Array array, double[] values, bool static_data)
- public bool drawables_close_popup (string callback)
Close the drawable selection dialog.
- public bool drawables_popup (string callback, string popup_title, string drawable_type, Drawable? initial_drawable, Bytes? parent_window)
Invokes the drawable selection dialog.
- public bool drawables_set_popup (string callback, Drawable drawable)
Sets the selected drawable in a drawable selection dialog.
- public string[] dynamics_get_name_list (string? filter)
Retrieve the list of loaded paint dynamics.
- public bool dynamics_refresh ()
Refresh current paint dynamics.
- public bool edit_copy (Drawable[] drawables)
Copy from the specified drawables.
- public bool edit_copy_visible (Image image)
Copy from the projection.
- public bool edit_cut (Drawable[] drawables)
Cut from the specified drawables.
- public string edit_named_copy (Drawable[] drawables, string buffer_name)
Copy into a named buffer.
- public string edit_named_copy_visible (Image image, string buffer_name)
Copy from the projection into a named buffer.
- public string edit_named_cut (Drawable[] drawables, string buffer_name)
Cut into a named buffer.
- public unowned Layer edit_named_paste (Drawable drawable, string buffer_name, bool paste_into)
Paste named buffer to the specified drawable.
- public unowned Image edit_named_paste_as_new_image (string buffer_name)
Paste named buffer to a new image.
- public (unowned Drawable)[] edit_paste (Drawable drawable, bool paste_into)
Paste buffer to the specified drawable.
- public unowned Image edit_paste_as_new_image ()
Paste buffer to a new image.
- public unowned EnumDesc? enum_get_desc (EnumClass enum_class, int value)
Retrieves EnumDesc
associated with the given value, or null.
- public bool enum_get_value (Type enum_type, int value, out string value_name, out string value_nick, out string value_desc, out string value_help)
Checks if value is valid for the enum registered as
enum_type.
- public unowned EnumDesc? enum_get_value_descriptions (Type enum_type)
Retrieves the array of human readable and translatable descriptions
and help texts for enum values.
- public void enum_set_value_descriptions (Type enum_type, EnumDesc descriptions)
Sets the array of human readable and translatable descriptions and
help texts for enum values.
- public unowned string enum_value_get_abbrev (EnumClass enum_class, EnumValue enum_value)
Retrieves the translated abbreviation for a given enum_value
.
- public unowned string enum_value_get_desc (EnumClass enum_class, EnumValue enum_value)
Retrieves the translated description for a given enum_value
.
- public unowned string enum_value_get_help (EnumClass enum_class, EnumValue enum_value)
Retrieves the translated help for a given enum_value.
- public unowned string[] enums_get_type_names ()
This function gives access to the list of enums registered by libgimp.
- public void enums_init ()
This function makes sure all the enum types are registered with the
Type system.
- public bool eraser (Drawable drawable, double[] strokes, BrushApplicationMode hardness, PaintApplicationMode method)
Erase using the current brush.
- public bool eraser_default (Drawable drawable, double[] strokes)
Erase using the current brush.
- public string escape_uline (string? str)
This function returns a copy of str with all underline
converted to two adjacent underlines.
- public bool export_color_profile ()
Returns whether file plug-ins should default to exporting the image's
color profile.
- public bool export_comment ()
Returns whether file plug-ins should default to exporting the image's
comment.
- public bool export_exif ()
Returns whether file plug-ins should default to exporting Exif
metadata, according preferences (original settings is false since metadata can contain sensitive
information).
- public bool export_iptc ()
Returns whether file plug-ins should default to exporting IPTC
metadata, according preferences (original settings is false since metadata can contain sensitive
information).
- public bool export_thumbnail ()
Returns whether file plug-ins should default to exporting the image's
comment.
- public bool export_xmp ()
Returns whether file plug-ins should default to exporting XMP
metadata, according preferences (original settings is false since metadata can contain sensitive
information).
- public bool file_create_thumbnail (Image image, File file)
Creates a thumbnail of image for the given file
- public string file_get_config_path (File file) throws Error
Unexpands file's path using
unexpand and returns the unexpanded path.
- public unowned string file_get_utf8_name (File file)
This function works like
filename_to_utf8 and returns a UTF-8 encoded string that does not need to be
freed.
- public bool file_has_extension (File file, string extension)
This function checks if file's URI ends with
extension.
- public unowned Image file_load (RunMode run_mode, File file)
Loads an image file by invoking the right load handler.
- public unowned Layer file_load_layer (RunMode run_mode, Image image, File file)
Loads an image file as a layer for an existing image.
- public (unowned Layer)[] file_load_layers (RunMode run_mode, Image image, File file)
Loads an image file as layers for an existing image.
- public File? file_new_for_config_path (string path) throws Error
Expands path using
expand and returns a
File for the expanded path.
- public bool file_save (RunMode run_mode, Image image, File file, ExportOptions? options)
Saves to XCF or export image to any supported format by
extension.
- public bool file_show_in_file_manager (File file) throws Error
Shows file in the system file manager.
- public unowned string filename_to_utf8 (string filename)
Convert a filename in the filesystem's encoding to UTF-8 temporarily.
- public unowned FlagsDesc? flags_get_first_desc (FlagsClass flags_class, uint value)
Retrieves the first
FlagsDesc that matches the given value, or null.
- public bool flags_get_first_value (Type flags_type, uint value, out string value_name, out string value_nick, out string value_desc, out string value_help)
Checks if value is valid for the flags registered as
flags_type.
- public unowned FlagsDesc? flags_get_value_descriptions (Type flags_type)
Retrieves the array of human readable and translatable descriptions
and help texts for flags values.
- public void flags_set_value_descriptions (Type flags_type, FlagsDesc descriptions)
Sets the array of human readable and translatable descriptions and
help texts for flags values.
- public unowned string flags_value_get_abbrev (FlagsClass flags_class, FlagsValue flags_value)
Retrieves the translated abbreviation for a given flags_value
.
- public unowned string flags_value_get_desc (FlagsClass flags_class, FlagsValue flags_value)
Retrieves the translated description for a given flags_value
.
- public unowned string flags_value_get_help (FlagsClass flags_class, FlagsValue flags_value)
Retrieves the translated help for a given flags_value.
- public bool floating_sel_anchor (Layer floating_sel)
Anchor the specified floating selection to its associated drawable.
- public bool floating_sel_attach (Layer layer, Drawable drawable)
Attach the specified layer as floating to the specified drawable.
- public bool floating_sel_remove (Layer floating_sel)
Remove the specified floating selection from its associated drawable.
- public bool floating_sel_to_layer (Layer floating_sel)
Transforms the specified floating selection into a layer.
- public bool fonts_close_popup (string font_callback)
Close the font selection dialog.
- public (unowned Font)[] fonts_get_list (string? filter)
Retrieve the list of loaded fonts.
- public bool fonts_popup (string font_callback, string popup_title, Font? initial_font, Bytes? parent_window)
Invokes the Gimp font selection dialog.
- public bool fonts_refresh ()
Refresh current fonts.
- public bool fonts_set_popup (string font_callback, Font font)
Sets the current font in a font selection dialog.
- public ColorConfig get_color_configuration ()
Retrieve a copy of the current color management configuration.
- public string get_default_comment ()
Get the default image comment as specified in the Preferences.
- public unowned Unit get_default_unit ()
Get the default unit (taken from the user's locale).
- public (unowned Image)[] get_images ()
Returns the list of images currently open.
- public string get_module_load_inhibit ()
Get the list of modules which should not be loaded.
- public bool get_monitor_resolution (out double xres, out double yres)
Get the monitor resolution as specified in the Preferences.
- public int get_num_processors ()
Returns the number of threads set explicitly by the user in the
preferences.
- public Parasite get_parasite (string name)
Look up a global parasite.
- public string[] get_parasite_list ()
List all parasites.
- public unowned PDB? get_pdb ()
This function returns the plug-in's
PDB instance, which is a singleton that can exist exactly once per running plug-in.
- public unowned PlugIn? get_plug_in ()
This function returns the plug-in's
PlugIn instance, which is a a singleton that can exist exactly once per running plug-in.
- public unowned string get_progname ()
Returns the plug-in's executable name.
- public int getpid ()
Returns the PID of the host GIMP process.
- public string gimprc_query (string token)
Queries the gimprc file parser for information on a specified token.
- public bool gimprc_set (string token, string value)
Sets a gimprc token to a value and saves it in the gimprc.
- public bool gradients_close_popup (string gradient_callback)
Close the gradient selection dialog.
- public (unowned Gradient)[] gradients_get_list (string? filter)
Retrieve the list of loaded gradients.
- public bool gradients_popup (string gradient_callback, string popup_title, Gradient? initial_gradient, Bytes? parent_window)
Invokes the Gimp gradients selection dialog.
- public bool gradients_refresh ()
Refresh current gradients.
- public bool gradients_set_popup (string gradient_callback, Gradient gradient)
Sets the current gradient in a gradient selection dialog.
- public bool heal (Drawable drawable, Drawable src_drawable, double src_x, double src_y, double[] strokes)
Heal from the source to the dest drawable using the current brush
- public bool heal_default (Drawable drawable, double[] strokes)
Heal from the source to the dest drawable using the current brush
- public bool help (string? help_domain, string help_id)
Load a help page.
- public unowned string icon_theme_dir ()
Returns the directory of the current icon theme.
- public bool images_close_popup (string callback)
Close the image selection dialog.
- public bool images_popup (string callback, string popup_title, Image? initial_image, Bytes? parent_window)
Invokes the image selection dialog.
- public bool images_set_popup (string callback, Image image)
Sets the selected image in a image selection dialog.
- public unowned string installation_directory ()
Returns the top installation directory of GIMP.
- public unowned int32[] int32_array_get_values (Array array)
- public void int32_array_set_values (Array array, int32[] values, bool static_data)
- public bool is_canonical_identifier (string identifier)
Checks if identifier is canonical and non-
null.
- public bool items_close_popup (string callback)
Close the item selection dialog.
- public bool items_popup (string callback, string popup_title, string item_type, Item? initial_item, Bytes? parent_window)
Invokes the item selection dialog.
- public bool items_set_popup (string callback, Item item)
Sets the selected item in a item selection dialog.
- public unowned string locale_directory ()
Returns the top directory for GIMP locale files.
- public int main (Type plug_in_type, string[] argv)
The main plug-in function that must be called with the plug-in's [
class@Gimp.
- public bool message (string message)
Displays a dialog box with a message.
- public MessageHandlerType message_get_handler ()
Returns the current state of where warning messages are displayed.
- public bool message_set_handler (MessageHandlerType handler)
Controls where warning messages are displayed.
- public int monitor_number ()
Returns the monitor number to be used for plug-in windows.
- public bool paintbrush (Drawable drawable, double fade_out, double[] strokes, PaintApplicationMode method, double gradient_length)
Paint in the current brush with optional fade out parameter and pull
colors from a gradient.
- public bool paintbrush_default (Drawable drawable, double[] strokes)
Paint in the current brush.
- public bool palettes_close_popup (string palette_callback)
Close the palette selection dialog.
- public (unowned Palette)[] palettes_get_list (string? filter)
Retrieves a list of all of the available palettes
- public bool palettes_popup (string palette_callback, string popup_title, Palette? initial_palette, Bytes? parent_window)
Invokes the Gimp palette selection dialog.
- public bool palettes_refresh ()
Refreshes current palettes.
- public bool palettes_set_popup (string palette_callback, Palette palette)
Sets the current palette in a palette selection dialog.
- public unowned ParamSpec param_spec_array (string name, string nick, string blurb, ParamFlags flags)
Creates a new GimpParamSpecArray specifying a [type@Array
] property.
- public unowned ParamSpec param_spec_brush (string name, string nick, string blurb, bool none_ok, Brush? default_value, bool default_to_context, ParamFlags flags)
Creates a new GimpParamSpecBrush specifying a [type@Brush
] property.
- public unowned ParamSpec param_spec_channel (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecChannel specifying a [
type@Channel] property.
- public unowned ParamSpec param_spec_choice (string name, string nick, string blurb, owned Choice choice, string default_value, ParamFlags flags)
Creates a new GimpParamSpecChoice specifying a
STRING property.
- public unowned Choice param_spec_choice_get_choice (ParamSpec pspec)
- public unowned string param_spec_choice_get_default (ParamSpec pspec)
- public ParamSpec param_spec_color (string name, string nick, string blurb, bool has_alpha, Color default_color, ParamFlags flags)
- public ParamSpec param_spec_color_from_string (string name, string nick, string blurb, bool has_alpha, string default_color_string, ParamFlags flags)
- public bool param_spec_color_has_alpha (ParamSpec pspec)
- public ParamSpec param_spec_config_path (string name, string nick, string blurb, ConfigPathType type, string default_value, ParamFlags flags)
Creates a param spec to hold a filename, dir name, or list of file or
dir names.
- public ConfigPathType param_spec_config_path_type (ParamSpec pspec)
Tells whether the path param encodes a filename, dir name, or list of
file or dir names.
- public unowned ParamSpec param_spec_core_object_array (string name, string nick, string blurb, Type object_type, ParamFlags flags)
Creates a new GimpParamSpecCoreObjectArray specifying a [
type@CoreObjectArray] property.
- public Type param_spec_core_object_array_get_object_type (ParamSpec pspec)
- public unowned ParamSpec param_spec_curve (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecCurve specifying a [type@Curve
] property.
- public unowned ParamSpec param_spec_display (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecDisplay specifying a [
type@Display] property.
- public bool param_spec_display_none_allowed (ParamSpec pspec)
- public unowned ParamSpec param_spec_double_array (string name, string nick, string blurb, ParamFlags flags)
Creates a new GimpParamSpecDoubleArray specifying a
gimp_type_double_array property.
- public unowned ParamSpec param_spec_drawable (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecDrawable specifying a [
type@Drawable] property.
- public unowned ParamSpec param_spec_drawable_filter (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecDrawableFilter specifying a [
type@DrawableFilter] property.
- public bool param_spec_drawable_filter_none_allowed (ParamSpec pspec)
- public unowned ParamSpec param_spec_export_options (string name, string nick, string blurb, ParamFlags flags)
Creates a new GimpParamSpecExportOptionss specifying a
INT property.
- public ParamSpec param_spec_file (string name, string nick, string blurb, FileChooserAction action, bool none_ok, File? default_value, ParamFlags flags)
Creates a param spec to hold a file param.
- public FileChooserAction param_spec_file_get_action (ParamSpec pspec)
- public bool param_spec_file_none_allowed (ParamSpec pspec)
- public void param_spec_file_set_action (ParamSpec pspec, FileChooserAction action)
Change the file action tied to pspec.
- public unowned ParamSpec param_spec_font (string name, string nick, string blurb, bool none_ok, Font? default_value, bool default_to_context, ParamFlags flags)
Creates a new GimpParamSpecFont specifying a [type@Font]
property.
- public unowned ParamSpec param_spec_gradient (string name, string nick, string blurb, bool none_ok, Gradient? default_value, bool default_to_context, ParamFlags flags)
Creates a new GimpParamSpecGradient specifying a [
type@Gradient] property.
- public unowned ParamSpec param_spec_group_layer (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecGroupLayer specifying a [
type@GroupLayer] property.
- public unowned ParamSpec param_spec_image (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecImage specifying a [type@Image
] property.
- public bool param_spec_image_none_allowed (ParamSpec pspec)
- public unowned ParamSpec param_spec_int32_array (string name, string nick, string blurb, ParamFlags flags)
Creates a new GimpParamSpecInt32Array specifying a
gimp_type_int32_array property.
- public unowned ParamSpec param_spec_item (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecItem specifying a [type@Item]
property.
- public bool param_spec_item_none_allowed (ParamSpec pspec)
- public unowned ParamSpec param_spec_layer (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecLayer specifying a [type@Layer
] property.
- public unowned ParamSpec param_spec_layer_mask (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecLayerMask specifying a [
type@LayerMask] property.
- public unowned ParamSpec param_spec_link_layer (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecLinkLayer specifying a [
type@LinkLayer] property.
- public ParamSpec param_spec_matrix2 (string name, string nick, string blurb, Matrix2 default_value, ParamFlags flags)
Creates a param spec to hold a
Matrix2 value.
- public ParamSpec param_spec_matrix3 (string name, string nick, string blurb, Matrix3 default_value, ParamFlags flags)
Creates a param spec to hold a
Matrix3 value.
- public ParamSpec param_spec_memsize (string name, string nick, string blurb, uint64 minimum, uint64 maximum, uint64 default_value, ParamFlags flags)
Creates a param spec to hold a memory size value.
- public unowned ParamSpec param_spec_object_duplicate (ParamSpec pspec)
- public unowned Object param_spec_object_get_default (ParamSpec pspec)
- public bool param_spec_object_has_default (ParamSpec pspec)
- public void param_spec_object_set_default (ParamSpec pspec, Object? default_value)
- public unowned ParamSpec param_spec_palette (string name, string nick, string blurb, bool none_ok, Palette? default_value, bool default_to_context, ParamFlags flags)
Creates a new GimpParamSpecPalette specifying a [
type@Palette] property.
- public ParamSpec param_spec_parasite (string name, string nick, string blurb, ParamFlags flags)
Creates a new GimpParamSpecParasite specifying a [
type@Parasite] property.
- public unowned ParamSpec param_spec_path (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecPath specifying a [type@Path]
property.
- public unowned ParamSpec param_spec_pattern (string name, string nick, string blurb, bool none_ok, Pattern? default_value, bool default_to_context, ParamFlags flags)
Creates a new GimpParamSpecPattern specifying a [
type@Pattern] property.
- public unowned ParamSpec param_spec_rasterizable (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecRasterizable specifying a [
type@Rasterizable] property.
- public unowned ParamSpec param_spec_resource (string name, string nick, string blurb, Type resource_type, bool none_ok, Resource? default_value, bool default_to_context, ParamFlags flags)
Creates a new GimpParamSpecResource specifying a [
type@Resource] property.
- public bool param_spec_resource_defaults_to_context (ParamSpec pspec)
- public bool param_spec_resource_none_allowed (ParamSpec pspec)
- public unowned ParamSpec param_spec_selection (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecSelection specifying a [
type@Selection] property.
- public unowned ParamSpec param_spec_text_layer (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecTextLayer specifying a [
type@TextLayer] property.
- public ParamSpec param_spec_unit (string name, string nick, string blurb, bool allow_pixel, bool allow_percent, Unit default_value, ParamFlags flags)
Creates a param spec to hold a units param.
- public bool param_spec_unit_percent_allowed (ParamSpec pspec)
- public bool param_spec_unit_pixel_allowed (ParamSpec pspec)
- public ParamSpec param_spec_value_array (string name, string nick, string blurb, ParamSpec? element_spec, ParamFlags flags)
Creates a new GimpParamSpecValueArray specifying a [
type@GObject.
- public unowned ParamSpec param_spec_value_array_get_element_spec (ParamSpec pspec)
- public unowned ParamSpec param_spec_vector_layer (string name, string nick, string blurb, bool none_ok, ParamFlags flags)
Creates a new GimpParamSpecVectorLayer specifying a [
type@VectorLayer] property.
- public bool patterns_close_popup (string pattern_callback)
Close the pattern selection dialog.
- public (unowned Pattern)[] patterns_get_list (string? filter)
Retrieve a complete listing of the available patterns.
- public bool patterns_popup (string pattern_callback, string popup_title, Pattern? initial_pattern, Bytes? parent_window)
Invokes the Gimp pattern selection.
- public bool patterns_refresh ()
Refresh current patterns.
- public bool patterns_set_popup (string pattern_callback, Pattern pattern)
Sets the current pattern in a pattern selection dialog.
- public bool pencil (Drawable drawable, double[] strokes)
Paint in the current brush without sub-pixel sampling.
- public Buffer pixbuf_create_buffer (Pixbuf pixbuf)
Returns a Buffer
that's either backed by the pixbuf's pixels, or a copy of them.
- public unowned Object? pixbuf_get_format (Pixbuf pixbuf)
Returns the Babl format that corresponds to the pixbuf's
pixel format.
- public unowned uint8[]? pixbuf_get_icc_profile (Pixbuf pixbuf)
Returns the ICC profile attached to the pixbuf, or
null if there is none.
- public double pixels_to_units (double pixels, Unit unit, double resolution)
Converts a value specified in pixels to unit
.
- public string pixpipe_params_build (PixPipeParams @params)
Do not use this function.
- public void pixpipe_params_free (PixPipeParams @params)
Do not use this function.
- public void pixpipe_params_init (PixPipeParams @params)
Do not use this function.
- public void pixpipe_params_parse (string parameters, PixPipeParams @params)
Do not use this function.
- public bool progress_cancel (string progress_callback)
Cancels a running progress.
- public bool progress_end ()
Ends the progress bar for the current plug-in.
- public Bytes progress_get_window_handle ()
Returns the native handle of the toplevel window this plug-in's
progress is or would be displayed in.
- public bool progress_init (string message)
Initializes the progress bar for the current plug-in.
- public unowned string progress_install_vtable (ProgressVtable vtable, void* user_data, DestroyNotify? user_data_destroy)
- public bool progress_pulse ()
Pulses the progress bar for the current plug-in.
- public bool progress_set_text (string? message)
Changes the text in the progress bar for the current plug-in.
- public void progress_uninstall (string progress_callback)
Uninstalls a temporary progress procedure that was installed using
gimp_progress_install.
- public bool progress_update (double percentage)
Updates the progress bar for the current plug-in.
- public void quit ()
Forcefully causes the GIMP library to exit and close down its
connection to main gimp application.
- public void range_estimate_settings (double lower, double upper, out double step, out double page, out int digits)
This function proposes reasonable settings for increments and display
digits.
- public bool rectangle_intersect (int x1, int y1, int width1, int height1, int x2, int y2, int width2, int height2, out int dest_x, out int dest_y, out int dest_width, out int dest_height)
Calculates the intersection of two rectangles.
- public void rectangle_union (int x1, int y1, int width1, int height1, int x2, int y2, int width2, int height2, out int dest_x, out int dest_y, out int dest_width, out int dest_height)
Calculates the union of two rectangles.
- public bool resources_loaded (Type resource_type)
Returns whether the resource with the given resource_type
were loaded.
- public bool show_help_button ()
Returns whether or not GimpDialog should automatically add a help
button if help_func and help_id are given.
- public bool smudge (Drawable drawable, double pressure, double[] strokes)
Smudge image with varying pressure.
- public bool smudge_default (Drawable drawable, double[] strokes)
Smudge image with varying pressure.
- public bool stack_trace_available (bool optimal)
Returns true if we have dependencies
to generate backtraces.
- public bool stack_trace_print (string prog_name, void* stream, out string trace)
Attempts to generate a stack trace at current code position in
prog_name.
- public void stack_trace_query (string prog_name)
This is mostly the same as
on_error_query except that we use our own backtrace function, much
more complete.
- public string strip_uline (string? str)
This function returns a copy of str stripped of underline
characters.
- public unowned string sysconf_directory ()
Returns the top directory for GIMP config files.
- public unowned string temp_directory ()
Returns the default top directory for GIMP temporary files.
- public File temp_file (string? extension)
Generates a unique temporary file.
- public unowned Layer? text_font (Image image, Drawable? drawable, double x, double y, string text, int border, bool antialias, double size, Font font)
Add text at the specified location as a floating selection or a new
layer.
- public bool text_get_extents_font (string text, double size, Font font, out int width, out int height, out int ascent, out int descent)
Get extents of the bounding box for the specified text.
- public uint tile_height ()
Returns the tile height GIMP is using.
- public uint tile_width ()
Returns the tile width GIMP is using.
- public unowned string type_get_translation_context (Type type)
- public unowned string type_get_translation_domain (Type type)
- public void type_set_translation_context (Type type, string context)
This function attaches a constant string as a translation context to a
Type.
- public void type_set_translation_domain (Type type, string domain)
This function attaches a constant string as a gettext translation
domain identifier to a Type.
- public double units_to_pixels (double value, Unit unit, double resolution)
Converts a value specified in unit to
pixels.
- public double units_to_points (double value, Unit unit, double resolution)
Converts a value specified in unit to
points.
- public bool update_metadata ()
Returns whether file plug-ins should update the image's metadata.
- public uint32 user_time ()
Returns the timestamp of the user interaction that should be set on
the plug-in window.
- public string utf8_strtrim (string? str, int max_chars)
Creates a (possibly trimmed) copy of str.
- public double[] value_dup_double_array (Value value)
Gets the contents of a
gimp_type_double_array Value
- public int32[] value_dup_int32_array (Value value)
Gets the contents of a
gimp_type_int32_array Value
- public unowned double[] value_get_double_array (Value value)
Gets the contents of a
gimp_type_double_array Value
- public unowned int32[] value_get_int32_array (Value value)
Gets the contents of a
gimp_type_int32_array Value
- public void value_set_double_array (Value value, double[] data)
Sets the contents of value to data.
- public void value_set_int32_array (Value value, int32[] data)
Sets the contents of value to data.
- public void value_set_static_double_array (Value value, double[] data)
Sets the contents of value to data, without
copying the data.
- public void value_set_static_int32_array (Value value, int32[] data)
Sets the contents of value to data, without
copying the data.
- public void value_take_double_array (Value value, owned double[] data)
Sets the contents of value to data, and
takes ownership of data.
- public void value_take_int32_array (Value value, owned int32[] data)
Sets the contents of value to data, and
takes ownership of data.
- public void vector2_add (out unowned Vector2 result, Vector2 vector1, Vector2 vector2)
Computes the sum of two 2D vectors.
- public void vector2_sub (out unowned Vector2 result, Vector2 vector1, Vector2 vector2)
Computes the difference of two 2D vectors (vector1 minus
vector2).
- public void vector3_add (out unowned Vector3 result, Vector3 vector1, Vector3 vector2)
Computes the sum of two 3D vectors.
- public void vector3_sub (out unowned Vector3 result, Vector3 vector1, Vector3 vector2)
Computes the difference of two 3D vectors (vector1 minus
vector2).
- public void vector_2d_to_3d (int sx, int sy, int w, int h, int x, int y, Vector3 vp, Vector3 p)
\"Compute screen (sx, sy) - (sx + w, sy + h) to 3D unit square
mapping.
- public Vector3 vector_2d_to_3d_val (int sx, int sy, int w, int h, int x, int y, Vector3 vp, Vector3 p)
This function is identical to
vector_2d_to_3d but the position of the observer and the resulting
point p are passed by value rather than by reference.
- public void vector_3d_to_2d (int sx, int sy, int w, int h, out double x, out double y, Vector3 vp, Vector3 p)
Convert the given 3D point to 2D (project it onto the viewing plane, (
sx, sy, 0) - (sx + w, sy + h, 0).
- public string version ()
Returns the host GIMP version.
- public unowned string wm_class ()
Returns the window manager class to be used for plug-in windows.