# Gimp.Brush.prototype.get_shape

    function get_shape(): [ok: Boolean, shape: Gimp.BrushGeneratedShape] {
        // Gjs wrapper for gimp_brush_get_shape()
    }

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.

Since 2.4

ok

  TRUE on success.

shape

  The brush shape.