gimpcontext: GIMP Library Reference Manual

## gimpcontext gimpcontext |

## Functions

gboolean | gimp_context_push ()
gboolean | gimp_context_pop ()
gboolean | gimp_context_set_defaults ()
gboolean | gimp_context_get_foreground ()
gboolean | gimp_context_set_foreground ()
gboolean | gimp_context_get_background ()
gboolean | gimp_context_set_background ()
gboolean | gimp_context_set_default_colors ()
gboolean | gimp_context_swap_colors ()
gdouble | gimp_context_get_opacity ()
gboolean | gimp_context_set_opacity ()
GimpLayerModeEffects | gimp_context_get_paint_mode ()
gboolean | gimp_context_set_paint_mode ()
gchar * | gimp_context_get_brush ()
gboolean | gimp_context_set_brush ()
gdouble | gimp_context_get_brush_angle ()
gboolean | gimp_context_set_brush_angle ()
gdouble | gimp_context_get_brush_aspect_ratio ()
gboolean | gimp_context_set_brush_aspect_ratio ()
gdouble | gimp_context_get_brush_size ()
gboolean | gimp_context_set_brush_size ()
gboolean | gimp_context_set_brush_default_size ()
gchar * | gimp_context_get_dynamics ()
gboolean | gimp_context_set_dynamics ()
gchar * | gimp_context_get_pattern ()
gboolean | gimp_context_set_pattern ()
gchar * | gimp_context_get_gradient ()
gboolean | gimp_context_set_gradient ()
gchar * | gimp_context_get_palette ()
gboolean | gimp_context_set_palette ()
gchar * | gimp_context_get_font ()
gboolean | gimp_context_set_font ()
gchar * | gimp_context_get_paint_method ()
gboolean | gimp_context_set_paint_method ()
gboolean | gimp_context_list_paint_methods ()
gboolean | gimp_context_get_antialias ()
gboolean | gimp_context_set_antialias ()
gboolean | gimp_context_get_feather ()
gboolean | gimp_context_set_feather ()
gboolean | gimp_context_get_feather_radius ()
gboolean | gimp_context_set_feather_radius ()
gboolean | gimp_context_get_sample_merged ()
gboolean | gimp_context_set_sample_merged ()
GimpSelectCriterion | gimp_context_get_sample_criterion ()
gboolean | gimp_context_set_sample_criterion ()
gdouble | gimp_context_get_sample_threshold ()
gboolean | gimp_context_set_sample_threshold ()
gint | gimp_context_get_sample_threshold_int ()
gboolean | gimp_context_set_sample_threshold_int ()
gboolean | gimp_context_get_sample_transparent ()
gboolean | gimp_context_set_sample_transparent ()
GimpInterpolationType | gimp_context_get_interpolation ()
gboolean | gimp_context_set_interpolation ()
GimpTransformDirection | gimp_context_get_transform_direction ()
gboolean | gimp_context_set_transform_direction ()
GimpTransformResize | gimp_context_get_transform_resize ()
gboolean | gimp_context_set_transform_resize ()
gint | gimp_context_get_transform_recursion ()
gboolean | gimp_context_set_transform_recursion ()
gdouble | gimp_context_get_ink_angle ()
gboolean | gimp_context_set_ink_angle ()
gdouble | gimp_context_get_ink_blob_angle ()
gboolean | gimp_context_set_ink_blob_angle ()
gdouble | gimp_context_get_ink_blob_aspect_ratio ()
gboolean | gimp_context_set_ink_blob_aspect_ratio ()
GimpInkBlobType | gimp_context_get_ink_blob_type ()
gboolean | gimp_context_set_ink_blob_type ()
gdouble | gimp_context_get_ink_size ()
gboolean | gimp_context_set_ink_size ()
gdouble | gimp_context_get_ink_size_sensitivity ()
gboolean | gimp_context_set_ink_size_sensitivity ()
gdouble | gimp_context_get_ink_speed_sensitivity ()
gboolean | gimp_context_set_ink_speed_sensitivity ()
gdouble | gimp_context_get_ink_tilt_sensitivity ()
gboolean | gimp_context_set_ink_tilt_sensitivity ()

## Description

## Functions

### gimp_context_push ()

    gboolean
    gimp_context_push (void);

Since: GIMP 2.2

### gimp_context_pop ()

    gboolean
    gimp_context_pop (void);

Since: GIMP 2.2

### gimp_context_set_defaults ()

    gboolean
    gimp_context_set_defaults (void);

Since: GIMP 2.8

### gimp_context_get_foreground ()

    gboolean
    gimp_context_get_foreground (GimpRGB *foreground);

Since: GIMP 2.2

### gimp_context_set_foreground ()

    gboolean
    gimp_context_set_foreground (const GimpRGB *foreground);

Since: GIMP 2.2

### gimp_context_get_background ()

    gboolean
    gimp_context_get_background (GimpRGB *background);

Since: GIMP 2.2

### gimp_context_set_background ()

    gboolean
    gimp_context_set_background (const GimpRGB *background);

Since: GIMP 2.2

### gimp_context_set_default_colors ()

    gboolean
    gimp_context_set_default_colors (void);

Since: GIMP 2.2

### gimp_context_swap_colors ()

    gboolean
    gimp_context_swap_colors (void);

Since: GIMP 2.2

### gimp_context_get_opacity ()

    gdouble
    gimp_context_get_opacity (void);

Since: GIMP 2.2

### gimp_context_set_opacity ()

    gboolean
    gimp_context_set_opacity (gdouble opacity);

Since: GIMP 2.2

### gimp_context_get_paint_mode ()

    GimpLayerModeEffects
    gimp_context_get_paint_mode (void);

Since: GIMP 2.2

### gimp_context_set_paint_mode ()

    gboolean
    gimp_context_set_paint_mode (GimpLayerModeEffects paint_mode);

Since: GIMP 2.2

### gimp_context_get_brush ()

    gchar *
    gimp_context_get_brush (void);

Since: GIMP 2.2

### gimp_context_set_brush ()

    gboolean
    gimp_context_set_brush (const gchar *name);

Since: GIMP 2.2

### gimp_context_get_brush_angle ()

    gdouble
    gimp_context_get_brush_angle (void);

Since: GIMP 2.8

### gimp_context_set_brush_angle ()

    gboolean
    gimp_context_set_brush_angle (gdouble angle);

Since: GIMP 2.8

### gimp_context_get_brush_aspect_ratio ()

    gdouble
    gimp_context_get_brush_aspect_ratio (void);

Since: GIMP 2.8

### gimp_context_set_brush_aspect_ratio ()

    gboolean
    gimp_context_set_brush_aspect_ratio (gdouble aspect);

Since: GIMP 2.8

### gimp_context_get_brush_size ()

    gdouble
    gimp_context_get_brush_size (void);

Since: GIMP 2.8

### gimp_context_set_brush_size ()

    gboolean
    gimp_context_set_brush_size (gdouble size);

Since: GIMP 2.8

### gimp_context_set_brush_default_size ()

    gboolean
    gimp_context_set_brush_default_size (void);

Since: GIMP 2.8

### gimp_context_get_dynamics ()

    gchar *
    gimp_context_get_dynamics (void);

Since: GIMP 2.8

### gimp_context_set_dynamics ()

    gboolean
    gimp_context_set_dynamics (const gchar *name);

Since: GIMP 2.8

### gimp_context_get_pattern ()

    gchar *
    gimp_context_get_pattern (void);

Since: GIMP 2.2

### gimp_context_set_pattern ()

    gboolean
    gimp_context_set_pattern (const gchar *name);

Since: GIMP 2.2

### gimp_context_get_gradient ()

    gchar *
    gimp_context_get_gradient (void);

Since: GIMP 2.2

### gimp_context_set_gradient ()

    gboolean
    gimp_context_set_gradient (const gchar *name);

Since: GIMP 2.2

### gimp_context_get_palette ()

    gchar *
    gimp_context_get_palette (void);

Since: GIMP 2.2

### gimp_context_set_palette ()

    gboolean
    gimp_context_set_palette (const gchar *name);

Since: GIMP 2.2

### gimp_context_get_font ()

    gchar *
    gimp_context_get_font (void);

Since: GIMP 2.2

### gimp_context_set_font ()

    gboolean
    gimp_context_set_font (const gchar *name);

Since: GIMP 2.2

### gimp_context_get_paint_method ()

    gchar *
    gimp_context_get_paint_method (void);

Since: GIMP 2.4

### gimp_context_set_paint_method ()

    gboolean
    gimp_context_set_paint_method (const gchar *name);

Since: GIMP 2.4

### gimp_context_list_paint_methods ()

    gboolean
    gimp_context_list_paint_methods (gint *num_paint_methods,
                                     gchar ***paint_methods);

Since: GIMP 2.4

### gimp_context_get_antialias ()

    gboolean
    gimp_context_get_antialias (void);

Since: GIMP 2.8

### gimp_context_set_antialias ()

    gboolean
    gimp_context_set_antialias (gboolean antialias);

Since: GIMP 2.8

### gimp_context_get_feather ()

    gboolean
    gimp_context_get_feather (void);

Since: GIMP 2.8

### gimp_context_set_feather ()

    gboolean
    gimp_context_set_feather (gboolean feather);

Since: GIMP 2.8

### gimp_context_get_feather_radius ()

    gboolean
    gimp_context_get_feather_radius (gdouble *feather_radius_x,
                                     gdouble *feather_radius_y);

Since: GIMP 2.8

### gimp_context_set_feather_radius ()

    gboolean
    gimp_context_set_feather_radius (gdouble feather_radius_x,
                                     gdouble feather_radius_y);

Since: GIMP 2.8

### gimp_context_get_sample_merged ()

    gboolean
    gimp_context_get_sample_merged (void);

Since: GIMP 2.8

### gimp_context_set_sample_merged ()

    gboolean
    gimp_context_set_sample_merged (gboolean sample_merged);

Since: GIMP 2.8

### gimp_context_get_sample_criterion ()

    GimpSelectCriterion
    gimp_context_get_sample_criterion (void);

Since: GIMP 2.8

### gimp_context_set_sample_criterion ()

    gboolean
    gimp_context_set_sample_criterion (GimpSelectCriterion sample_criterion);

Since: GIMP 2.8

### gimp_context_get_sample_threshold ()

    gdouble
    gimp_context_get_sample_threshold (void);

Since: GIMP 2.8

### gimp_context_set_sample_threshold ()

    gboolean
    gimp_context_set_sample_threshold (gdouble sample_threshold);

Since: GIMP 2.8

### gimp_context_get_sample_threshold_int ()

    gint
    gimp_context_get_sample_threshold_int (void);

Since: GIMP 2.8

### gimp_context_set_sample_threshold_int ()

    gboolean
    gimp_context_set_sample_threshold_int (gint sample_threshold);

Since: GIMP 2.8

### gimp_context_get_sample_transparent ()

    gboolean
    gimp_context_get_sample_transparent (void);

Since: GIMP 2.8

### gimp_context_set_sample_transparent ()

    gboolean
    gimp_context_set_sample_transparent (gboolean sample_transparent);

Since: GIMP 2.8

### gimp_context_get_interpolation ()

    GimpInterpolationType
    gimp_context_get_interpolation (void);

Since: GIMP 2.8

### gimp_context_set_interpolation ()

    gboolean
    gimp_context_set_interpolation (GimpInterpolationType interpolation);

Since: GIMP 2.8

### gimp_context_get_transform_direction ()

    GimpTransformDirection
    gimp_context_get_transform_direction (void);

Since: GIMP 2.8

### gimp_context_set_transform_direction ()

    gboolean
    gimp_context_set_transform_direction (GimpTransformDirection transform_direction);

Since: GIMP 2.8

### gimp_context_get_transform_resize ()

    GimpTransformResize
    gimp_context_get_transform_resize (void);

Since: GIMP 2.8

### gimp_context_set_transform_resize ()

    gboolean
    gimp_context_set_transform_resize (GimpTransformResize transform_resize);

Since: GIMP 2.8

### gimp_context_get_transform_recursion ()

    gint
    gimp_context_get_transform_recursion (void);

Since: GIMP 2.8

### gimp_context_set_transform_recursion ()

    gboolean
    gimp_context_set_transform_recursion (gint transform_recursion);

Since: GIMP 2.8

### gimp_context_get_ink_angle ()

    gdouble
    gimp_context_get_ink_angle (void);

Since: GIMP 2.8

### gimp_context_set_ink_angle ()

    gboolean
    gimp_context_set_ink_angle (gdouble angle);

Since: GIMP 2.8

### gimp_context_get_ink_blob_angle ()

    gdouble
    gimp_context_get_ink_blob_angle (void);

Since: GIMP 2.8

### gimp_context_set_ink_blob_angle ()

    gboolean
    gimp_context_set_ink_blob_angle (gdouble angle);

Since: GIMP 2.8

### gimp_context_get_ink_blob_aspect_ratio ()

    gdouble
    gimp_context_get_ink_blob_aspect_ratio
                                   (void);

Since: GIMP 2.8

### gimp_context_set_ink_blob_aspect_ratio ()

    gboolean
    gimp_context_set_ink_blob_aspect_ratio
                                   (gdouble aspect);

Since: GIMP 2.8

### gimp_context_get_ink_blob_type ()

    GimpInkBlobType
    gimp_context_get_ink_blob_type (void);

Since: GIMP 2.8

### gimp_context_set_ink_blob_type ()

    gboolean
    gimp_context_set_ink_blob_type (GimpInkBlobType type);

Since: GIMP 2.8

### gimp_context_get_ink_size ()

    gdouble
    gimp_context_get_ink_size (void);

Since: GIMP 2.8

### gimp_context_set_ink_size ()

    gboolean
    gimp_context_set_ink_size (gdouble size);

Since: GIMP 2.8

### gimp_context_get_ink_size_sensitivity ()

    gdouble
    gimp_context_get_ink_size_sensitivity (void);

Since: GIMP 2.8

### gimp_context_set_ink_size_sensitivity ()

    gboolean
    gimp_context_set_ink_size_sensitivity (gdouble size);

Since: GIMP 2.8

### gimp_context_get_ink_speed_sensitivity ()

    gdouble
    gimp_context_get_ink_speed_sensitivity
                                   (void);

Since: GIMP 2.8

### gimp_context_set_ink_speed_sensitivity ()

    gboolean
    gimp_context_set_ink_speed_sensitivity
                                   (gdouble speed);

Since: GIMP 2.8

### gimp_context_get_ink_tilt_sensitivity ()

    gdouble
    gimp_context_get_ink_tilt_sensitivity (void);

Since: GIMP 2.8

### gimp_context_set_ink_tilt_sensitivity ()

    gboolean
    gimp_context_set_ink_tilt_sensitivity (gdouble tilt);

Since: GIMP 2.8

## Types and Values