GimpUi.BrushSelectButton.prototype.set_brush

function set_brush(brush_name: String, opacity: Number(gdouble), spacing: Number(gint), paint_mode: Gimp.LayerMode): void {
    // Gjs wrapper for gimp_brush_select_button_set_brush()
}
  

Sets the current brush and other values for the brush select button.

Since 2.4

brush_name

Brush name to set; null means no change.

opacity

Opacity to set. -1.0 means no change.

spacing

Spacing to set. -1 means no change.

paint_mode

Paint mode to set. -1 means no change.