1
# GIMP - The GNU Image Manipulation Program
2
# Copyright (C) 1995 Spencer Kimball and Peter Mattis
4
# This program is free software: you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; either version 3 of the License, or
7
# (at your option) any later version.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
17
# "Perlized" from C source by Manish Singh <yosh@gimp.org>
19
sub dynamics_refresh {
20
$blurb = 'Refresh current paint dynamics. This function always succeeds.';
23
This procedure retrieves all paint dynamics currently in the user's
24
paint dynamics path and updates the paint dynamics dialogs
28
&mitch_pdb_misc('2011', '2.8');
33
gimp_data_factory_data_refresh (gimp->dynamics_factory, context);
39
sub dynamics_get_list {
40
$blurb = 'Retrieve the list of loaded paint dynamics.';
43
This procedure returns a list of the paint dynamics that are currently
47
&mitch_pdb_misc('2011', '2.8');
50
{ name => 'filter', type => 'string', null_ok => 1,
51
desc => 'An optional regular expression used to filter the list' }
55
{ name => 'dynamics_list', type => 'stringarray',
56
desc => 'The list of paint dynamics names',
57
array => { name => 'num_dynamics',
58
desc => 'The number of available paint dynamics' } }
62
headers => [ qw("core/gimpcontainer-filter.h") ],
65
dynamics_list = gimp_container_get_filtered_name_array (gimp_data_factory_get_container (gimp->dynamics_factory),
66
filter, &num_dynamics);
73
@headers = qw("core/gimp.h"
74
"core/gimpcontainer.h"
75
"core/gimpdatafactory.h");
77
@procs = qw(dynamics_refresh
80
%exports = (app => [@procs], lib => [@procs]);
82
$desc = 'Paint Dynamics';
83
$doc_title = 'gimpdynamics';
84
$doc_short_desc = 'Operations related to paint dynamics.';
85
$doc_long_desc = 'Operations related to paint dynamics.';