Method

GimpBrushget_shape

Declaration [src]

gboolean
gimp_brush_get_shape (
  GimpBrush* brush,
  GimpBrushGeneratedShape* shape
)

Description [src]

Gets the shape of a generated brush.

Gets the shape of a generated brush. Returns an error when called for a non-parametric brush. The choices for shape are Circle (GIMP_BRUSH_GENERATED_CIRCLE), Square (GIMP_BRUSH_GENERATED_SQUARE), and Diamond (GIMP_BRUSH_GENERATED_DIAMOND). Other shapes might be added in the future.

Available since:2.4

Parameters

shape GimpBrushGeneratedShape
 

The brush shape.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.

Return value

Returns: gboolean
 

TRUE on success.