# GimpUi.BrushSelectButton::brush-set

    connect('brush-set', function (brushSelectButton, brush_name: String, opacity: Number(gdouble), spacing: Number(gint), paint_mode: Number(gint), width: Number(gint), height: Number(gint), mask_data: ByteArray, dialog_closing: Boolean, ): void);

The ::brush-set signal is emitted when the user selects a brush.

Since 2.4

brushSelectButton

  instance of GimpUi.BrushSelectButton that is emitting the signal

brush_name

  the name of the currently selected brush.

opacity

  opacity of the brush

spacing

  spacing of the brush

paint_mode

  paint mode of the brush

width

  width of the brush

height

  height of the brush

mask_data

  brush mask data

dialog_closing

  whether the dialog was closed or not.