| Top |  |  |  |  | 
| GtkWidget * | gimp_brush_select_button_new () | 
| const gchar * | gimp_brush_select_button_get_brush () | 
| void | gimp_brush_select_button_set_brush () | 
| gchar * | brush-name | Read / Write | 
| gdouble | brush-opacity | Read / Write | 
| gint | brush-paint-mode | Read / Write | 
| gint | brush-spacing | Read / Write | 
| gchar * | title | Read / Write / Construct Only | 
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GimpSelectButton ╰── GimpBrushSelectButton
GimpBrushSelectButton implements AtkImplementorIface, GtkBuildable and GtkOrientable.
GtkWidget * gimp_brush_select_button_new (const gchar *title,const gchar *brush_name,gdouble opacity,gint spacing,GimpLayerMode paint_mode);
Creates a new GtkWidget that completely controls the selection of a brush. This widget is suitable for placement in a table in a plug-in dialog.
| title | Title of the dialog to use or  | |
| brush_name | Initial brush name or  | |
| opacity | Initial opacity. -1 means to use current opacity. | |
| spacing | Initial spacing. -1 means to use current spacing. | |
| paint_mode | Initial paint mode. -1 means to use current paint mode. | 
Since: 2.4
const gchar * gimp_brush_select_button_get_brush (GimpBrushSelectButton *button,gdouble *opacity,gint *spacing,GimpLayerMode *paint_mode);
Retrieves the properties of currently selected brush.
| button | ||
| opacity | Opacity of the selected brush. | |
| spacing | Spacing of the selected brush. | |
| paint_mode | Paint mode of the selected brush. | 
Since: 2.4
void gimp_brush_select_button_set_brush (GimpBrushSelectButton *button,const gchar *brush_name,gdouble opacity,gint spacing,GimpLayerMode paint_mode);
Sets the current brush and other values for the brush select button.
| button | ||
| brush_name | Brush name to set;  | |
| 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. | 
Since: 2.4
“brush-name” property“brush-name” gchar *
The name of the currently selected brush.
Owner: GimpBrushSelectButton
Flags: Read / Write
Default value: NULL
Since: 2.4
“brush-opacity” property“brush-opacity” gdouble
The opacity of the currently selected brush.
Owner: GimpBrushSelectButton
Flags: Read / Write
Allowed values: [-1,100]
Default value: -1
“brush-paint-mode” property“brush-paint-mode” gint
The paint mode of the currently selected brush.
Owner: GimpBrushSelectButton
Flags: Read / Write
Allowed values: [-1,56]
Default value: -1
“brush-spacing” property“brush-spacing” gint
The spacing of the currently selected brush.
Owner: GimpBrushSelectButton
Flags: Read / Write
Allowed values: [-2147483647,1000]
Default value: -1
“brush-set” signalvoid user_function (GimpBrushSelectButton *widget, gchar *brush_name, gdouble opacity, gint spacing, gint paint_mode, gint width, gint height, gpointer mask_data, gboolean dialog_closing, gpointer user_data)
The ::brush-set signal is emitted when the user selects a brush.
| widget | the object which received 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. | |
| user_data | user data set when the signal handler was connected. | 
Flags: Run First
Since: 2.4