# GimpUi.PatternSelectButton::pattern-set

    connect('pattern-set', function (patternSelectButton, pattern_name: String, width: Number(gint), height: Number(gint), bpp: Number(gint), mask_data: void, dialog_closing: Boolean, ): void);

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

Since 2.4

patternSelectButton

  instance of GimpUi.PatternSelectButton that is emitting the signal

pattern_name

  the name of the currently selected pattern.

width

  width of the pattern

height

  height of the pattern

bpp

  bpp of the pattern

mask_data

  pattern mask data

dialog_closing

  whether the dialog was closed or not.