GimpPaintTool

GimpPaintTool

Synopsis

                    GimpPaintTool;
void                gimp_paint_tool_enable_color_picker (GimpPaintTool *tool,
                                                         GimpColorPickMode mode);
#define             GIMP_PAINT_TOOL_GET_OPTIONS         (t)

Object Hierarchy

  GObject
   +----GimpObject
         +----GimpTool
               +----GimpDrawTool
                     +----GimpColorTool
                           +----GimpPaintTool
                                 +----GimpBrushTool
                                 +----GimpInkTool

Implemented Interfaces

GimpPaintTool implements GimpProgressInterface.

Description

Details

GimpPaintTool

typedef struct _GimpPaintTool GimpPaintTool;


gimp_paint_tool_enable_color_picker ()

void                gimp_paint_tool_enable_color_picker (GimpPaintTool *tool,
                                                         GimpColorPickMode mode);

This is a convenience function used from the init method of paint tools that want the color picking functionality. The mode that is set here is used to decide what cursor modifier to draw and if the picked color goes to the foreground or background color.

tool :

a GimpPaintTool

mode :

the GimpColorPickMode to set

GIMP_PAINT_TOOL_GET_OPTIONS()

#define GIMP_PAINT_TOOL_GET_OPTIONS(t)  (GIMP_PAINT_OPTIONS (gimp_tool_get_options (GIMP_TOOL (t))))